/* ============================================================
   爱体育 · 赛场数据台 — 共享 Site Kit (/assets/site.css)
   夜场蓝紫底 + 蓝图网格 + 荧光青数据 + 活力橙行动点
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --c-night: #1B1240;
  --c-violet: #2A1B63;
  --c-violet-deep: #231855;
  --c-paper: #F5EFE3;
  --c-warm: #FFF8EA;
  --c-cyan: #37F5D4;
  --c-orange: #FF6B2C;
  --c-red: #E2482F;
  --c-ink: #1A1410;
  --c-mist: #A99BD6;
  --c-mint: #9BFFEA;

  --font-display: 'Noto Sans SC', 'HarmonyOS Sans SC', system-ui, sans-serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', system-ui, sans-serif;
  --font-num: 'Roboto Mono', 'JetBrains Mono', 'Courier New', monospace;

  --line: rgba(169, 155, 214, .26);
  --line-strong: rgba(169, 155, 214, .46);
  --wrap: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  --radius: 4px;
  --shadow-hard: 7px 7px 0 rgba(12, 8, 28, .55);
  --ease: cubic-bezier(.22, .7, .3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(16px, .42vw + 14.6px, 18px);
  line-height: 1.7;
  color: var(--c-warm);
  background-color: var(--c-night);
  background-image:
    radial-gradient(circle at 82% -8%, rgba(55, 245, 212, .16), transparent 52%),
    radial-gradient(circle at 4% 6%, rgba(255, 107, 44, .12), transparent 42%),
    linear-gradient(to right, rgba(169, 155, 214, .075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(169, 155, 214, .075) 1px, transparent 1px);
  background-size: auto, auto, 68px 68px, 68px 68px;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.01em;
}

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

[id] { scroll-margin-top: 96px; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -160%);
  padding: 10px 18px;
  border: 2px solid var(--c-ink);
  border-radius: 3px;
  background: var(--c-cyan);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 4px 4px 0 rgba(12, 8, 28, .5);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 5. 头部命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(23, 15, 53, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--line-strong);
}
.header-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}
.header-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px var(--gutter);
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 3px 0;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--c-cyan);
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(55, 245, 212, .18), transparent 62%);
  box-shadow: 3px 3px 0 rgba(55, 245, 212, .2);
}
.brand-mark-line {
  position: absolute;
  inset: 6px;
  border-left: 2px solid rgba(55, 245, 212, .55);
  border-bottom: 2px solid rgba(55, 245, 212, .55);
}
.brand-mark-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, .22);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .04em;
}
.brand-sub {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--c-mist);
}

.header-tagline {
  max-width: 220px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  color: var(--c-mist);
  font-size: 12.5px;
  line-height: 1.5;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  margin-left: auto;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.nav-item { display: block; }
.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 9px 9px;
  border-bottom: 2px solid transparent;
  border-radius: 2px;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.nav-index {
  font-family: var(--font-num);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--c-mist);
  opacity: .8;
}
.nav-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}
.nav-link:hover {
  color: var(--c-cyan);
  background: rgba(55, 245, 212, .08);
  border-bottom-color: rgba(55, 245, 212, .5);
}
.nav-link[aria-current="page"] {
  color: var(--c-cyan);
  background: rgba(55, 245, 212, .1);
  border-bottom-color: var(--c-cyan);
}
.nav-link[aria-current="page"] .nav-index { color: var(--c-orange); opacity: 1; }

.nav-utility {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: clamp(8px, 1.6vw, 20px);
  border-left: 1px solid var(--line-strong);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  border: 2px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(55, 245, 212, .07);
  color: var(--c-warm);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--c-cyan); background: rgba(55, 245, 212, .14); }
.nav-toggle-label {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .16em;
}
.nav-toggle-bars { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--c-cyan);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  pointer-events: none;
}
.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-orange));
  transition: transform .12s linear;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 2px solid var(--c-warm);
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.2;
  box-shadow: 4px 4px 0 rgba(12, 8, 28, .42);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(12, 8, 28, .48); }
.btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(12, 8, 28, .48); }

.btn-accent {
  background: var(--c-orange);
  border-color: var(--c-ink);
  color: var(--c-ink);
  box-shadow: 4px 4px 0 rgba(55, 245, 212, .28);
}
.btn-accent:hover { background: #FF824E; box-shadow: 6px 6px 0 rgba(55, 245, 212, .36); }

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
  box-shadow: none;
  opacity: .92;
}
.btn-ghost:hover {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  background: rgba(55, 245, 212, .1);
  box-shadow: 4px 4px 0 rgba(55, 245, 212, .18);
}

.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 12.5px; box-shadow: 3px 3px 0 rgba(12, 8, 28, .38); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 7. 布局容器与区块 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container-narrow { max-width: 820px; }

.section {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0;
}
.section--paper {
  background-color: var(--c-paper);
  background-image:
    linear-gradient(to right, rgba(26, 20, 16, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 20, 16, .05) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px;
  border-top: 2px solid var(--c-ink);
  border-bottom: 2px solid var(--c-ink);
  color: var(--c-ink);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 24px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--c-cyan);
}
.section-label::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: currentColor;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.16;
  color: var(--c-warm);
}
.section-text {
  max-width: 62ch;
  font-size: 16px;
  color: rgba(255, 248, 234, .78);
}

.section--paper .section-label { color: #B8410F; }
.section--paper .section-title { color: var(--c-ink); }
.section--paper .section-text { color: #3A2E24; }
.section--paper .lede { color: #3A2E24; }
.section--paper .btn-ghost:hover { color: var(--c-red); border-color: var(--c-red); background: rgba(226, 72, 47, .08); }

.eyebrow {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--c-mist);
}
.lede {
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  color: rgba(255, 248, 234, .86);
}
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.rule {
  height: 2px;
  margin: clamp(20px, 4vw, 40px) 0;
  border: 0;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 12px, transparent 12px 20px);
}
.section--paper .rule {
  background: repeating-linear-gradient(90deg, rgba(26, 20, 16, .34) 0 12px, transparent 12px 20px);
}

/* ---------- 8. 栅格 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.grid { display: grid; gap: clamp(14px, 2vw, 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)); }

/* ---------- 9. 正文 ---------- */
.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.8;
}
.prose h2 {
  margin: 1.6em 0 .6em;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}
.prose h3 {
  margin: 1.4em 0 .5em;
  font-size: 1.15rem;
}
.prose p + p { margin-top: 1em; }
.prose ul { margin: 1em 0; }
.prose li {
  position: relative;
  padding-left: 20px;
  margin-bottom: .5em;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 9px;
  height: 2px;
  background: var(--c-orange);
}
.prose a {
  color: var(--c-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section--paper .prose a { color: #A5321C; }
.section--paper .prose li::before { background: var(--c-red); }

/* ---------- 10. 面包屑 ---------- */
.breadcrumbs { padding-top: 16px; }
.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--c-mist);
}
.breadcrumbs-link {
  color: var(--c-mist);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.breadcrumbs-link:hover { color: var(--c-cyan); border-bottom-color: var(--c-cyan); }
.breadcrumbs-sep { color: rgba(169, 155, 214, .6); }
.breadcrumbs-current { color: var(--c-warm); }

/* ---------- 11. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
}
.tag-cyan { color: var(--c-cyan); background: rgba(55, 245, 212, .1); }
.tag-orange { color: var(--c-orange); background: rgba(255, 107, 44, .12); }
.tag-ink { color: var(--c-ink); background: var(--c-warm); border-color: var(--c-ink); }
.section--paper .tag-cyan { color: #0F7C68; background: rgba(15, 124, 104, .1); }
.section--paper .tag-orange { color: #B8410F; background: rgba(255, 107, 44, .16); }

/* ---------- 12. 数据锚点 ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(12px, 2vw, 26px); }
.stat {
  min-width: 96px;
  padding-left: 12px;
  border-left: 2px solid var(--c-cyan);
}
.stat-value {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1;
  color: var(--c-cyan);
  font-variant-numeric: tabular-nums;
}
.stat-unit {
  margin-left: 4px;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--c-mist);
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--c-mist);
}
.section--paper .stat { border-left-color: var(--c-red); }
.section--paper .stat-value { color: #0F7C68; }
.section--paper .stat-unit,
.section--paper .stat-label { color: #6B5A48; }

/* ---------- 13. 对比数据条 ---------- */
.data-bar {
  --bar-value: 0%;
  display: grid;
  gap: 6px;
}
.data-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.data-bar-label { font-size: 13.5px; font-weight: 700; color: var(--c-warm); }
.data-bar-value {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--c-cyan);
  font-variant-numeric: tabular-nums;
}
.data-bar-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border: 1.5px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(169, 155, 214, .18);
}
.data-bar-fill {
  display: block;
  height: 100%;
  width: var(--bar-value);
  background: linear-gradient(90deg, var(--c-cyan), var(--c-mint));
  transition: width .24s var(--ease);
}
.data-bar--orange .data-bar-fill { background: linear-gradient(90deg, var(--c-orange), #FFAE7A); }
.data-bar--orange .data-bar-value { color: var(--c-orange); }
.section--paper .data-bar-label { color: var(--c-ink); }
.section--paper .data-bar-value { color: #0F7C68; }
.section--paper .data-bar-track { background: rgba(26, 20, 16, .12); border-color: rgba(26, 20, 16, .35); }

/* ---------- 14. 步骤路径 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.step {
  position: relative;
  padding: 16px 16px 18px;
  border: 2px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(42, 27, 99, .58);
  box-shadow: 5px 5px 0 rgba(12, 8, 28, .45);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.step-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border: 2px solid var(--c-orange);
  border-radius: 50%;
  background: rgba(255, 107, 44, .12);
  color: var(--c-orange);
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.step-num { font-family: var(--font-num); font-size: 13px; font-weight: 700; }
.step-title {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--c-warm);
}
.step-text { font-size: 13.5px; line-height: 1.6; color: rgba(255, 248, 234, .74); }
.step:hover { border-color: var(--c-cyan); transform: translateY(-2px); }
.step:hover .step-node {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  background: rgba(55, 245, 212, .14);
}

/* ---------- 15. 索引卡 ---------- */
.card {
  padding: clamp(16px, 2.4vw, 24px);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--c-violet);
}
.card-hard {
  border-color: rgba(55, 245, 212, .34);
  box-shadow: var(--shadow-hard);
}
.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.card-title { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--c-warm); }
.card-text { font-size: 14.5px; line-height: 1.7; color: rgba(255, 248, 234, .76); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.section--paper .card { background: #FFFDF7; border-color: rgba(26, 20, 16, .3); }
.section--paper .card-head { border-bottom-color: rgba(26, 20, 16, .2); }
.section--paper .card-title { color: var(--c-ink); }
.section--paper .card-text { color: #4A3B2E; }

/* ---------- 16. 章节目录 ---------- */
.toc {
  padding: 16px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(42, 27, 99, .62);
}
.toc-title {
  margin-bottom: 10px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--c-mist);
}
.toc-list { display: grid; gap: 2px; }
.toc-link {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 2px;
  font-size: 13.5px;
  color: rgba(255, 248, 234, .72);
  transition: color .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease);
}
.toc-link:hover { color: var(--c-cyan); background: rgba(55, 245, 212, .08); }
.toc-link.is-active {
  color: var(--c-cyan);
  border-left-color: var(--c-orange);
  background: rgba(55, 245, 212, .1);
  font-weight: 700;
}

/* ---------- 17. 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid var(--c-cyan);
  border-radius: 3px;
  background: rgba(27, 18, 64, .95);
  color: var(--c-cyan);
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: .14em;
  box-shadow: 4px 4px 0 rgba(55, 245, 212, .24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s, background-color .16s var(--ease), color .16s var(--ease);
}
.back-to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--c-cyan); color: var(--c-ink); }

/* ---------- 18. 显现 ---------- */
.reveal { transition: opacity .5s var(--ease), transform .5s var(--ease); }
html[data-js="on"] .reveal:not(.is-visible) { opacity: 0; transform: translateY(20px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 19. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: var(--c-violet-deep);
  background-image:
    linear-gradient(to right, rgba(169, 155, 214, .16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(169, 155, 214, .16) 1px, transparent 1px),
    linear-gradient(135deg, rgba(55, 245, 212, .14), transparent 58%);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: var(--shadow-hard);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(12, 8, 28, .92), rgba(12, 8, 28, 0));
  color: var(--c-mint);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .06em;
}

/* ---------- 20. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 7vw, 88px);
  border-top: 2px solid var(--line-strong);
  background-image: linear-gradient(180deg, #160F35, var(--c-night) 58%);
  color: var(--c-warm);
}
.footer-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .6;
  background-image: linear-gradient(to right, rgba(169, 155, 214, .08) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}
.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) var(--gutter) 0;
}
.footer-lead { min-width: 0; }
.footer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--c-cyan);
}
.footer-eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: currentColor;
}
.footer-brandline {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 900;
  line-height: 1.35;
  color: var(--c-warm);
}
.footer-contact-note {
  max-width: 34ch;
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--c-mist);
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}
.footer-col { min-width: 0; }
.footer-col-title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--c-mist);
}
.footer-links { display: grid; gap: 8px; }
.footer-link {
  display: inline-block;
  font-size: 14px;
  color: rgba(255, 248, 234, .82);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer-link:hover { color: var(--c-cyan); border-bottom-color: var(--c-cyan); }

.footer-contact { min-width: 0; }
.footer-contact-list { display: grid; gap: 12px; }
.footer-contact-item { display: grid; gap: 2px; }
.footer-contact-label {
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--c-orange);
}
.footer-contact-value {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 248, 234, .88);
  overflow-wrap: anywhere;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--wrap);
  margin: clamp(28px, 5vw, 48px) auto 0;
  padding: 16px var(--gutter) 24px;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--c-mist);
}
.footer-copyright { color: var(--c-mist); }
.footer-icp { color: var(--line-strong); }

/* ---------- 21. 响应式 ---------- */
@media (max-width: 1080px) {
  .header-tagline { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(27, 18, 64, .99);
    border-bottom: 2px solid var(--c-cyan);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }
  .primary-nav[data-open="true"] { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 13px 10px;
    border-bottom: 1px solid var(--line);
  }
  .nav-link[aria-current="page"] { border-bottom-color: var(--c-cyan); }
  .nav-label { font-size: 15px; }
  .nav-utility {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
  .nav-utility .btn { width: 100%; }

  .split { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { position: static; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-lead { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .grid { gap: 14px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-columns { gap: 22px; }
  .footer-brandline { max-width: none; }
  .promo-row, .stat-row { gap: 14px; }
  .back-to-top { padding: 9px 12px; font-size: 10.5px; }
  .scroll-progress { display: block; }
}

/* ---------- 22. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html[data-js="on"] .reveal,
  html[data-js="on"] .reveal:not(.is-visible) {
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-progress-bar { transition: none; }
  .btn:hover, .step:hover { transform: none; }
}
