/* ============================================================
   /assets/site.css — 体育安装主站 共享外壳样式
   层序：reset → tokens → base → 组件 → header → footer → 响应式
   ============================================================ */

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

html,
body { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body { min-height: 100%; }

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

h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

::selection { background: #35F2D6; color: #04120F; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #05070F;
  --ink-800: #0B1020;
  --ink-700: #131C33;
  --glass: rgba(30, 42, 71, 0.55);

  --cyan: #35F2D6;
  --orange: #FF7A29;
  --magenta: #FF3D7F;
  --moss: #6F8F6B;
  --clay: #C8714F;
  --rock: #8C96AD;
  --bone: #F2EFE6;

  --line: rgba(140, 150, 173, 0.20);
  --line-soft: rgba(140, 150, 173, 0.12);
  --line-cyan: rgba(53, 242, 214, 0.34);
  --line-warm: rgba(255, 122, 41, 0.30);

  --font-sans: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Roboto Mono",
    "Courier New", monospace;

  --rail-w: 88px;
  --topbar-h: 58px;
  --content-max: 1280px;

  --shadow-panel: 0 24px 48px -32px rgba(0, 0, 0, 0.95);
  --shadow-float: 0 34px 60px -34px rgba(0, 0, 0, 0.92);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--bone);
  background-color: var(--ink-800);
  background-image:
    radial-gradient(1200px 620px at 12% -12%, rgba(53, 242, 214, 0.10), transparent 62%),
    radial-gradient(900px 520px at 100% 2%, rgba(255, 122, 41, 0.09), transparent 58%),
    linear-gradient(180deg, #0B1020 0%, #090E1C 58%, #05070F 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--bone);
}

h1 { font-size: clamp(30px, 4.2vw, 40px); }
h2 { font-size: clamp(22px, 2.6vw, 26px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: 17px; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--bone); }

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

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

/* ---------- 4. 基础组件 ---------- */

/* 4.1 阶段标签 / 导语 / 元信息 */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
}

.lede {
  max-width: 64ch;
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.8;
  color: #DCD8CD;
}

.meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--rock);
}

/* 4.2 等宽数字 */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}
.num--glow {
  color: var(--cyan);
  text-shadow: 0 0 1px rgba(53, 242, 214, 0.9), 0 0 14px rgba(53, 242, 214, 0.42);
}

/* 4.3 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background-color 0.16s var(--ease),
    color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.btn--primary {
  background: var(--orange);
  color: #140B03;
  box-shadow: 0 14px 30px -18px rgba(255, 122, 41, 0.95);
}
.btn--primary:hover { background: #FF8B45; color: #140B03; transform: translateY(-1px); }
.btn--ghost {
  background: var(--glass);
  color: var(--bone);
  border-color: var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { color: var(--cyan); border-color: var(--line-cyan); }
.btn--cyan { background: var(--cyan); color: #04120F; }
.btn--cyan:hover { background: #63F7E1; color: #04120F; }

/* 4.4 堆叠面板 */
.stack {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-panel);
}
.panel--glass {
  background: var(--glass);
  border-color: var(--line-cyan);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}
.panel--warm { border-color: var(--line-warm); }

/* 4.5 章节头（两位编号 + 小标题） */
.chapter { margin-bottom: clamp(28px, 4vw, 44px); }

.chapter__head {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
  align-items: start;
  gap: clamp(14px, 2vw, 26px);
  padding-left: clamp(14px, 2vw, 22px);
  border-left: 2px solid var(--cyan);
}

.chapter__num {
  font-family: var(--font-mono);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.03em;
  color: rgba(53, 242, 214, 0.14);
  -webkit-text-stroke: 1px rgba(53, 242, 214, 0.55);
}

.chapter__title { margin: 0; font-size: clamp(24px, 3.4vw, 34px); }

.chapter__sub {
  margin: 8px 0 0;
  max-width: 54ch;
  font-size: 14px;
  color: var(--rock);
}

/* 4.6 比分牌 / 数据锚点 */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(30, 42, 71, 0.40);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--bone);
}
.stat__label {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--rock);
}
.stat--live .stat__value { color: var(--cyan); text-shadow: 0 0 16px rgba(53, 242, 214, 0.40); }
.stat--hot .stat__value { color: var(--orange); }

/* 4.7 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(30, 42, 71, 0.35);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--rock);
}
.tag--cyan { color: var(--cyan); border-color: var(--line-cyan); }
.tag--orange { color: var(--orange); border-color: var(--line-warm); }
.tag--magenta { color: var(--magenta); border-color: rgba(255, 61, 127, 0.42); }
.tag--moss { color: var(--moss); border-color: rgba(111, 143, 107, 0.55); }
.tag--clay { color: var(--clay); border-color: rgba(200, 113, 79, 0.55); }

/* 4.8 网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}
.u-3 { grid-column: span 3; }
.u-4 { grid-column: span 4; }
.u-5 { grid-column: span 5; }
.u-6 { grid-column: span 6; }
.u-7 { grid-column: span 7; }
.u-8 { grid-column: span 8; }
.u-9 { grid-column: span 9; }
.u-12 { grid-column: span 12; }

/* 4.9 正文容器 */
.prose {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.75;
  color: #E4E0D6;
}
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; list-style: revert; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--cyan); }
.prose strong { color: var(--bone); }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 6px 0 6px 16px;
  border-left: 2px solid var(--clay);
  color: var(--rock);
}
.prose code {
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(53, 242, 214, 0.10);
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--cyan);
}

/* 4.10 面包屑 */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--rock);
}
.crumbs li { display: flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: rgba(140, 150, 173, 0.5); }
.crumbs a { color: var(--rock); }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--cyan); }

/* 4.11 分隔与装饰 */
.rule {
  height: 1px;
  margin: clamp(24px, 4vw, 44px) 0;
  border: 0;
  background: linear-gradient(90deg, rgba(53, 242, 214, 0.50), rgba(140, 150, 173, 0.16) 42%, transparent);
}

.diag {
  height: clamp(56px, 9vw, 116px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(116deg,
      rgba(53, 242, 214, 0.10) 0 20%,
      rgba(255, 122, 41, 0.10) 20% 40%,
      rgba(111, 143, 107, 0.10) 40% 56%,
      transparent 56%);
}

/* 4.12 图片容器（页面阶段放置 img） */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(150deg, #1B2742, #05070F);
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.95) contrast(1.05);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(53, 242, 214, 0.18),
    rgba(11, 16, 32, 0.55) 55%,
    rgba(5, 7, 15, 0.85));
}
.media--warm::after {
  background: linear-gradient(180deg,
    rgba(255, 122, 41, 0.20),
    rgba(11, 16, 32, 0.60) 55%,
    rgba(5, 7, 15, 0.88));
}
.media--plain::after {
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.15), rgba(5, 7, 15, 0.72));
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 11.5px;
  letter-spacing: 0.10em;
  color: var(--bone);
}

/* 4.13 进入视口显现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 5. Header ---------- */
.site-header {
  position: relative;
  z-index: 60;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 300;
  padding: 10px 14px;
  border-radius: 2px;
  background: var(--cyan);
  color: #04120F !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: translateY(-180%);
  transition: transform 0.16s var(--ease);
}
.skip-link:focus { transform: translateY(0); }
@media (min-width: 1024px) { .skip-link { left: calc(var(--rail-w) + 12px); } }

/* 5.1 品牌 */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--bone);
  text-decoration: none;
}
.brand:hover { color: var(--bone); }

.brand__mark {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 2px;
  background: var(--cyan);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  box-shadow: 0 0 26px -8px rgba(53, 242, 214, 0.9);
}
.brand__mark--lg { font-size: 20px; padding: 9px 11px; }

.brand__line {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--rock);
}

/* 5.2 桌面端左侧轨道 */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  flex-direction: column;
  width: var(--rail-w);
  padding: 18px 0 14px;
  background: rgba(11, 16, 32, 0.88);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  padding-left: 6px;
  padding-right: 0;
}
@media (min-width: 1024px) { .rail { display: flex; } }

.rail__top {
  padding: 0 8px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.rail__nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(53, 242, 214, 0.4) transparent;
}
.rail__nav::-webkit-scrollbar { width: 4px; }
.rail__nav::-webkit-scrollbar-thumb { background: rgba(53, 242, 214, 0.35); border-radius: 4px; }

.navlist { display: flex; flex-direction: column; }

.navlink {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 13px 6px;
  border-left: 2px solid transparent;
  color: var(--rock);
  text-decoration: none;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}
.navlink__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(140, 150, 173, 0.72);
}
.navlink__label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: 0.18em;
}
.navlink:hover {
  color: var(--bone);
  background: rgba(53, 242, 214, 0.06);
}
.navlink[aria-current="page"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(53, 242, 214, 0.14), rgba(53, 242, 214, 0));
}
.navlink[aria-current="page"] .navlink__idx { color: var(--cyan); }
.navlink[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.rail__bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 8px 0 2px;
  border-top: 1px solid var(--line);
}

.railbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 9px 4px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--rock);
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
    background-color 0.16s var(--ease);
}
.railbtn:hover {
  color: var(--cyan);
  border-color: var(--line-cyan);
  background: rgba(53, 242, 214, 0.06);
}
.railbtn__glyph {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
}
.railbtn__label { font-size: 10.5px; letter-spacing: 0.08em; }
.railbtn[data-armed] .railbtn__glyph {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(53, 242, 214, 0.55);
}

.rail__progress {
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 2px;
  background: var(--line-soft);
}
.rail__progressbar {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--cyan), var(--orange) 78%, var(--magenta));
}

/* 5.3 站内搜索浮层 */
.quickfind {
  position: fixed;
  top: 14px;
  left: 12px;
  z-index: 110;
  width: min(320px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid var(--line-cyan);
  border-radius: 3px;
  background: var(--glass);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}
.quickfind[hidden] { display: none; }
@media (min-width: 1024px) { .quickfind { left: calc(var(--rail-w) + 12px); } }

.quickfind__title {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--cyan);
}
.quickfind__list { display: flex; flex-direction: column; gap: 4px; }
.quickfind__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 2px;
  color: var(--bone);
  font-size: 13.5px;
  transition: background-color 0.16s var(--ease);
}
.quickfind__link:hover { background: rgba(53, 242, 214, 0.12); color: var(--bone); }
.quickfind__idx { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); }
.quickfind__name { letter-spacing: 0.04em; }
.quickfind__note { font-size: 11px; letter-spacing: 0.06em; color: var(--rock); }

/* 5.4 移动端顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--topbar-h);
  padding: 9px 14px;
  background: rgba(11, 16, 32, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}
@media (min-width: 1024px) { .topbar { display: none; } }

.brand--bar {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.brand--bar .brand__mark { font-size: 12px; padding: 5px 7px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-size: 14px; font-weight: 800; letter-spacing: 0.02em; color: var(--bone); }
.brand__tag { font-size: 10.5px; letter-spacing: 0.04em; color: var(--rock); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--glass);
  color: var(--bone);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.nav-toggle:hover { border-color: var(--line-cyan); color: var(--cyan); }
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--cyan);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 5.5 抽屉 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  visibility: hidden;
  pointer-events: none;
}
.site-header[data-open] .drawer { visibility: visible; pointer-events: auto; }
@media (min-width: 1024px) { .drawer { display: none; } }

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 15, 0.74);
  opacity: 0;
  transition: opacity 0.24s var(--ease);
}
.site-header[data-open] .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(86vw, 340px);
  padding: 16px 14px 22px;
  overflow-y: auto;
  background: linear-gradient(180deg, #131C33 0%, #0B1020 58%, #05070F 100%);
  border-right: 1px solid var(--line-cyan);
  box-shadow: 34px 0 60px -32px rgba(0, 0, 0, 0.9);
  transform: translateX(-102%);
  transition: transform 0.28s var(--ease);
}
.site-header[data-open] .drawer__panel { transform: translateX(0); }

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.drawer__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--cyan);
}
.drawer__close {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--bone);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
}
.drawer__close:hover { color: var(--cyan); border-color: var(--line-cyan); }

.drawer__nav { padding-top: 6px; }

.navlist--drawer .navlink {
  flex-direction: row;
  justify-content: flex-start;
  gap: 14px;
  padding: 14px 4px;
  border-left: 0;
  border-bottom: 1px solid var(--line-soft);
}
.navlist--drawer .navlink:hover { background: rgba(53, 242, 214, 0.06); }
.navlist--drawer .navlink__label {
  writing-mode: horizontal-tb;
  font-size: 15px;
  letter-spacing: 0.06em;
}
.navlist--drawer .navlink[aria-current="page"] {
  background: linear-gradient(90deg, rgba(53, 242, 214, 0.14), rgba(53, 242, 214, 0));
  border-left: 0;
  border-bottom-color: var(--line-cyan);
}

.drawer__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- 6. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, #0B1020 0%, #05070F 60%);
  border-top: 1px solid var(--line);
  color: var(--rock);
}

.footer__band {
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--moss) 28%, var(--clay) 52%, var(--orange) 76%, var(--magenta));
  opacity: 0.9;
}

.footer__inner {
  display: grid;
  gap: clamp(26px, 4vw, 44px);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 60px) clamp(18px, 4vw, 48px) clamp(20px, 3vw, 30px);
}
@media (min-width: 860px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr);
    align-items: start;
  }
}

.footer__brand { display: flex; flex-direction: column; }
.footer__brandname {
  margin: 12px 0 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.footer__tag {
  margin: 0 0 12px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}
.footer__note {
  max-width: 36ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--rock);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.footer__contacttitle {
  margin: 0 0 2px;
  padding-left: 10px;
  border-left: 2px solid var(--clay);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--bone);
}
.contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 13px;
}
.contact-item__key {
  min-width: 44px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--moss);
}
.contact-item__val {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--bone);
  word-break: break-all;
}
.contact-item__val--text { font-family: var(--font-sans); font-size: 13px; color: var(--rock); }
.footer__contactnote {
  margin: 4px 0 0;
  max-width: 40ch;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(140, 150, 173, 0.85);
}

.copybtn {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--rock);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
    background-color 0.16s var(--ease);
}
.copybtn:hover { color: var(--cyan); border-color: var(--line-cyan); }
.copybtn[data-copied] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
}

.footer__cols {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.footer__col { min-width: 0; }
.footer__coltitle {
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 2px solid var(--cyan);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--bone);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer__links a {
  font-size: 14px;
  color: var(--rock);
  transition: color 0.16s var(--ease);
}
.footer__links a:hover { color: var(--cyan); }

.footer__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--rock);
}
.footer__legalitem { margin: 0; max-width: 52ch; }
.footer__legalrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.footer__legalrow a { color: var(--rock); }
.footer__legalrow a:hover { color: var(--cyan); }
.footer__icp {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.footer__copy { color: rgba(140, 150, 173, 0.8); }

/* ---------- 7. 响应式收敛 ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .u-3, .u-4 { grid-column: span 3; }
  .u-5, .u-6, .u-7, .u-8, .u-9, .u-12 { grid-column: span 6; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  body { font-size: 15.5px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .u-3, .u-4, .u-5, .u-6, .u-7, .u-8, .u-9, .u-12 { grid-column: 1 / -1; }
  .chapter__head { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .chapter__num { font-size: 56px; }
  .footer__legal { flex-direction: column; }
}

/* ---------- 8. 动效克制 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
