/* ==========================================================================
   半岛 BANDAO 体育 · 共享样式表 /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, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

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

img, svg, video, canvas {
  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 {
  color-scheme: dark;

  --c-deep: #0A1E3C;
  --c-midnight: #061428;
  --c-panel: #14315C;
  --c-lava: #FF5A1F;
  --c-lava-soft: #FF9A5C;
  --c-neon: #35F0C0;
  --c-mist: #F4F7FC;
  --c-steel: #A9B6CC;
  --c-line: #25406B;
  --c-alert: #FF4757;
  --c-ink: #0A1E3C;
  --c-ink-soft: #40506B;

  --rail-w: 88px;
  --bar-h: 62px;
  --max-w: 1440px;
  --gap: clamp(16px, 2.3vw, 32px);

  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "Helvetica Neue",
                  "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono",
               Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, .03), 0 22px 44px -30px rgba(0, 0, 0, .95);
  --scroll-progress: 0;
}

/* ---------- 3. 基础排版 ---------- */
body {
  margin: 0;
  min-height: 100vh;
  padding-left: var(--rail-w);
  background-color: var(--c-deep);
  background-image:
    linear-gradient(rgba(37, 64, 107, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 64, 107, .16) 1px, transparent 1px);
  background-size: 88px 88px;
  background-attachment: fixed;
  color: var(--c-mist);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: condensed;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--c-mist);
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 6.6vw, 96px); }
h2 { font-size: clamp(30px, 4.2vw, 64px); }
h3 { font-size: clamp(22px, 2.5vw, 28px); letter-spacing: -.01em; }
h4 { font-size: 18px; letter-spacing: 0; line-height: 1.3; }
h5 { font-size: 16px; letter-spacing: 0; }

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

small { font-size: 13px; color: var(--c-steel); }

strong, b { font-weight: 600; color: var(--c-mist); }

a { color: var(--c-lava-soft); transition: color .18s var(--ease); }
a:hover { color: var(--c-mist); }

::selection { background: var(--c-lava); color: #fff; }

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

/* ---------- 4. 通用容器与栅格 ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 64px);
}

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

.section {
  position: relative;
  padding-block: clamp(56px, 7.5vw, 120px);
}
.section--deep { background: var(--c-deep); }
.section--midnight { background: var(--c-midnight); }
.section--light { background: var(--c-mist); color: var(--c-ink); }
.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4 { color: var(--c-ink); }
.section--light .prose { color: var(--c-ink-soft); }
.section--light .prose strong { color: var(--c-ink); }
.section--light .eyebrow { color: #0B8F6E; }
.section--light .eyebrow::before { background: #0B8F6E; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  margin-bottom: clamp(28px, 4vw, 52px);
}
.section-head__lead { max-width: 62ch; }
.section-head__lead p { color: var(--c-steel); margin-bottom: 0; }

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

/* ---------- 5. 文本组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-neon);
}
.eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--c-neon);
}

.prose {
  max-width: 68ch;
  color: var(--c-steel);
  font-size: 17px;
  line-height: 1.78;
}
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; color: var(--c-mist); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.1em; list-style: disc; }
.prose li { margin-bottom: .45em; }

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

.quote {
  border-left: 2px solid var(--c-lava);
  padding-left: 20px;
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  color: var(--c-mist);
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-steel);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--c-steel);
}
.chip--lava { border-color: rgba(255, 90, 31, .5); color: var(--c-lava-soft); }
.chip--neon { border-color: rgba(53, 240, 192, .42); color: var(--c-neon); }

.num-pill {
  display: inline-block;
  padding: 2px 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-neon);
  background: rgba(53, 240, 192, .08);
  border: 1px solid rgba(53, 240, 192, .28);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn--primary { background: var(--c-lava); color: #fff; }
.btn--primary:hover { background: var(--c-lava-soft); color: var(--c-midnight); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--c-mist); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-lava); color: var(--c-lava-soft); }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: 13px; }

/* ---------- 7. 面板 / 卡片 / 数据 ---------- */
.panel {
  position: relative;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-soft);
}
.panel--tint { background: rgba(20, 49, 92, .48); }

.card {
  position: relative;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  padding: clamp(18px, 2vw, 24px);
}

.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2vw, 24px);
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-soft);
}
.stat-card__label {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--c-steel);
}
.stat-card__value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  color: var(--c-mist);
  font-variant-numeric: tabular-nums;
}
.stat-card__unit {
  font-family: var(--font-mono);
  font-size: .42em;
  margin-left: 4px;
  color: var(--c-steel);
}

.meter { display: grid; gap: 8px; }
.meter__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--c-steel);
}
.meter__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--c-mist);
}
.meter__track {
  position: relative;
  height: 5px;
  background: rgba(37, 64, 107, .55);
  overflow: hidden;
}
.meter__fill {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  background: linear-gradient(90deg, var(--c-lava), var(--c-neon));
  transition: width .6s var(--ease);
}

/* ---------- 8. 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 3 / 4; }

.media > img,
.media > svg,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.06) brightness(.9);
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-mist);
  background: linear-gradient(to top, rgba(6, 20, 40, .94), rgba(6, 20, 40, 0));
}
.media__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  background: var(--c-lava);
  color: #fff;
}

/* ---------- 9. 标签页 ---------- */
.tabs { position: relative; }
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--c-line);
}
.tabs__tab {
  position: relative;
  padding: 10px 18px;
  border: 1px solid var(--c-line);
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-steel);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.tabs__tab:hover { color: var(--c-mist); }
.tabs__tab[aria-selected="true"] {
  color: var(--c-mist);
  background: var(--c-panel);
  box-shadow: inset 0 2px 0 var(--c-lava);
}
.tabs__panel { padding-top: 24px; }
.tabs__panel[hidden] { display: none; }

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  padding-block: 22px 0;
  font-size: 13px;
  color: var(--c-steel);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--c-line);
}
.breadcrumb a { color: var(--c-steel); }
.breadcrumb a:hover { color: var(--c-lava-soft); }
.breadcrumb [aria-current="page"] { color: var(--c-mist); }

/* ---------- 11. 装饰 ---------- */
.speed-lines {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(90px, 13vw, 220px);
  height: 100%;
  pointer-events: none;
  opacity: .38;
  background-image: repeating-linear-gradient(
    112deg,
    rgba(255, 90, 31, .6) 0 1px,
    transparent 1px 13px
  );
  -webkit-mask-image: linear-gradient(112deg, transparent, #000);
  mask-image: linear-gradient(112deg, transparent, #000);
}

/* ---------- 12. 显现动效 ---------- */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .26s var(--ease), transform .26s var(--ease);
}
html.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   13. 共享头部 —— 侧边轨道
   ========================================================================== */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1300;
  padding: 10px 18px;
  background: var(--c-neon);
  color: var(--c-midnight);
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--c-midnight); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 900;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  background: var(--c-midnight);
  border-right: 1px solid var(--c-line);
  overflow: hidden auto;
  overscroll-behavior: contain;
}
.site-header::-webkit-scrollbar { width: 4px; }
.site-header::-webkit-scrollbar-thumb { background: var(--c-line); }

.header__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 10px 14px;
  border-bottom: 1px solid var(--c-line);
  flex: 0 0 auto;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: var(--c-mist);
}
.brand:hover { color: var(--c-mist); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--c-lava);
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  transform: skewX(-8deg);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.brand:hover .brand__mark { background: var(--c-lava); color: #fff; }
.brand__mark > svg { transform: skewX(8deg); }

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: condensed;
  font-size: 13px;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: var(--c-mist);
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--c-steel);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--c-line);
  border-radius: 2px;
  color: var(--c-mist);
  font-size: 13px;
  font-weight: 600;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--c-lava); color: var(--c-lava-soft); }
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: var(--c-lava);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars i:nth-child(2) { width: 68%; }
.site-header[data-open="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header__drawer {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.primary-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-list { display: block; }

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(37, 64, 107, .55);
  color: var(--c-steel);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav-link:hover { color: var(--c-mist); background: rgba(255, 90, 31, .07); }

.nav-link__icon {
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}

.nav-link__label {
  max-width: 68px;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: condensed;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: .01em;
  text-align: center;
  word-break: keep-all;
}

.nav-link[aria-current="page"] {
  color: var(--c-mist);
  background: rgba(255, 90, 31, .1);
}
.nav-link[aria-current="page"] .nav-link__icon {
  background: var(--c-lava);
  border-color: var(--c-lava);
}
.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 26px;
  transform: translateY(-50%);
  background: var(--c-lava);
}

.rail-leagues {
  flex: 0 0 auto;
  padding: 12px 8px;
  border-top: 1px solid var(--c-line);
}
.rail-leagues__title {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-align: center;
  color: var(--c-steel);
}
.rail-leagues__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rail-league {
  display: block;
  padding: 5px 2px;
  text-align: center;
  font-size: 11px;
  color: var(--c-steel);
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.rail-league:hover { color: var(--c-neon); border-color: rgba(53, 240, 192, .35); }

.rail-utility {
  flex: 0 0 auto;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 8px 18px;
  border-top: 1px solid var(--c-line);
}
.rail-action {
  display: block;
  padding: 9px 5px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-mist);
  border: 1px solid var(--c-line);
  border-radius: 2px;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.rail-action:hover { border-color: var(--c-lava); color: var(--c-lava-soft); }
.rail-action--primary {
  background: var(--c-lava);
  border-color: var(--c-lava);
  color: #fff;
}
.rail-action--primary:hover {
  background: var(--c-lava-soft);
  border-color: var(--c-lava-soft);
  color: var(--c-midnight);
}
.rail-season {
  margin-top: 4px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--c-steel);
}

.rail-track {
  position: fixed;
  top: 0;
  bottom: 0;
  left: calc(var(--rail-w) - 3px);
  width: 3px;
  z-index: 905;
  background: rgba(37, 64, 107, .55);
  pointer-events: none;
}
.rail-track__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(var(--scroll-progress));
  transform-origin: top center;
  background: linear-gradient(180deg, var(--c-lava) 0%, var(--c-lava-soft) 58%, var(--c-neon) 100%);
}

/* ==========================================================================
   14. 共享页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin: 0;
  padding-block: clamp(44px, 6vw, 84px) 28px;
  background: var(--c-midnight);
  border-top: 1px solid var(--c-line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background:
    linear-gradient(90deg,
      var(--c-lava) 0, var(--c-lava) 26%,
      transparent 26%, transparent 28%,
      var(--c-neon) 28%, var(--c-neon) 44%,
      transparent 44%);
}

.footer-inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr) minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(26px, 3.4vw, 56px);
}

.footer-brand { display: block; }
.site-footer .brand {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.site-footer .brand__mark { width: 36px; height: 36px; }
.site-footer .brand__text { align-items: flex-start; gap: 4px; }
.site-footer .brand__name { font-size: 17px; }
.site-footer .brand__tag { font-size: 9px; letter-spacing: .24em; }

.footer-brand__lede {
  max-width: 32ch;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-mist);
}
.footer-brand__note {
  max-width: 34ch;
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--c-steel);
}

.footer-col { display: block; }
.footer-col__title {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-neon);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a {
  font-size: 15px;
  color: var(--c-steel);
}
.footer-links a:hover { color: var(--c-lava-soft); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--c-steel);
}
.footer-contact__value {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-mist);
  overflow-wrap: anywhere;
}
.footer-contact__value--mono {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: -.01em;
}

.footer-meta {
  width: 100%;
  max-width: var(--max-w);
  margin: clamp(36px, 5vw, 64px) auto 0;
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 4vw, 64px) 0;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  font-size: 13px;
  color: var(--c-steel);
}
.footer-meta__legal {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.footer-meta__update { margin: 0; }

/* ==========================================================================
   15. 响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  body {
    padding-left: 0;
    padding-top: var(--bar-h);
    background-attachment: scroll;
    background-size: 64px 64px;
  }

  .site-header {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    flex-direction: column;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
  }

  .header__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--bar-h);
    padding: 10px 14px;
    border-bottom: 0;
  }

  .brand { flex-direction: row; align-items: center; gap: 10px; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__mark > svg { width: 18px; height: 18px; }
  .brand__text { align-items: flex-start; }
  .brand__name { font-size: 14px; }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 1010;
  }

  .header__drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: min(86vw, 320px);
    padding: 20px 14px 24px;
    background: var(--c-midnight);
    border-right: 1px solid var(--c-line);
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform .24s var(--ease);
  }
  .site-header[data-open="true"] .header__drawer { transform: translateX(0); }

  .nav-link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 10px;
  }
  .nav-link__label {
    max-width: none;
    font-size: 15px;
    text-align: left;
  }
  .nav-link__icon { width: 8px; height: 8px; }
  .nav-link[aria-current="page"]::before {
    left: -2px;
    height: 18px;
  }

  .rail-leagues { padding: 16px 4px; }
  .rail-leagues__title { text-align: left; padding-left: 4px; }
  .rail-leagues__list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .rail-league {
    padding: 6px 12px;
    border-color: var(--c-line);
    font-size: 12px;
  }

  .rail-utility { padding: 16px 4px 8px; }
  .rail-action { padding: 12px 10px; font-size: 14px; }

  .rail-track {
    position: absolute;
    top: auto;
    bottom: -1px;
    left: 0;
    right: 0;
    width: auto;
    height: 3px;
  }
  .rail-track__fill {
    transform: scaleX(var(--scroll-progress));
    transform-origin: left center;
    background: linear-gradient(90deg, var(--c-lava), var(--c-lava-soft) 60%, var(--c-neon));
  }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
}

@media (max-width: 620px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { justify-content: flex-start; }
  .tabs__list { flex-wrap: nowrap; overflow-x: auto; }
}

/* ---------- 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;
  }
  html.has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .meter__fill { transition: none; }
  .header__drawer { transition: none; }
}
