/* =========================================================
   幻影体育 · 全站共享样式 /assets/site.css
   轨道导航 + 夜场指挥台配色 + 编辑部印刷质感
   ========================================================= */

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

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

body { margin: 0; }

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

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

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

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

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色板 */
  --ink-950: #06101D;
  --ink-900: #0B1A2B;
  --ink-800: #12263C;
  --line-700: #24405C;
  --phantom-500: #6C4DFF;
  --phantom-200: #C9BFFF;
  --cyan-400: #2BF0E6;
  --amber-500: #FFB020;
  --paper-50: #F4F7FB;
  --paper-100: #E9EEF5;
  --mist-300: #8FA3BF;
  --signal-400: #35D07F;

  /* 尺寸与节奏 */
  --rail-w: 276px;
  --bar-h: 66px;
  --radius: 3px;
  --shell-max: 1180px;

  /* 字体 */
  --font-head: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;

  /* 阴影 */
  --shadow-card: 6px 6px 0 -1px rgba(233, 238, 245, 0.07), 6px 6px 0 0 var(--line-700);
}

/* ---------- 3. 中文基础排版 ---------- */
body {
  min-height: 100dvh;
  background-color: var(--ink-950);
  color: var(--paper-50);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--paper-50);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 900; }
h2 { font-size: clamp(24px, 3.2vw, 40px); }
h3 { font-size: clamp(19px, 2.1vw, 24px); }
h4 { font-size: 18px; letter-spacing: 0; }

p { text-wrap: pretty; }

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

::selection {
  background: var(--phantom-500);
  color: var(--paper-50);
}

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

html.nav-open { overflow: hidden; }

/* ---------- 4. 跳转链 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--cyan-400);
  color: #04121A;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

.skip-link:focus { transform: translateY(0); }

/* ---------- 5. 头部：侧边轨道 ---------- */
.site-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 22px 20px 20px;
  background:
    linear-gradient(180deg, rgba(108, 77, 255, 0.16), rgba(6, 16, 29, 0) 52%),
    var(--ink-900);
  border-right: 1px solid var(--line-700);
}

/* 轨道顶部条 */
.rail__bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--paper-50);
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(201, 191, 255, 0.5);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--phantom-500), #2A1B6E);
  box-shadow: 2px 2px 0 0 rgba(43, 240, 230, 0.35);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--paper-50);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.4;
}

.brand__line {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--mist-300);
}

/* 移动导航按钮 */
.rail__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line-700);
  border-radius: var(--radius);
  color: var(--paper-50);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.rail__toggle:hover { border-color: var(--phantom-500); background: var(--ink-800); }

.rail__toggle-bars {
  display: block;
  width: 16px;
  height: 10px;
  background-image: linear-gradient(
    var(--cyan-400) 0 2px, transparent 2px 4px,
    var(--cyan-400) 4px 6px, transparent 6px 8px,
    var(--cyan-400) 8px 10px
  );
}

.site-rail[data-open] .rail__toggle-bars {
  background-image: linear-gradient(
    var(--phantom-200) 0 2px, transparent 2px 4px,
    var(--phantom-200) 4px 6px, transparent 6px 8px,
    var(--phantom-200) 8px 10px
  );
}

.rail__toggle-label { line-height: 1; }

/* 导航区 */
.rail__nav {
  display: flex;
  flex-direction: column;
  gap: 17px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-700) transparent;
}

.rail__nav::-webkit-scrollbar { width: 6px; }
.rail__nav::-webkit-scrollbar-thumb { background: var(--line-700); border-radius: 3px; }

.rail__nav-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--mist-300);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-700);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  border-radius: 2px;
  color: var(--paper-50);
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-link__idx {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist-300);
  transition: color 0.18s ease;
}

.nav-link__label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  background: var(--ink-800);
  border-left-color: var(--phantom-500);
}

.nav-link:hover .nav-link__idx { color: var(--cyan-400); }

.nav-link[aria-current="page"] {
  background: var(--ink-800);
  border-left-color: var(--cyan-400);
  box-shadow: inset 0 0 0 1px rgba(43, 240, 230, 0.16);
}

.nav-link[aria-current="page"] .nav-link__idx { color: var(--cyan-400); }
.nav-link[aria-current="page"] .nav-link__label { font-weight: 700; }

/* 轨道底部 */
.rail__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-700);
}

.rail__note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--mist-300);
}

/* 滚动进度轨 */
.rail__meter {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  overflow: hidden;
  background: rgba(36, 64, 92, 0.45);
  pointer-events: none;
}

.rail__meter > span {
  display: block;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(180deg, var(--phantom-500), var(--cyan-400));
  transform: scaleY(var(--progress, 0));
  transform-origin: top center;
  transition: transform 0.1s linear;
}

/* 移动抽屉遮罩 */
.rail__scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(3, 8, 15, 0.68);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease,
              border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn--primary {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: #04121A;
}

.btn--primary:hover {
  background: #63F7EF;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(43, 240, 230, 0.26);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(201, 191, 255, 0.45);
  color: var(--phantom-200);
}

.btn--ghost:hover {
  background: rgba(108, 77, 255, 0.18);
  border-color: var(--phantom-500);
  color: var(--paper-50);
}

.btn--quiet {
  background: var(--ink-800);
  border-color: var(--line-700);
  color: var(--paper-50);
}

.btn--quiet:hover {
  border-color: var(--phantom-500);
  background: #172D46;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 72px;
  padding: 56px 0 26px;
  background: var(--ink-950);
  border-top: 1px solid var(--line-700);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 260px;
  background-image:
    radial-gradient(70% 120% at 8% 0%, rgba(108, 77, 255, 0.22), transparent 70%),
    radial-gradient(52% 100% at 88% 0%, rgba(43, 240, 230, 0.10), transparent 74%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--line-700) 0 1px,
    transparent 1px 14px
  );
  opacity: 0.55;
  pointer-events: none;
}

.footer__wrap {
  position: relative;
  width: min(var(--shell-max), 100% - 40px);
  margin-inline: auto;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-700);
}

.footer__brand {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.footer__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan-400);
}

.footer__wordmark {
  font-family: var(--font-head);
  font-size: clamp(32px, 5.6vw, 58px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 191, 255, 0.55);
}

@supports not (-webkit-text-stroke: 1px #fff) {
  .footer__wordmark { color: var(--phantom-200); }
}

.footer__summary {
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist-300);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer__col {
  display: grid;
  align-content: start;
  gap: 0;
}

.footer__col-title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-700);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--paper-50);
}

.footer__links {
  display: grid;
  gap: 9px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  color: var(--mist-300);
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer__link::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border: 1px solid var(--line-700);
  transform: rotate(45deg);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.footer__link:hover {
  color: var(--paper-50);
  border-bottom-color: var(--phantom-500);
}

.footer__link:hover::before {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
}

.footer__contact-list {
  display: grid;
  gap: 12px;
}

.footer__contact-row {
  display: grid;
  gap: 2px;
}

.footer__contact-row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist-300);
}

.footer__contact-row dd {
  font-size: 14px;
  line-height: 1.65;
  color: var(--paper-50);
  word-break: break-word;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--mist-300);
}

.footer__icp { margin: 0; }

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__legal-links a {
  color: var(--phantom-200);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer__legal-links a:hover {
  color: var(--paper-50);
  border-bottom-color: var(--cyan-400);
}

.footer__note {
  flex: 1 1 320px;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0;
  line-height: 1.75;
  color: var(--mist-300);
}

/* ---------- 8. 版面容器 ---------- */
.container {
  width: min(var(--shell-max), 100% - 40px);
  margin-inline: auto;
}

.section { padding-block: 54px; }

.section--line { border-top: 1px solid var(--line-700); }

.section__head {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section__note {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist-300);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.kicker::before {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  background: currentColor;
}

.idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist-300);
}

.rule {
  height: 1px;
  border: 0;
  margin-block: 32px;
  background: var(--line-700);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist-300);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--line-700);
}

.breadcrumb a {
  color: var(--phantom-200);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.breadcrumb a:hover {
  color: var(--paper-50);
  border-bottom-color: var(--phantom-500);
}

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

/* ---------- 10. 正文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--paper-50);
}

.prose > p { margin-bottom: 1.1em; }

.prose h2 {
  margin-block: 1.7em 0.6em;
  font-size: clamp(22px, 2.4vw, 30px);
}

.prose h3 {
  margin-block: 1.5em 0.5em;
  font-size: 20px;
}

.prose ul,
.prose ol {
  margin-block: 1em 1.3em;
  display: grid;
  gap: 0.55em;
}

.prose ul li {
  position: relative;
  padding-left: 22px;
}

.prose ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--phantom-500);
}

.prose ol { counter-reset: prose-ol; }

.prose ol li {
  position: relative;
  padding-left: 26px;
  counter-increment: prose-ol;
}

.prose ol li::before {
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan-400);
}

.prose a {
  color: var(--phantom-200);
  text-decoration: underline;
  text-decoration-color: rgba(201, 191, 255, 0.45);
  text-underline-offset: 3px;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.prose a:hover {
  color: var(--paper-50);
  text-decoration-color: var(--cyan-400);
}

.prose blockquote {
  margin-block: 1.4em;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--phantom-500);
  color: var(--mist-300);
}

/* ---------- 11. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line-700);
  border-radius: 2px;
  background: rgba(18, 38, 60, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--mist-300);
  white-space: nowrap;
}

.tag--cyan { color: var(--cyan-400); border-color: rgba(43, 240, 230, 0.5); }
.tag--violet { color: var(--phantom-200); border-color: rgba(201, 191, 255, 0.4); }
.tag--amber {
  color: var(--amber-500);
  border-color: rgba(255, 176, 32, 0.55);
  background: rgba(255, 176, 32, 0.08);
}
.tag--ok { color: var(--signal-400); border-color: rgba(53, 208, 127, 0.45); }

/* ---------- 12. 纸片卡 ---------- */
.paper-card {
  position: relative;
  z-index: 0;
  padding: 22px;
  border: 1px solid var(--line-700);
  border-radius: var(--radius);
  background-image: linear-gradient(180deg, var(--ink-800), #0E2135);
}

.paper-card::before {
  content: "";
  position: absolute;
  inset: 7px -7px -7px 7px;
  z-index: -1;
  border: 1px solid rgba(36, 64, 92, 0.9);
  border-radius: var(--radius);
  background: var(--paper-100);
  opacity: 0.1;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.paper-card:hover::before { opacity: 0.16; }

.paper-card:hover { box-shadow: var(--shadow-card); }

/* ---------- 13. 图像容器（页面阶段放占位或本地图） ---------- */
.media {
  position: relative;
  margin: 0;
}

.media__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-700);
  border-radius: var(--radius);
  background-image: linear-gradient(158deg, var(--ink-800), var(--ink-900));
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}

.media__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(200deg, rgba(43, 240, 230, 0.1), transparent 45%),
    linear-gradient(20deg, rgba(108, 77, 255, 0.18), transparent 55%);
  pointer-events: none;
}

.media__frame[data-placeholder]::before {
  content: attr(data-placeholder);
  position: relative;
  z-index: 1;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mist-300);
  text-align: center;
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--tall .media__frame { aspect-ratio: 4 / 5; }
.media--wide .media__frame { aspect-ratio: 21 / 9; }

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--mist-300);
}

/* ---------- 14. 旁注 ---------- */
.callout {
  padding: 18px 20px;
  border: 1px solid var(--line-700);
  border-left: 3px solid var(--phantom-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--ink-900);
  font-size: 15px;
  line-height: 1.85;
  color: var(--paper-50);
}

.callout__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan-400);
}

/* ---------- 15. 网格 ---------- */
.grid {
  display: grid;
  gap: 22px;
}

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

.grid--split {
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

/* ---------- 16. 响应式 ---------- */
@media (min-width: 768px) {
  .container,
  .footer__wrap { width: min(var(--shell-max), 100% - 72px); }

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

  .section { padding-block: 68px; }

  .section__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 20px 32px;
  }

  .section__head .section__note { justify-self: end; }
}

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

  .skip-link { left: calc(var(--rail-w) + 10px); }

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

  .grid--split {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
    align-items: start;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 40px;
  }

  .rail__scrim { display: none; }
}

@media (max-width: 1023px) {
  body { padding-top: var(--bar-h); }

  .site-rail {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: var(--bar-h);
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line-700);
    background: var(--ink-900);
  }

  .rail__bar {
    flex: 1 1 auto;
    height: 100%;
    width: 100%;
  }

  .brand__mark { width: 34px; height: 34px; font-size: 16px; }
  .brand__line { font-size: 13px; }
  .brand__tagline { font-size: 10px; }

  .rail__toggle { display: inline-flex; }

  .rail__nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    width: min(85vw, 340px);
    height: 100dvh;
    padding: calc(var(--bar-h) + 20px) 20px 26px;
    gap: 18px;
    background: var(--ink-900);
    border-right: 1px solid var(--line-700);
    overflow-y: auto;
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
  }

  .site-rail[data-open] .rail__nav {
    transform: translateX(0);
    visibility: visible;
  }

  .site-rail[data-open] .rail__scrim {
    opacity: 1;
    visibility: visible;
  }

  .rail__meter {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 2px;
  }

  .rail__meter > span {
    background-image: linear-gradient(90deg, var(--phantom-500), var(--cyan-400));
    transform: scaleX(var(--progress, 0));
    transform-origin: left center;
  }

  .footer__top { gap: 30px; }
  .site-footer { margin-top: 56px; padding-top: 44px; }
}

@media (max-width: 420px) {
  .brand__tagline { display: none; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 17. 动效偏好 ---------- */
@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;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
