/* ============================================================
   熊猫体育登录口 · 共享样式 /assets/site.css
   夜间赛场数据台 · 蓝图网格 + 荧光黄绿入口语言
   ============================================================ */

/* ---------- 1. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0A0D0C;
  --panel: #15201D;
  --bamboo: #2B5B4A;
  --volt: #D6FF3F;
  --flag: #E5322D;
  --card-yellow: #FFC53D;
  --cyan: #46E0D0;
  --paper: #F2F5F0;
  --grid-gray: #8C9A94;
  --text-ink: #101512;

  --line: rgba(140, 154, 148, .22);
  --line-soft: rgba(140, 154, 148, .12);
  --text-dim: rgba(242, 245, 240, .68);
  --text-faint: rgba(242, 245, 240, .48);

  --font-title: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: var(--font-title);
  --font-num: ui-monospace, "Roboto Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --rail-w: 88px;
  --topbar-h: 64px;
  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
  --ease: cubic-bezier(.22, .7, .28, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--topbar-h);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
}
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(30px, 4.6vw, 48px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(19px, 2vw, 26px); }
h4 { font-size: clamp(16px, 1.4vw, 20px); font-weight: 800; }
strong { font-weight: 800; }
.mono, [class*="__num"] { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-num); }
.dim { color: var(--text-dim); }
.eyebrow { font-family: var(--font-num); font-size: 12px; letter-spacing: .24em; color: var(--cyan); text-transform: uppercase; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; color: var(--text-dim); max-width: 42ch; }
.rule { height: 1px; border: 0; background: var(--line); margin: clamp(24px, 4vw, 48px) 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[id] { scroll-margin-top: calc(var(--topbar-h) + 16px); }

/* ---------- 4. 焦点与选区 ---------- */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--volt); color: var(--ink); }

/* ---------- 5. skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -90px;
  z-index: 200;
  display: inline-block;
  padding: 11px 20px;
  background: var(--volt);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  border-radius: 0 0 12px 12px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }
.skip-link:focus-visible { outline-offset: 0; }

/* ---------- 6. 轨道头部（移动端 = 顶栏 + 抽屉） ---------- */
.site-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: rgba(10, 13, 12, .97);
  border-bottom: 1px solid var(--line);
}
.site-rail__inner {
  position: relative;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 1240px;
  height: var(--topbar-h);
  margin-inline: auto;
  padding-inline: clamp(14px, 4vw, 32px);
}
.site-rail__progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  z-index: 3;
  background: rgba(140, 154, 148, .14);
}
.site-rail__progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--volt), var(--cyan));
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
}
.site-rail__scrim { display: none; }
.site-rail[data-open] .site-rail__scrim {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 9, 8, .62);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--paper);
}
.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  background:
    radial-gradient(circle at 32% 54%, var(--ink) 0 12%, transparent 13%),
    radial-gradient(circle at 68% 54%, var(--ink) 0 12%, transparent 13%),
    radial-gradient(circle at 50% 78%, var(--ink) 0 7%, transparent 8%),
    var(--paper);
  border-radius: 46% 46% 44% 44% / 40% 40% 58% 58%;
}
.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--paper);
}
.brand__mark::before { left: 0; }
.brand__mark::after { right: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.brand__sub { font-family: var(--font-num); font-size: 11px; letter-spacing: .26em; color: var(--cyan); }
.brand:hover .brand__name { color: var(--volt); }

/* 菜单按钮（移动端） */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(242, 245, 240, .24);
  border-radius: 999px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle__bars { position: relative; display: block; width: 16px; height: 10px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.site-rail[data-open] .nav-toggle { border-color: var(--volt); color: var(--volt); }
.site-rail[data-open] .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
.site-rail[data-open] .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }

/* 导航（移动端 = 左侧抽屉） */
.site-nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 80;
  width: min(330px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: calc(var(--topbar-h) + 12px) 18px 26px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--ink) 100%);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform .28s var(--ease), visibility .28s var(--ease);
}
.site-rail[data-open] .site-nav { transform: translateX(0); visibility: visible; }
.site-nav__list { display: flex; flex-direction: column; gap: 2px; }
.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  border-radius: var(--radius-s);
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 700;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.site-nav__idx { font-family: var(--font-num); font-size: 11px; letter-spacing: .1em; color: var(--cyan); opacity: .8; }
.site-nav__link:hover { background: rgba(242, 245, 240, .06); color: var(--paper); }
.site-nav__link[aria-current="page"] {
  background: rgba(214, 255, 63, .10);
  color: var(--paper);
  border-bottom-color: rgba(214, 255, 63, .5);
}
.site-nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--volt);
}
.site-nav__note {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--text-faint);
  padding-top: 4px;
}
.site-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.site-nav__actions .btn { width: 100%; }

/* ---------- 7. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .02em;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--volt); color: var(--ink); }
.btn--primary:hover { background: #E5FF70; }
.btn--ghost { border-color: rgba(242, 245, 240, .28); color: var(--paper); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(70, 224, 208, .08); }
.btn--flag { background: var(--flag); color: #FFFFFF; }
.btn--sm { padding: 10px 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn:focus-visible { outline-offset: 3px; }

/* ---------- 8. 悬浮球台（移动端） ---------- */
.dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.dock__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.dock__btn:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--cyan); }
.dock__btn--primary { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.dock__btn--primary:hover { background: #E5FF70; border-color: var(--volt); color: var(--ink); }

/* ---------- 9. 布局容器与栅格 ---------- */
.site-main { position: relative; z-index: 1; padding-block: clamp(28px, 5vw, 64px); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.wrap--narrow { max-width: 920px; }
.wrap--wide { max-width: 1440px; }
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- 10. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(14px, 2vw, 22px);
  font-family: var(--font-num);
  font-size: 12.5px;
  color: var(--text-faint);
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--grid-gray); }
.crumbs a { color: var(--text-dim); border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.crumbs a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ---------- 11. 章节编号体系 ---------- */
.sec-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: clamp(18px, 2.5vw, 30px); }
.sec-num {
  display: block;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 120px);
  line-height: .82;
  letter-spacing: -.04em;
  color: rgba(214, 255, 63, .16);
}
.sec-head__kicker { font-family: var(--font-num); font-size: 12px; letter-spacing: .24em; color: var(--cyan); }
.sec-head__title { font-size: clamp(24px, 3vw, 34px); }

/* ---------- 12. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.card__index { font-family: var(--font-num); font-size: 12px; letter-spacing: .18em; color: var(--cyan); }
.card__title { margin: 10px 0 8px; font-size: clamp(17px, 1.6vw, 20px); }
.card__text { font-size: 15px; color: var(--text-dim); }
.card--flat:hover { transform: none; }
.card--volt { border-color: rgba(214, 255, 63, .45); }
.card--offset { margin-top: clamp(0px, 3vw, 44px); }

/* ---------- 13. 图片容器（供页面阶段放图） ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #1B2823, #0F1614);
}
.media > img,
.media > svg,
.media > video { width: 100%; height: 100%; object-fit: cover; }
.media--hero { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--thin { aspect-ratio: 4 / 3; }
.media__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(242, 245, 240, .88);
  background: linear-gradient(transparent, rgba(10, 13, 12, .92) 72%);
}
.media--ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(140, 154, 148, .16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 154, 148, .16) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- 14. 数据与标签 ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--volt);
}
.stat__label { font-family: var(--font-num); font-size: 12.5px; letter-spacing: .12em; color: var(--text-faint); }
.stat--cyan .stat__num { color: var(--cyan); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}
.tag--red { background: var(--flag); color: #FFFFFF; }
.tag--yellow { background: var(--card-yellow); color: var(--ink); }
.tag--volt { background: var(--volt); color: var(--ink); }
.tag--cyan { background: rgba(70, 224, 208, .14); border-color: rgba(70, 224, 208, .42); color: var(--cyan); }
.tag--ghost { border-color: var(--line); color: var(--text-dim); }

/* ---------- 15. 选项卡与订阅开关 ---------- */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.tab:hover { color: var(--paper); border-color: var(--cyan); }
.tab[aria-selected="true"] { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.tab-panel { padding-top: clamp(16px, 2vw, 24px); }
.tab-panel[hidden] { display: none; }

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 700;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.switch::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grid-gray);
  transition: background-color .2s var(--ease);
}
.switch:hover { color: var(--paper); border-color: var(--cyan); }
.switch[aria-pressed="true"] { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.switch[aria-pressed="true"]::before { background: var(--ink); }

/* ---------- 16. 正文区块 ---------- */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1em; max-width: 42ch; color: rgba(242, 245, 240, .86); }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.2em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(70, 224, 208, .4); }

/* ---------- 17. 长文档（纸白底） ---------- */
.doc { position: relative; z-index: 1; background: var(--paper); color: var(--text-ink); }
.doc h1, .doc h2, .doc h3, .doc h4 { color: var(--text-ink); }
.doc .wrap--narrow { max-width: 1080px; }
.doc a { color: #0F5E50; border-bottom: 1px solid rgba(15, 94, 80, .35); }
.doc a:hover { color: #0A4238; }
.doc .rule { background: rgba(16, 21, 18, .14); }
.doc .crumbs { color: rgba(16, 21, 18, .5); }
.doc .crumbs a { color: rgba(16, 21, 18, .72); }
.doc .crumbs a:hover { color: #0F5E50; border-bottom-color: #0F5E50; }
.doc__layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.doc-toc { position: sticky; top: calc(var(--topbar-h) + 24px); font-size: 13.5px; }
.doc-toc__title { font-family: var(--font-num); font-size: 11.5px; letter-spacing: .2em; color: #3E574F; margin-bottom: 12px; }
.doc-toc a { display: block; padding: 6px 0; border-bottom: 1px dashed rgba(16, 21, 18, .16); color: #2C3F38; }
.doc-toc a:hover { color: #0F5E50; }
.doc-num { font-family: var(--font-num); color: #0F5E50; }

/* ---------- 18. 页脚 ---------- */
.site-foot {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, #101917 0%, #16302A 55%, var(--bamboo) 100%);
  border-top: 1px solid var(--line);
  color: var(--paper);
}
.site-foot::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--volt) 0 18%, var(--cyan) 18% 34%, rgba(140, 154, 148, .35) 34% 82%, var(--flag) 82% 100%);
}
.site-foot::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -40%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 255, 63, .12), transparent 62%);
  pointer-events: none;
}
.site-foot__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(34px, 5vw, 64px) clamp(16px, 4vw, 48px) clamp(18px, 3vw, 28px);
}
.site-foot__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 38px);
}
.site-foot__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.site-foot__contact { grid-column: 1 / -1; }
.site-foot__col { min-width: 0; }
.site-foot__line { max-width: 30ch; font-size: 14.5px; line-height: 1.7; color: rgba(242, 245, 240, .8); }
.site-foot__hours { font-family: var(--font-num); font-size: 12.5px; letter-spacing: .06em; color: var(--volt); }
.site-foot__title {
  margin-bottom: 14px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--cyan);
}
.site-foot__list { display: flex; flex-direction: column; gap: 10px; }
.site-foot__list a {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14px;
  color: rgba(242, 245, 240, .82);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.site-foot__list a:hover { color: var(--volt); border-bottom-color: var(--volt); }
.site-foot__list--data { gap: 8px; }
.site-foot__list--data li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 13.5px; }
.site-foot__key { flex: 0 0 auto; min-width: 34px; font-family: var(--font-num); font-size: 11px; letter-spacing: .14em; color: rgba(242, 245, 240, .52); }
.site-foot__val { font-family: var(--font-num); color: var(--paper); word-break: break-all; }
.site-foot__note { margin-top: 12px; font-size: 13px; line-height: 1.75; color: rgba(242, 245, 240, .64); }
.site-foot__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  margin-top: clamp(26px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid rgba(242, 245, 240, .16);
  font-family: var(--font-num);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: rgba(242, 245, 240, .7);
}
.site-foot__legal-item { margin: 0; }

/* 页脚品牌微调 */
.brand--foot .brand__mark { width: 36px; height: 36px; }
.brand--foot .brand__name { font-size: 16px; }

/* ---------- 19. 滚动显现 ---------- */
[data-reveal] { transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js-ready [data-reveal] { opacity: 0; transform: translateY(12px); }
.js-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 20. 平板 ---------- */
@media (min-width: 641px) {
  .site-foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 21. 桌面：固定左侧轨道 ---------- */
@media (min-width: 961px) {
  body { padding-top: 0; padding-left: var(--rail-w); }
  [id] { scroll-margin-top: 24px; }
  .skip-link { left: calc(var(--rail-w) + 12px); }
  .doc-toc { top: 32px; }

  .site-rail {
    right: auto;
    bottom: 0;
    width: var(--rail-w);
    height: auto;
    flex-direction: column;
    background: linear-gradient(180deg, var(--panel) 0%, var(--ink) 78%);
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .site-rail__inner {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    height: 100%;
    min-height: 0;
    max-width: none;
    padding: 18px 8px;
  }
  .site-rail__progress { left: auto; right: 0; top: 0; bottom: 0; width: 2px; height: auto; }
  .site-rail__progress-fill {
    background: linear-gradient(180deg, var(--volt), var(--cyan));
    transform: scaleY(var(--p, 0));
    transform-origin: top center;
  }
  .site-rail[data-open] .site-rail__scrim { display: none; }

  .site-rail .brand {
    flex-direction: column;
    gap: 10px;
    padding: 6px 0 14px;
    border-bottom: 1px solid var(--line-soft);
  }
  .site-rail .brand__text {
    flex-direction: column;
    writing-mode: vertical-rl;
    text-orientation: upright;
    align-items: flex-start;
    gap: 6px;
  }
  .site-rail .brand__name { font-size: 13px; letter-spacing: .16em; }
  .site-rail .brand__sub { font-size: 10px; letter-spacing: .3em; margin-left: 4px; }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    z-index: auto;
    width: auto;
    flex: 1 1 auto;
    min-height: 0;
    gap: 12px;
    padding: 12px 0 0;
    background: none;
    border: 0;
    overflow: visible;
    transform: none;
    visibility: visible;
    transition: none;
  }
  .site-nav__list {
    flex: 1 1 auto;
    min-height: 0;
    gap: 4px;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .site-nav__list::-webkit-scrollbar { display: none; }
  .site-nav__link {
    flex-direction: column;
    gap: 6px;
    padding: 12px 6px;
    border: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-dim);
  }
  .site-nav__label { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: .14em; }
  .site-nav__idx { font-size: 10px; letter-spacing: .12em; color: var(--cyan); opacity: .7; }
  .site-nav__link:hover {
    background: rgba(242, 245, 240, .06);
    border-color: rgba(70, 224, 208, .5);
    color: var(--paper);
  }
  .site-nav__link[aria-current="page"] {
    background: rgba(214, 255, 63, .10);
    border-color: rgba(214, 255, 63, .5);
    color: var(--paper);
  }
  .site-nav__link[aria-current="page"]::before {
    left: -1px;
    top: 10px;
    bottom: 10px;
    border-radius: 0 3px 3px 0;
  }
  .site-nav__link[aria-current="page"] .site-nav__idx { color: var(--volt); opacity: 1; }
  .site-nav__note { display: none; }
  .site-nav__actions {
    gap: 8px;
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
  }
  .site-nav__actions .btn {
    width: 100%;
    padding: 10px 4px;
    font-size: 12px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .dock { display: none; }

  .site-foot__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr; }
  .site-foot__brand { grid-column: auto; }
  .site-foot__contact { grid-column: auto; }
}

/* 矮屏压缩：隐藏纵向品牌字样，给导航留高度 */
@media (min-width: 961px) and (max-height: 820px) {
  .site-rail .brand__text { display: none; }
}

/* ---------- 22. 小屏微调 ---------- */
@media (max-width: 640px) {
  .dock { right: 12px; bottom: 12px; }
  .dock__btn { padding: 11px 16px; font-size: 12.5px; }
  .site-nav__link { font-size: 14.5px; }
}

/* ---------- 23. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js-ready [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .dock__btn:hover, .card:hover { transform: none; }
}
