/* 公开站点基础样式：令牌、导航、按钮、区块、表格、页脚。所有公开页共用这一份 */
:root {
  --paper: #FFFFFF;
  --paper-2: #F5F6F4;
  --ink: #16181B;
  --ink-2: #454B51;
  --ink-3: #6B7279;
  --line: #E3E5E3;
  --line-2: #C8CCC9;
  --brand: #2C5A4E;
  --brand-2: #1F4038;
  --brand-tint: #EDF3F0;
  --warn: #7A5A1C;
  --warn-tint: #F8F2E4;
  --max: 1320px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --fs-display: clamp(30px, 3.6vw, 48px);
  --fs-h2: clamp(22px, 2.2vw, 30px);
  --sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", SimSun, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
::selection { background: rgba(44, 90, 78, .15); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 34px; width: 100%; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { width: 32px; height: 32px; flex: none; display: block; object-fit: contain; transition: transform .24s var(--ease); }
.logo:hover .logo-mark { transform: scale(1.05); }
.logo-text { display: flex; flex-direction: column; gap: 5px; }
.logo-name { font-size: 17.5px; font-weight: 700; letter-spacing: .01em; line-height: 1; }
.logo-sub { font-size: 10px; color: var(--ink-3); letter-spacing: .02em; line-height: 1; }
.menu { display: flex; gap: 22px; }
.menu a { font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: color .18s var(--ease); position: relative; }
.menu a:hover { color: var(--ink); }
.menu a[aria-current="page"] { color: var(--brand); }
.menu a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--brand);
}
.nav-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-tel { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; margin-right: 8px; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--brand); color: #FFF; }
.btn-solid:hover { background: var(--brand-2); }
.btn-line { border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink-2); }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; }

/* 区块 */
.sec { padding: 40px 0; border-bottom: 1px solid var(--line); }
.sec.alt { background: var(--paper-2); }
.sec-head { max-width: 860px; margin-bottom: 26px; }
.two .sec-head { max-width: none; }
.sec-head h2 {
  font-size: var(--fs-h2);
  line-height: 1.26;
  letter-spacing: -.024em;
  font-weight: 700;
  position: relative;
  padding-top: 18px;
}
.sec-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 2px;
  background: var(--brand);
}
.sec-head p { margin-top: 10px; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); max-width: 820px; }
.sub-h {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 6px;
  letter-spacing: -.01em;
  position: relative;
  padding-left: 14px;
}
.sub-h::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28em;
  width: 2px;
  height: 1em;
  background: var(--brand);
}
.sub-p { font-size: 14px; color: var(--ink-2); line-height: 1.85; max-width: 760px; }

/* 表格 */
.table-scroll { overflow-x: auto; }
.tbl th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink-3);
  padding: 0 20px 11px 0;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.tbl td {
  padding: 11px 20px 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
  vertical-align: top;
  line-height: 1.65;
}
.tbl td:last-child, .tbl th:last-child { padding-right: 0; }
.tbl td.name { color: var(--ink); font-weight: 500; white-space: nowrap; }
.tbl tr:hover td { background: #FAFBFA; }
.tbl-note { margin-top: 12px; font-size: 12px; color: var(--ink-3); line-height: 1.8; }

/* 两栏 */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.two h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; }
.two p { font-size: 14px; color: var(--ink-2); line-height: 1.9; }

/* 数据口径 */
.kv { border-top: 1px solid var(--line-2); margin-top: 18px; }
.kv-row { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv-row span { color: var(--ink-2); }
.kv-row b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 深色数据带 */
.band { background: #121417; color: #FFF; padding: 34px 0; }
.band-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.band-item b {
  display: block;
  font-family: var(--sans);
  font-size: clamp(36px, 3.6vw, 50px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.band-item span { display: block; margin-top: 10px; font-size: 12.5px; color: #8C9298; letter-spacing: .02em; }

/* 深色行动区：全站共用 */
.cta { background: #121417; color: #FFF; padding: 34px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -.026em; }
.cta p { margin-top: 10px; color: #9AA0A6; font-size: 14px; line-height: 1.8; max-width: 560px; }
.cta-act { display: flex; gap: 10px; flex-wrap: wrap; }
.cta .btn-solid { background: #FFF; color: #16181B; }
.cta .btn-solid:hover { background: #E4E6E7; }
.cta .btn-line { border-color: #44484D; color: #FFF; }
.cta .btn-line:hover { border-color: #A2A7AB; }

/* 页脚 */
footer { background: #0A0C0E; color: #868C92; padding: 40px 0 20px; border-top: 1px solid #23272B; }
.foot { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 24px; border-bottom: 1px solid #23272B; }
.foot-name {
  font-size: 18px;
  font-weight: 700;
  color: #FFF;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.foot-name::before {
  content: "";
  width: 19px;
  height: 19px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 2 L28.12 9 L28.12 23 L16 30 L3.88 23 L3.88 9 Z' fill='%23FFFFFF'/%3E%3C/svg%3E") no-repeat center / contain;
}
.foot-desc { margin-top: 12px; font-size: 13px; line-height: 1.85; max-width: 320px; }
.foot-title { font-size: 12px; color: #FFF; font-weight: 600; letter-spacing: .06em; margin-bottom: 14px; }
.foot-col a { display: block; font-size: 13px; margin-bottom: 9px; transition: color .18s var(--ease); }
.foot-col a:hover { color: #FFF; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; font-size: 12px; color: #6A7076; flex-wrap: wrap; }

/* 首页实时数据（后端 /api/public/stats 填充，未加载前不占位） */
.hero-live {
  margin-top: 16px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.hero-live em { font-style: normal; color: var(--ink-3); margin-right: 6px; }

/* 验真表单 */
.form-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 22px 24px 24px;
}
.form-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.form-row input {
  flex: 1 1 260px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  background: #FFF;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}
.form-row input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.form-hint { margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.verify-result { margin-top: 18px; }
.verify-ok, .verify-bad {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-left: 3px solid var(--brand);
  background: var(--brand-tint);
}
.verify-bad { border-left-color: #A33; background: #FBEFEF; color: #8A2B2B; }
.verify-timeline { margin: 14px 0 0; padding-left: 20px; font-size: 13px; color: var(--ink-2); line-height: 2; }

/* 共用响应式 */
@media (max-width: 1240px) {
  .nav-tel { display: none; }
}
@media (max-width: 1080px) {
  .two { grid-template-columns: 1fr; gap: 36px; }
  .menu { display: none; }
  .band-in { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 60px 0; }
  .sec-head { margin-bottom: 32px; }
  .foot { grid-template-columns: 1fr 1fr; gap: 28px; }
  .band { padding: 44px 0; }
  .cta { padding: 32px 0; }
  .cta-in { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* 打印：去掉导航与按钮，深色块转白，字号适配 A4 */
@media print {
  .nav, .cta, .btn, .link-more, .page-visual, .hero-act, .nav-act, .faq-item summary::after { display: none !important; }
  body { color: #000; font-size: 10.5pt; line-height: 1.6; }
  .wrap { max-width: none; padding: 0; }
  .sec { padding: 14pt 0; border-bottom: 1px solid #CCC; }
  .sec.alt, .page-visual, .band { background: none !important; }
  .sec-head h2, .sub-h { padding-top: 0; padding-left: 0; }
  .sec-head h2::before, .sub-h::before { display: none; }
  .sec-head { margin-bottom: 12pt; }
  .band { color: #000; padding: 10pt 0; }
  .band-item b { color: #000; font-size: 18pt; }
  .band-item span { color: #333; }
  footer { background: none; color: #333; padding: 16pt 0 0; }
  .foot-name, .foot-title { color: #000; }
  .foot-name::before { display: none; }
  .foot { border-bottom: 1px solid #CCC; }
  a { color: #000; }
  .table-scroll { overflow: visible; }
  .tbl th, .tbl td { padding: 5pt 8pt 5pt 0; font-size: 9pt; }
  .tbl tr:hover td { background: none; }
  .card, .mat, .report { break-inside: avoid; }
  .page-head { padding: 0 0 14pt; }
  .crumb { margin-bottom: 10pt; }
}
