/* ==========================================================================
   风云体育 · 共享样式 /assets/site.css
   夜场记分台：深墨底 + 珠宝色分区 + 荧光绿数据 + 橙红状态
   ========================================================================== */

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

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

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

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

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

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

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

:focus-visible {
  outline: 2px solid #C8FF4D;
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: #C8FF4D; color: #05080E; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 底色与分区 */
  --ink: #05080E;
  --surface: #0B1220;
  --deep-teal: #06282B;
  --wine: #2E0D18;
  --indigo: #161036;

  /* 高亮与状态 */
  --lime: #C8FF4D;
  --lime-dim: #93BF33;
  --ember: #FF5A2B;

  /* 文字与线条 */
  --text: #EAF2F6;
  --muted: #93A3B3;
  --line: #1E2A3A;

  /* 尺寸 */
  --rail-w: 88px;
  --strip-h: 44px;
  --topbar-h: 56px;

  /* 字体 */
  --font-cn: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", SFMono-Regular, Consolas, "Liberation Mono", monospace;

  /* 动效 */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-in-out: cubic-bezier(.45, .05, .55, .95);

  --page-offset: calc(var(--topbar-h) + var(--strip-h));
}

/* ---------- 3. 中文排版与全局基底 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(92% 58% at 78% -14%, rgba(200, 255, 77, .085), transparent 62%),
    radial-gradient(72% 52% at 2% 6%, rgba(255, 90, 43, .07), transparent 60%),
    radial-gradient(80% 60% at 50% 108%, rgba(22, 16, 54, .85), transparent 70%),
    repeating-linear-gradient(0deg, rgba(234, 242, 246, .022) 0 1px, transparent 1px 5px);
  color: var(--text);
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--page-offset);
}

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.08;
  text-wrap: balance;
}

p { max-width: 38em; }

strong, b { font-weight: 700; }

main { display: block; }

#main-content { scroll-margin-top: calc(var(--page-offset) + 16px); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.muted { color: var(--muted); }

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

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--lime);
  color: #05080E;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  transform: translateY(-180%);
  transition: transform .22s var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #05080E;
  outline-offset: -4px;
}

/* ---------- 5. 侧边轨道导航（桌面） ---------- */
.rail {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 14px 0 16px;
  background:
    linear-gradient(180deg, #0B1220 0%, #05080E 44%, #06282B 100%);
  border-right: 1px solid var(--line);
}

.rail::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  background: repeating-linear-gradient(0deg, rgba(200, 255, 77, .05) 0 1px, transparent 1px 6px);
  pointer-events: none;
}

.rail__top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px;
  border-radius: 14px;
  transition: transform .24s var(--ease-out);
}

.rail__brand:hover { transform: translateY(-2px); }

.rail__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px 4px 12px 4px;
  background: var(--lime);
  color: #05080E;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 0 0 1px rgba(200, 255, 77, .35), 0 8px 22px rgba(200, 255, 77, .18);
}

.rail__brand-text {
  writing-mode: vertical-rl;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--muted);
  transition: color .2s ease;
}

.rail__brand:hover .rail__brand-text { color: var(--lime); }

.rail__nav {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

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

.rail__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.rail__item { display: block; }

.rail__link {
  position: relative;
  display: block;
  padding: 13px 0;
  writing-mode: vertical-rl;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--muted);
  border-radius: 8px;
  transition: color .2s ease, background-color .2s ease, text-shadow .24s ease;
}

.rail__link:hover {
  color: var(--text);
  background: rgba(234, 242, 246, .05);
}

.rail__link[aria-current="page"] {
  color: var(--lime);
  text-shadow: 0 0 18px rgba(200, 255, 77, .5);
}

.rail__foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.rail__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 6px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(200, 255, 77, .28);
  background: rgba(200, 255, 77, .08);
  transition: background-color .2s ease, border-color .2s ease, transform .2s var(--ease-out);
}

.rail__score:hover {
  background: rgba(200, 255, 77, .18);
  border-color: var(--lime);
  transform: translateY(-1px);
}

.rail__score-label {
  font-size: 9.5px;
  letter-spacing: .2em;
  color: var(--muted);
}

.rail__score-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0;
}

.rail__note {
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--muted);
  max-width: none;
}

.rail__toggle { display: none; }

.rail__scrim { display: none; }

/* ---------- 6. 比分光带 ---------- */
.score-strip {
  position: fixed;
  z-index: 30;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  height: var(--strip-h);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: linear-gradient(90deg, #06282B 0%, #0B1220 52%, #2E0D18 100%);
  border-bottom: 1px solid var(--line);
}

.score-strip::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(200, 255, 77, .45) 0 12px, transparent 12px 26px);
  pointer-events: none;
}

.score-strip__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  height: 100%;
  will-change: transform;
  animation: strip-marquee 52s linear infinite;
}

.score-strip:hover .score-strip__track,
.score-strip:focus-within .score-strip__track {
  animation-play-state: paused;
}

@keyframes strip-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.score-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 0 24px;
  flex: 0 0 auto;
  white-space: nowrap;
  border-right: 1px solid rgba(30, 42, 58, .9);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--text);
  transition: background-color .18s ease, color .18s ease;
}

.score-strip__item:hover,
.score-strip__item:focus-visible {
  background: rgba(200, 255, 77, .1);
  color: var(--lime);
}

.score-strip__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
  transition: color .18s ease;
}

.score-strip__item:hover .score-strip__meta { color: rgba(200, 255, 77, .8); }

.score-strip__teams {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.score-strip__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--lime);
}

.score-strip__sep {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 7. 状态点 ---------- */
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  flex: 0 0 auto;
}

.status-dot--live {
  background: var(--ember);
  box-shadow: 0 0 10px rgba(255, 90, 43, .8);
  animation: dot-pulse 2.4s ease-out infinite;
}

@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 90, 43, .6); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 90, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 43, 0); }
}

/* ---------- 8. 阅读进度 ---------- */
.scroll-progress {
  position: fixed;
  z-index: 45;
  top: 0;
  right: 0;
  width: 3px;
  height: 100vh;
  background: rgba(30, 42, 58, .8);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top center;
  background: linear-gradient(180deg, var(--lime) 0%, var(--ember) 100%);
  box-shadow: 0 0 12px rgba(200, 255, 77, .45);
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(64px, 9vw, 128px);
  padding: clamp(44px, 5.5vw, 80px) 0 clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(90% 130% at 4% 0%, rgba(46, 13, 24, .92) 0%, rgba(46, 13, 24, 0) 58%),
    radial-gradient(85% 120% at 98% 100%, rgba(22, 16, 54, .9) 0%, rgba(22, 16, 54, 0) 62%),
    #06282B;
}

.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18%;
  right: -12%;
  width: min(46vw, 520px);
  aspect-ratio: 1;
  border-radius: 44% 56% 62% 38% / 52% 40% 60% 48%;
  background: radial-gradient(circle at 34% 30%, rgba(200, 255, 77, .18), transparent 68%);
  animation: blob-drift 24s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes blob-drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(-5%, 8%, 0) rotate(16deg); }
}

.site-footer__inner {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4vw, 56px);
}

.site-footer__lead {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 13px 5px 13px 5px;
  background: var(--lime);
  color: #05080E;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.site-footer__name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.site-footer__tagline {
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--lime);
  max-width: none;
}

.site-footer__service {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 28em;
}

.site-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(22px, 3vw, 44px);
}

.site-footer__col { display: flex; flex-direction: column; gap: 12px; }

.site-footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__list--plain { gap: 12px; }

.site-footer__link {
  display: inline-block;
  font-size: 14px;
  color: var(--text);
  padding: 2px 0;
  transition: color .18s ease, transform .18s var(--ease-out);
}

.site-footer__link:hover {
  color: var(--lime);
  transform: translateX(3px);
}

.site-footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer__contact-label {
  font-size: 10.5px;
  letter-spacing: .24em;
  color: var(--muted);
}

.site-footer__contact-value {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
  overflow-wrap: anywhere;
}

.site-footer__bottom {
  width: min(1160px, 100% - 40px);
  margin: clamp(30px, 4vw, 52px) auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer__legal {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  max-width: none;
}

.site-footer__icp { color: var(--text); }

.site-footer__mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer__mini-link {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  transition: color .18s ease;
}

.site-footer__mini-link:hover { color: var(--lime); }

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease,
              box-shadow .24s ease, transform .2s var(--ease-out);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--lime);
  color: #05080E;
  box-shadow: 0 8px 26px rgba(200, 255, 77, .22);
}

.btn--primary:hover {
  background: var(--lime-dim);
  box-shadow: 0 10px 30px rgba(200, 255, 77, .3);
}

.btn--ghost {
  background: rgba(234, 242, 246, .03);
  border-color: var(--line);
  color: var(--text);
}

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

/* ---------- 11. 布局工具 ---------- */
.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.section { padding-block: clamp(52px, 8vw, 112px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--lime);
  flex: 0 0 auto;
}

.eyebrow--vertical {
  writing-mode: vertical-rl;
  letter-spacing: .3em;
}

.eyebrow--vertical::before { width: 1px; height: 18px; }

.section-title {
  font-size: clamp(28px, 4.6vw, 56px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.06;
}

.lede {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.8;
  color: var(--muted);
  max-width: 34em;
}

/* ---------- 12. 基础组件 ---------- */
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  white-space: nowrap;
}

.tag--live {
  border-color: rgba(255, 90, 43, .5);
  background: rgba(255, 90, 43, .12);
  color: var(--ember);
}

.tag--done {
  border-color: rgba(200, 255, 77, .35);
  background: rgba(200, 255, 77, .1);
  color: var(--lime);
}

/* 面包屑 */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55em;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}

.breadcrumbs__item { display: inline-flex; align-items: center; gap: .55em; }

.breadcrumbs__link { color: var(--muted); transition: color .18s ease; }
.breadcrumbs__link:hover { color: var(--lime); }

.breadcrumbs__sep { color: var(--line); }

.breadcrumbs__current { color: var(--text); }

/* 折叠组 */
.disclosure {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}

.disclosure + .disclosure { margin-top: 10px; }

.disclosure__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  transition: background-color .2s ease, color .2s ease;
}

.disclosure__summary::-webkit-details-marker { display: none; }

.disclosure__summary:hover { background: rgba(200, 255, 77, .07); color: var(--lime); }

.disclosure__icon {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .24s var(--ease-out);
}

.disclosure[open] .disclosure__icon { transform: rotate(225deg); }

.disclosure__body {
  padding: 0 20px 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.disclosure__body > * + * { margin-top: 10px; }

/* ---------- 13. 图片容器基础规则 ---------- */
.media {
  --media-radius: 20px;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--media-radius);
  background:
    linear-gradient(140deg, #0B1220 0%, #06282B 52%, #161036 100%);
  isolation: isolate;
}

.media > img,
.media > video,
.media > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(5, 8, 14, .16) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, rgba(5, 8, 14, 0) 44%, rgba(5, 8, 14, .68) 100%);
}

.media--wide   { aspect-ratio: 21 / 9; }
.media--hero   { aspect-ratio: 16 / 10; }
.media--card   { aspect-ratio: 4 / 3; }
.media--tall   { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media__caption {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: .6em;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--text);
}

/* ---------- 14. 移动端 / 抽屉 ---------- */
@media (max-width: 899px) {
  :root {
    --strip-h: 40px;
    --topbar-h: 56px;
  }

  body.nav-open { overflow: hidden; }

  .rail {
    bottom: auto;
    width: 100%;
    height: var(--topbar-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 8, 14, .94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .rail::after { height: 100%; opacity: .5; }

  .rail__top {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    padding: 0;
  }

  .rail__mark {
    width: 28px;
    height: 28px;
    font-size: 14px;
    border-radius: 10px 3px 10px 3px;
  }

  .rail__brand-text {
    writing-mode: horizontal-tb;
    font-size: 13px;
    letter-spacing: .16em;
    color: var(--text);
  }

  .rail__toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
  }

  .rail__toggle:hover,
  .rail__toggle[aria-expanded="true"] {
    border-color: var(--lime);
    color: var(--lime);
    background: rgba(200, 255, 77, .08);
  }

  .rail__toggle-bars {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 16px;
    height: 10px;
  }

  .rail__toggle-bars span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .24s var(--ease-out), opacity .24s ease;
  }

  .rail__toggle[aria-expanded="true"] .rail__toggle-bars span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .rail__toggle[aria-expanded="true"] .rail__toggle-bars span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .rail__nav {
    position: fixed;
    z-index: 1;
    top: var(--topbar-h);
    left: 0;
    width: min(84vw, 320px);
    height: calc(100dvh - var(--topbar-h));
    padding: 18px 18px 120px;
    overflow-y: auto;
    transform: translate3d(-104%, 0, 0);
    transition: transform .32s var(--ease-out);
    background: linear-gradient(180deg, #0B1220 0%, #06282B 100%);
    border-right: 1px solid var(--line);
    box-shadow: 22px 0 60px rgba(0, 0, 0, .55);
  }

  .rail__nav[data-open="true"] { transform: translate3d(0, 0, 0); }

  .rail__list { align-items: stretch; gap: 4px; }

  .rail__link {
    writing-mode: horizontal-tb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 16px;
    letter-spacing: .06em;
    border-radius: 12px;
    background: rgba(234, 242, 246, .03);
  }

  .rail__link[aria-current="page"] {
    background: rgba(200, 255, 77, .12);
    color: var(--lime);
    text-shadow: none;
  }

  .rail__foot {
    position: fixed;
    z-index: 2;
    left: 0;
    bottom: 0;
    width: min(84vw, 320px);
    margin: 0;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    background: #06282B;
    transform: translate3d(-104%, 0, 0);
    transition: transform .32s var(--ease-out);
  }

  .rail__nav[data-open="true"] ~ .rail__foot { transform: translate3d(0, 0, 0); }

  .rail__score {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    width: auto;
    padding: 7px 14px;
  }

  .rail__score-label { font-size: 10px; }
  .rail__score-num { font-size: 14px; }

  .rail__note { font-size: 10px; }

  .rail__scrim {
    position: fixed;
    z-index: 0;
    inset: 0;
    background: rgba(2, 4, 8, .66);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .rail__scrim[hidden] { display: none; }
  .rail__scrim:not([hidden]) { display: block; }

  .score-strip__item { padding: 0 16px; gap: 12px; font-size: 12px; }
  .score-strip__meta { font-size: 11px; }

  .scroll-progress { width: 2px; }

  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 15. 桌面 / 平板 ---------- */
@media (min-width: 900px) {
  :root {
    --topbar-h: 0px;
  }

  body {
    padding-left: var(--rail-w);
    padding-top: var(--strip-h);
  }

  .score-strip {
    top: 0;
    left: var(--rail-w);
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 780px) and (max-width: 899px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: 1.05fr 1.95fr; }
}

@media (min-width: 1200px) {
  .site-footer__inner { grid-template-columns: 1.1fr 2fr; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .score-strip__track { animation: none; }
  .status-dot--live { animation: none; }
  .site-footer::before { animation: none; }
  .scroll-progress__bar { transition: none; }
}
