/* ThinkAdmin v6 Front Theme - Premium White */
:root{
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #5b667a;
  --border: #e8ecf3;
  --soft: #f6f8fc;
  --brand: #1b4dff;
  --brand2: #0f2aa6;
  --shadow: 0 10px 30px rgba(12, 18, 32, .08);
  --shadow2: 0 6px 16px rgba(12, 18, 32, .06);
  --radius: 18px;
  --radius2: 26px;
  --container: 1160px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC","Hiragino Sans GB","Microsoft YaHei", Arial, "Noto Sans CJK SC", sans-serif;
  line-height:1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }
button{ font-family: inherit; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:-999px;
  padding:10px 14px;
  border-radius: 12px;
  background: var(--text);
  color:#fff;
  z-index:999;
}
.skip-link:focus{ left:16px; top:16px; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 0;
  gap: 18px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 160px;
}
.brand-mark{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #7c5cff);
  box-shadow: var(--shadow2);
}
.brand-name{
  font-weight: 700;
  letter-spacing: .2px;
}

.site-nav{
  display:flex;
  align-items:center;
  gap: 18px;
}
.nav-link{
  font-weight: 600;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover{
  background: var(--soft);
  color: var(--text);
}

.nav-toggle{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:#fff;
  align-items:center;
  justify-content:center;
  gap: 4px;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero{
  padding: 64px 0 40px;
  background:
    radial-gradient(900px 500px at 15% 5%, #eff4ff 0%, #ffffff 55%),
    radial-gradient(820px 460px at 95% 10%, #f3f1ff 0%, #ffffff 52%);
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.25fr .95fr;
  gap: 24px;
  align-items:start;
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-weight: 600;
}
.hero-title{
  margin: 14px 0 10px;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.6px;
}
.hero-title .dot{ color: var(--brand); }
.hero-sub{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}
.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid var(--border);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-color: transparent;
  color:#fff;
  box-shadow: var(--shadow2);
}
.btn-primary:hover{ box-shadow: var(--shadow); }
.btn-ghost{
  background:#fff;
  color: var(--text);
}
.btn-ghost:hover{ background: var(--soft); }

.hero-metrics{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}
.metric{
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:#fff;
  min-width: 120px;
}
.metric-num{
  font-weight: 800;
  letter-spacing: -0.2px;
}
.metric-label{
  color: var(--muted);
  font-size: 13px;
}

.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}
.card-elevated{
  box-shadow: var(--shadow2);
  border-color: #eef2fb;
}
.card-header{
  display:flex;
  flex-direction:column;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.card-title{
  font-weight: 800;
  letter-spacing: -0.2px;
}
.card-sub{ color: var(--muted); font-size: 13px; }
.card-body{ padding-top: 12px; }

.list{ list-style:none; padding:0; margin:0; }
.list-compact .list-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.list-compact .list-item:last-child{ border-bottom:none; padding-bottom: 0; }
.list-link{
  font-weight: 700;
  color: var(--text);
}
.list-link:hover{ color: var(--brand); }
.list-meta{
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

/* Sections */
.section{ padding: 56px 0; }
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.section-title{
  margin:0;
  font-size: 26px;
  letter-spacing: -0.3px;
}
.section-sub{
  margin:0;
  color: var(--muted);
  max-width: 560px;
}

.grid{
  display:grid;
  gap: 16px;
}
.grid-3{ grid-template-columns: repeat(3, 1fr); }

.icon-badge{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #111827, #3b4b74);
  box-shadow: var(--shadow2);
  margin-bottom: 12px;
}
.card-h{ margin: 0 0 8px; font-size: 18px; }
.card-p{ margin: 0; color: var(--muted); }

/* CTA */
.section-cta{ padding-top: 16px; }
.cta{
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: #fff;
  box-shadow: var(--shadow2);
  padding: 26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.cta-title{ margin:0 0 6px; font-size: 22px; letter-spacing: -0.2px; }
.cta-sub{ margin:0; color: var(--muted); }
.cta-actions{ display:flex; gap: 10px; }

/* Pages */
.page{ padding: 34px 0 60px; }
.page-head{ margin-bottom: 18px; }
.page-title{ margin:0; font-size: 30px; letter-spacing: -0.4px; }
.page-sub{ margin: 8px 0 0; color: var(--muted); }

.breadcrumb{
  display:flex;
  align-items:center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 16px;
}
.breadcrumb a:hover{ color: var(--text); }
.sep{ color: #aab3c2; }
.current{ color: var(--text); }

/* News list */
.news-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.news-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:#fff;
  padding: 18px;
  box-shadow: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.news-card:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
  border-color: #e6ecff;
}
.news-title{
  margin:0 0 8px;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.news-brief{
  margin:0;
  color: var(--muted);
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.news-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.news-more{ color: var(--brand); }

/* Article */
.article{
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background:#fff;
  box-shadow: var(--shadow2);
  padding: 28px;
}
.article-title{
  margin:0 0 10px;
  font-size: 32px;
  letter-spacing: -0.5px;
  line-height: 1.18;
}
.article-meta{
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.meta-dot{ margin: 0 8px; color: #aab3c2; }
.article-body{
  margin-top: 18px;
  font-size: 16px;
}
.article-body p{ margin: 0 0 14px; }
.article-body h2, .article-body h3{
  margin: 22px 0 10px;
  letter-spacing: -0.2px;
}
.article-body img{
  border-radius: 16px;
  border: 1px solid var(--border);
  margin: 16px 0;
}
.article-foot{
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.share{
  display:flex;
  align-items:center;
  gap: 10px;
}
.share-label{ color: var(--muted); font-weight: 700; }
.share-btn{
  border: 1px solid var(--border);
  background:#fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  cursor:pointer;
}
.share-btn:hover{ background: var(--soft); }

.article-nav{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.article-nav-link{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background:#fff;
  transition: background .12s ease;
}
.article-nav-link:hover{ background: var(--soft); }
.nav-k{ display:block; color: var(--muted); font-weight: 800; font-size: 12px; }
.nav-v{ display:block; margin-top: 6px; font-weight: 800; }

/* Empty + Pager */
.empty{
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  text-align:center;
}
.empty-wide{ grid-column: 1 / -1; }
.empty-title{ font-weight: 900; }
.empty-sub{ color: var(--muted); margin-top: 6px; }

.pager{
  margin-top: 22px;
  display:flex;
  justify-content:center;
}
.pager ul{ list-style:none; padding:0; margin:0; display:flex; gap: 8px; }
.pager li a, .pager li span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0 12px;
  font-weight: 800;
  color: var(--muted);
}
.pager li.active span{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#fff;
  border-color: transparent;
}
.pager li a:hover{ background: var(--soft); color: var(--text); }

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 34px 0 26px;
  background:#fff;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap: 20px;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
}
.footer-desc{
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 520px;
}
.footer-right{
  display:flex;
  flex-direction:column;
  gap: 10px;
  align-items:flex-end;
}
.footer-link{
  color: var(--muted);
  font-weight: 700;
}
.footer-link:hover{ color: var(--text); }
.footer-bottom{
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 960px){
  .hero-inner{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .news-grid{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction:column; align-items:flex-start; }
  .footer-right{ align-items:flex-start; }
  .article-nav{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .hero{ padding-top: 44px; }
  .hero-title{ font-size: 34px; }
  .nav-toggle{ display:inline-flex; }
  .site-nav{
    position:absolute;
    right: 20px;
    top: 72px;
    flex-direction:column;
    align-items:stretch;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:#fff;
    box-shadow: var(--shadow2);
    width: min(260px, calc(100% - 40px));
    display:none;
  }
  .site-nav.is-open{ display:flex; }
  .nav-link{ padding: 12px 12px; }
}
