/* =========================================================
   亿兆赛场 — 共享外壳样式 /assets/site.css
   夜场灯光 · 数据仪表盘 · 体育编辑部
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol, hr {
  margin: 0;
}

ul, ol { padding: 0; }
ul[class], ol[class] { list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

table { border-collapse: collapse; width: 100%; }

hr { border: 0; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色彩 */
  --ink:        #04120E;
  --night:      #0A231C;
  --turf-deep:  #12362B;
  --turf-mid:   #1D5343;
  --neon:       #34E3BE;
  --neon-soft:  #8CF5DD;
  --flag-red:   #E8442F;
  --red-deep:   #7E2A20;
  --data-yellow:#F2C14E;
  --paper:      #EEF5F1;
  --muted:      #8FA9A0;

  /* 结构色 */
  --line:       rgba(238, 245, 241, 0.10);
  --line-strong:rgba(238, 245, 241, 0.18);
  --glass:      rgba(238, 245, 241, 0.06);
  --glass-line: rgba(238, 245, 241, 0.16);
  --neon-a10:   rgba(52, 227, 190, 0.10);
  --neon-a22:   rgba(52, 227, 190, 0.22);
  --neon-a38:   rgba(52, 227, 190, 0.38);

  /* 字体 */
  --font-display: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', system-ui, sans-serif;
  --font-body:    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono:    'Roboto Mono', 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-count: cubic-bezier(0.16, 1, 0.3, 1);
  --d-fast: 160ms;
  --d-block: 420ms;
  --d-nav: 260ms;

  /* 尺寸 */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-drop: 84px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(60% 38% at 84% 0%, rgba(52, 227, 190, 0.09), transparent 68%),
    radial-gradient(52% 32% at 2% 24%, rgba(29, 83, 67, 0.42), transparent 72%),
    radial-gradient(46% 30% at 98% 74%, rgba(126, 42, 32, 0.20), transparent 70%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--neon);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 滚动条 */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--turf-mid); }
::-webkit-scrollbar-thumb {
  background: #34E3BE55;
  border: 3px solid var(--turf-mid);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: #34E3BE99; }

* { scrollbar-color: #34E3BE55 var(--turf-mid); scrollbar-width: thin; }

/* ---------- 4. 排版工具 ---------- */
.t-display,
.t-page,
.t-section,
.t-eyebrow,
.card-title,
.footer-col-title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.t-display {
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.92;
  font-stretch: condensed;
}

.t-page {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.04;
}

.t-section {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.t-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--neon-soft);
  text-transform: uppercase;
  line-height: 1.6;
}

.t-lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.78;
  color: rgba(238, 245, 241, 0.88);
  max-width: 40em;
}

.t-cap {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

/* ---------- 5. 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(40px, 6vw, 88px);
}

.section--tight { padding-block: clamp(24px, 3.5vw, 48px); }
.section--loose { padding-block: clamp(56px, 9vw, 120px); }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 6. 章节推进条带 ---------- */
.band {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 2.6vw, 28px);
}

.band-index {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--data-yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.band-label {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--neon-soft);
  line-height: 1.6;
}

.band-rule {
  flex: 1 1 auto;
  min-width: 32px;
  height: 6px;
  border-radius: 3px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--turf-deep) 0 16px,
    var(--turf-mid) 16px 32px
  );
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  padding-block: 20px 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--turf-mid);
}

.breadcrumb a {
  color: var(--muted);
  transition: color var(--d-fast) var(--ease);
}

.breadcrumb a:hover { color: var(--neon); }

.breadcrumb [aria-current="page"] { color: var(--neon-soft); }

/* ---------- 8. 长文容器 ---------- */
.prose {
  max-width: 38em;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: rgba(238, 245, 241, 0.9);
}

.prose > * + * { margin-top: 1em; }

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--paper);
  margin-top: 1.8em;
}

.prose h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.prose h3 { font-size: clamp(1.125rem, 1.6vw, 1.375rem); }

.prose a {
  color: var(--neon);
  border-bottom: 1px solid var(--neon-a38);
  transition: color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}

.prose a:hover {
  color: var(--neon-soft);
  border-color: var(--neon-soft);
}

.prose strong { color: var(--paper); font-weight: 700; }

.prose ul,
.prose ol {
  padding-left: 1.35em;
  list-style: disc;
}

.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }

.quote {
  border-left: 3px solid var(--neon-soft);
  padding: 4px 0 4px 18px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--paper);
}

/* ---------- 9. 卡片 / 标签 / 按钮 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius);
  background: var(--turf-deep);
  border: 1px solid var(--line);
  transition: border-color var(--d-fast) var(--ease),
              transform var(--d-fast) var(--ease);
}

.card:hover {
  border-color: var(--neon-a38);
  transform: translateY(-2px);
}

.card--glass {
  background: var(--glass);
  border-color: var(--glass-line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.card--flag {
  background: var(--red-deep);
  border-color: rgba(232, 68, 47, 0.42);
}

.card--yellow {
  background: rgba(242, 193, 78, 0.12);
  border-color: rgba(242, 193, 78, 0.36);
}

.card-title {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.3;
}

.card-text {
  margin-top: 0.6em;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(238, 245, 241, 0.82);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(238, 245, 241, 0.04);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.chip--neon {
  color: var(--neon);
  border-color: rgba(52, 227, 190, 0.34);
  background: var(--neon-a10);
}

.chip--yellow {
  color: var(--data-yellow);
  border-color: rgba(242, 193, 78, 0.36);
  background: rgba(242, 193, 78, 0.12);
}

.chip--red {
  color: #FF9C8A;
  border-color: rgba(232, 68, 47, 0.48);
  background: rgba(232, 68, 47, 0.16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform var(--d-fast) var(--ease),
              background-color var(--d-fast) var(--ease),
              border-color var(--d-fast) var(--ease),
              color var(--d-fast) var(--ease),
              box-shadow var(--d-fast) var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-cta {
  background: var(--neon);
  color: #04120E;
  box-shadow: 0 6px 20px rgba(52, 227, 190, 0.26);
}

.btn-cta:hover {
  background: var(--neon-soft);
  box-shadow: 0 8px 26px rgba(52, 227, 190, 0.36);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.btn-flag {
  background: var(--flag-red);
  color: #FFF3F0;
  box-shadow: 0 6px 20px rgba(232, 68, 47, 0.28);
}

.btn-flag:hover { background: #F25A45; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--neon-a38);
  color: var(--neon);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color var(--d-fast) var(--ease),
              border-color var(--d-fast) var(--ease),
              gap var(--d-fast) var(--ease);
}

.link-more::after {
  content: "\2192";
  font-family: var(--font-mono);
  line-height: 1;
}

.link-more:hover {
  color: var(--neon-soft);
  border-color: var(--neon-soft);
  gap: 10px;
}

/* ---------- 10. 数据表 ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--night);
}

.data-table {
  width: 100%;
  min-width: 520px;
  font-size: 0.9375rem;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--turf-mid);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) { background: var(--turf-deep); }

.data-table tbody tr:hover { background: var(--neon-a10); }

.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table .num { text-align: right; }

/* ---------- 11. 图片容器基础规则 ---------- */
.figure {
  --fig-ratio: 16 / 9;
  position: relative;
  margin: 0;
}

.figure--tall { --fig-ratio: 3 / 4; }
.figure--wide { --fig-ratio: 21 / 9; }
.figure--square { --fig-ratio: 1 / 1; }

.figure-media {
  position: relative;
  isolation: isolate;
  aspect-ratio: var(--fig-ratio);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--turf-deep);
  background-image:
    radial-gradient(circle at 24% 18%, rgba(52, 227, 190, 0.20), transparent 62%),
    linear-gradient(160deg, rgba(29, 83, 67, 0.92), rgba(10, 35, 28, 0.96));
}

.figure-media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(52, 227, 190, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 227, 190, 0.07) 1px, transparent 1px);
  background-size: 42px 42px, 42px 42px;
}

.figure-cap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
}

.figure-cap::before {
  content: "";
  flex: 0 0 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
}

/* ---------- 12. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--neon);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  transition: top var(--d-fast) var(--ease);
}

.skip-link:focus {
  top: 16px;
  outline-offset: 2px;
}

/* ---------- 13. 阅读进度条 ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 80;
  pointer-events: none;
  background: rgba(4, 18, 14, 0.55);
}

.read-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--turf-mid), var(--neon));
  box-shadow: 0 0 12px rgba(52, 227, 190, 0.6);
  will-change: transform;
}

/* ---------- 14. 头部：悬浮胶囊导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px clamp(12px, 3vw, 28px) 0;
  pointer-events: none;
}

.nav-shell {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 20px);
  max-width: var(--shell);
  margin-inline: auto;
  padding: 8px 10px 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(10, 35, 28, 0.74);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.48),
              inset 0 1px 0 rgba(238, 245, 241, 0.06);
  transition: padding var(--d-nav) var(--ease),
              background-color var(--d-nav) var(--ease);
}

.site-header[data-compact] .nav-shell {
  padding-block: 6px;
  background: rgba(6, 22, 18, 0.88);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  transition: opacity var(--d-fast) var(--ease);
}

.brand:hover { opacity: 0.86; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--neon), var(--turf-mid));
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(52, 227, 190, 0.35),
              0 6px 18px rgba(52, 227, 190, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* 主导航 */
.primary-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.8vw, 8px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: rgba(238, 245, 241, 0.78);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: color var(--d-fast) var(--ease),
              background-color var(--d-fast) var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  background: var(--neon-a10);
}

.nav-link[aria-current="page"] {
  color: var(--neon);
  background: var(--neon-a10);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(52, 227, 190, 0.7);
}

/* 压缩态章节指示 */
.nav-chapter {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 0;
  margin-left: 8px;
  padding: 4px 0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  background: var(--neon-a10);
  transition: max-width var(--d-nav) var(--ease),
              opacity var(--d-nav) var(--ease),
              padding var(--d-nav) var(--ease);
}

.site-header[data-compact] .nav-chapter {
  max-width: 380px;
  padding: 4px 14px;
  opacity: 1;
}

.nav-chapter-index {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--data-yellow);
}

.nav-chapter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neon-soft);
}

/* 右侧信息位 */
.nav-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.update-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--neon-a22);
  background: var(--neon-a10);
  color: var(--neon-soft);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.update-pill::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}

.site-header[data-compact] .update-pill { display: none; }

.nav-side .btn { padding: 9px 18px; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 14px 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(238, 245, 241, 0.05);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color var(--d-fast) var(--ease),
              background-color var(--d-fast) var(--ease);
}

.nav-toggle:hover {
  border-color: var(--neon);
  background: var(--neon-a10);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
  transition: transform var(--d-nav) var(--ease),
              opacity var(--d-fast) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle-label { line-height: 1.4; }

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 140px);
  background-image: linear-gradient(180deg, var(--night) 0%, var(--ink) 100%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--turf-deep) 0 28px,
    var(--turf-mid) 28px 56px
  );
  opacity: 0.8;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    60% 40% at 88% 12%,
    rgba(52, 227, 190, 0.09),
    transparent 70%
  );
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(44px, 7vw, 88px) var(--gutter) 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.brand--footer { align-items: flex-start; }

.brand--footer .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.25rem;
}

.brand--footer .brand-name { font-size: 1.25rem; }

.footer-note {
  max-width: 34em;
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--muted);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--neon);
}

.footer-col-title::before {
  content: "";
  flex: 0 0 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link {
  display: inline-block;
  font-size: 0.9375rem;
  color: rgba(238, 245, 241, 0.76);
  transition: color var(--d-fast) var(--ease),
              padding-left var(--d-fast) var(--ease);
}

.footer-link:hover {
  color: var(--neon);
  padding-left: 4px;
}

/* 联系方式 */
.footer-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.footer-contact-line + .footer-contact-line { margin-top: 8px; }

.footer-k {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--neon-soft);
}

.footer-v {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--paper);
  word-break: break-all;
}

.footer-address,
.footer-reply {
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--muted);
}

/* 继续查阅模块 */
.footer-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  min-height: 88px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 18px clamp(18px, 2.6vw, 28px);
  border-radius: var(--radius);
  border: 1px solid var(--neon-a22);
  background-image: linear-gradient(
    100deg,
    rgba(52, 227, 190, 0.11),
    rgba(18, 54, 43, 0.6) 62%
  );
}

.footer-next-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--data-yellow);
}

.footer-next-text {
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(238, 245, 241, 0.88);
}

.footer-next-cta { flex: 0 0 auto; }

/* 底部信息行 */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer-copy { color: rgba(238, 245, 241, 0.72); }

.footer-icp {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.footer-tip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neon-soft);
}

.footer-tip::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--data-yellow);
  box-shadow: 0 0 10px var(--data-yellow);
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1100px) {
  .update-pill { display: none; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: fixed;
    top: var(--nav-drop);
    left: clamp(12px, 3vw, 28px);
    right: clamp(12px, 3vw, 28px);
    z-index: 55;
    margin: 0;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: rgba(8, 28, 23, 0.97);
    border: 1px solid var(--line-strong);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.62);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity var(--d-nav) var(--ease),
                transform var(--d-nav) var(--ease),
                visibility var(--d-nav) linear;
  }

  .primary-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    display: block;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .nav-link[aria-current="page"]::after { display: none; }

  .nav-list li + li { border-top: 1px solid var(--line); }

  .nav-chapter { display: none; }

  .grid-3,
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-top { grid-template-columns: 1fr; }
  .footer-meta { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .brand-sub { display: none; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 0.9375rem; }
  .brand-name { font-size: 1rem; }
  .nav-shell { padding-left: 14px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .nav-side { display: none; }
  .nav-shell { padding: 7px 8px 7px 14px; }
  .footer-next { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 560px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; gap: 26px; }
  .data-table th,
  .data-table td { padding: 10px 12px; }
}

/* ---------- 17. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .card:hover { transform: none; }

  .footer-link:hover { padding-left: 0; }

  .link-more:hover { gap: 6px; }

  .read-progress-fill { transition: none; }
}
