/* ==========================================================================
   爱游戏体育赛 · 共享样式表 /assets/site.css
   夜场竞技 · 数据仪表盘语言
   ========================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 700; }

/* ---------- tokens ---------- */
:root {
  --bg: #071510;
  --panel: #0D211A;
  --ink: #E8F5EE;
  --ink-2: #9BB8AC;
  --ink-body: #CFE3DA;
  --cyan: #26F0C8;
  --orange: #FF7A3D;
  --line: rgba(38, 240, 200, 0.14);
  --line-soft: rgba(38, 240, 200, 0.08);
  --glass: rgba(13, 33, 26, 0.72);
  --ok: #4CD97B;
  --warn: #FFB347;

  --rail-w: 112px;
  --topbar-h: 58px;
  --shell: 1320px;
  --gap: 20px;

  --font-head: 'Oswald', 'Barlow Condensed', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  margin: 0;
  padding-top: var(--topbar-h);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(38, 240, 200, 0.10), transparent 62%),
    radial-gradient(820px 520px at -6% 26%, rgba(255, 122, 61, 0.07), transparent 60%),
    linear-gradient(180deg, #071510 0%, #06120e 58%, #050f0c 100%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: rgba(38, 240, 200, 0.28); color: #04140f; }

/* ---------- 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
}

.section { padding: clamp(38px, 6vw, 84px) 0; position: relative; }
.section--tight { padding: clamp(24px, 3.4vw, 48px) 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: clamp(22px, 3.2vw, 40px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

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

/* ---------- 排版 ---------- */
.display {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(38px, 7.2vw, 86px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
}
.h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.22;
  margin: 0 0 10px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--cyan);
}
.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
  color: var(--ink);
  max-width: 62ch;
}
.body-text {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink-body);
  max-width: 70ch;
}
.body-text p { margin: 0 0 1.1em; }
.note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.85;
  color: var(--ink-2);
}
.note-v {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(155, 184, 172, 0.72);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.mono { font-family: var(--font-mono); }
.num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary {
  background: var(--cyan);
  color: #04140F;
  font-weight: 700;
}
.btn-primary:hover {
  background: #5ef7d6;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(38, 240, 200, 0.22);
}
.btn-ghost {
  background: rgba(38, 240, 200, 0.04);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: rgba(38, 240, 200, 0.42);
  color: var(--cyan);
  background: rgba(38, 240, 200, 0.09);
}
.btn:active { transform: translateY(1px); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(38, 240, 200, 0.08);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 3px;
}
.tag[data-tone="warm"] { color: var(--orange); background: rgba(255, 122, 61, 0.1); border-color: rgba(255, 122, 61, 0.28); }
.tag[data-tone="ok"] { color: var(--ok); background: rgba(76, 217, 123, 0.1); border-color: rgba(76, 217, 123, 0.26); }
.tag[data-tone="warn"] { color: var(--warn); background: rgba(255, 179, 71, 0.1); border-color: rgba(255, 179, 71, 0.26); }

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
  animation: dot-pulse 2.6s ease-out infinite;
}
.status-dot[data-tone="warm"] { background: var(--orange); }
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 217, 123, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(76, 217, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 217, 123, 0); }
}

/* ---------- 面板与卡片 ---------- */
.panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(18px, 2.4vw, 28px);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(232, 245, 238, 0.03), 0 22px 44px -34px rgba(0, 0, 0, 0.95);
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.card:hover { border-color: rgba(38, 240, 200, 0.32); transform: translateY(-2px); }
.card-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.card-body { padding: 16px 20px 22px; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li::after { content: "/"; margin-left: 10px; color: rgba(155, 184, 172, 0.42); }
.breadcrumb li:last-child::after { content: ""; margin: 0; }
.breadcrumb a { text-decoration: none; color: var(--ink-2); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- 表格 ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--glass);
}
.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  white-space: nowrap;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(7, 21, 16, 0.9);
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background-color 0.16s var(--ease); }
.data-table tbody tr:hover { background: rgba(38, 240, 200, 0.045); }
.data-table .num { color: var(--cyan); }

/* ---------- 折叠清单 ---------- */
.disclosure {
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(13, 33, 26, 0.5);
  overflow: hidden;
}
.disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan);
}
.disclosure[open] summary::after { content: "–"; }
.disclosure summary:hover { background: rgba(38, 240, 200, 0.06); }
.disclosure[open] summary { color: var(--cyan); border-bottom: 1px solid var(--line); }
.disclosure-body {
  padding: 14px 18px 18px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.8;
}

/* ---------- 标签页 ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.tab {
  appearance: none;
  position: relative;
  top: 1px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-head);
  font-size: 14.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tab:hover { color: var(--ink); background: rgba(38, 240, 200, 0.05); }
.tab[aria-selected="true"] {
  color: var(--cyan);
  background: rgba(38, 240, 200, 0.08);
  border-color: var(--line);
  border-bottom: 1px solid var(--bg);
}
.tab-panel { padding-top: 6px; }
.tab-panel[hidden] { display: none; }

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(135deg, #0D211A 0%, #071510 58%, #0b1c16 100%);
}
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05) brightness(0.94);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 21, 16, 0) 42%, rgba(7, 21, 16, 0.78) 100%),
    radial-gradient(120% 80% at 82% 0%, rgba(38, 240, 200, 0.16), transparent 62%);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--plain::after { background: none; }
.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}

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

/* ==========================================================================
   头部
   ========================================================================== */
.site-header { position: relative; z-index: 60; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 90;
  transform: translateY(-180%);
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--cyan);
  color: #04140F;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); outline-offset: 2px; }

/* 顶栏 */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  height: var(--topbar-h);
  padding: 0 clamp(14px, 2.4vw, 28px);
  background: linear-gradient(180deg, rgba(7, 21, 16, 0.97), rgba(7, 21, 16, 0.84));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(38, 240, 200, 0.34);
  border-radius: 4px;
  background: rgba(38, 240, 200, 0.07);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand-mark-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px rgba(7, 21, 16, 0.9);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--ink-2);
}

/* 联赛切换 */
.league-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: clamp(10px, 1.6vw, 22px);
  border-left: 1px solid var(--line);
}
.league-switch-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-right: 4px;
}
.league-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.league-chip:hover {
  color: var(--ink);
  border-color: rgba(38, 240, 200, 0.4);
  background: rgba(38, 240, 200, 0.07);
}
.league-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
}
.league-chip-dot[data-tone="warm"] { background: var(--orange); }
.league-chip-dot[data-tone="cool"] { background: #66C8FF; }

/* 顶栏右侧 */
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.version-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(38, 240, 200, 0.07);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 4px 9px;
  white-space: nowrap;
}
.topbar-cta { padding: 9px 16px; font-size: 13px; }

/* 抽屉按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(38, 240, 200, 0.05);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-toggle:hover { color: var(--cyan); border-color: rgba(38, 240, 200, 0.38); }
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: none;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
[data-header][data-open] .nav-toggle {
  color: var(--cyan);
  border-color: rgba(38, 240, 200, 0.42);
  background: rgba(38, 240, 200, 0.1);
}
[data-header][data-open] .nav-toggle-bars::before { transform: translateY(4.25px) rotate(45deg); }
[data-header][data-open] .nav-toggle-bars::after { transform: translateY(-4.25px) rotate(-45deg); }

/* 侧边轨道（移动端 = 抽屉） */
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(84vw, 320px);
  padding: calc(var(--topbar-h) + 20px) 18px 26px;
  background: linear-gradient(180deg, #0D211A 0%, #071510 100%);
  border-right: 1px solid var(--line);
  transform: translateX(-102%);
  visibility: hidden;
  overflow-y: auto;
  transition: transform 0.26s var(--ease), visibility 0.26s linear;
}
[data-header][data-open] .rail { transform: translateX(0); visibility: visible; }

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rail-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--ink-2);
  font-family: var(--font-head);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.rail-link:hover { color: var(--ink); background: rgba(38, 240, 200, 0.06); border-color: var(--line); }
.rail-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(38, 240, 200, 0.55);
}
.rail-link[aria-current="page"] {
  color: var(--cyan);
  border-color: rgba(38, 240, 200, 0.32);
  background: linear-gradient(90deg, rgba(38, 240, 200, 0.14), rgba(38, 240, 200, 0.02));
}
.rail-link[aria-current="page"] .rail-index { color: var(--cyan); }

.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.rail-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}
.rail-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(155, 184, 172, 0.6);
}

/* 遮罩 */
.header-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(4, 12, 9, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s var(--ease);
}
[data-header][data-open] .header-scrim { opacity: 1; pointer-events: auto; }

/* 阅读进度刻度 */
.scroll-meter {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--topbar-h) - 2px);
  z-index: 61;
  height: 2px;
  background: rgba(38, 240, 200, 0.08);
  pointer-events: none;
}
.scroll-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  transition: transform 0.12s linear;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 33, 26, 0.55) 0%, rgba(7, 21, 16, 0.98) 100%);
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  top: -320px;
  right: -140px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 240, 200, 0.16), transparent 62%);
  pointer-events: none;
}
.footer-shell {
  position: relative;
  z-index: 1;
  padding-top: clamp(42px, 6vw, 84px);
  padding-bottom: clamp(22px, 3vw, 34px);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 56px);
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(38, 240, 200, 0.34);
  border-radius: 4px;
  background: rgba(38, 240, 200, 0.07);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.footer-title {
  margin: 16px 0 0;
  font-family: var(--font-head);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.footer-tagline {
  margin: 10px 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.footer-line {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}
.footer-col-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 18px;
}
.footer-links a {
  position: relative;
  display: inline-block;
  padding-left: 14px;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--line);
  transition: width 0.2s var(--ease), background-color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--cyan); padding-left: 18px; }
.footer-links a:hover::before { width: 10px; background: var(--cyan); }

.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.contact-key {
  min-width: 62px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
}
.contact-val {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}
.copy-btn {
  margin-left: auto;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.copy-btn:hover { border-color: rgba(38, 240, 200, 0.42); background: rgba(38, 240, 200, 0.08); }
.copy-btn[data-copy-state="ok"] {
  color: #04140F;
  background: var(--ok);
  border-color: var(--ok);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(28px, 4vw, 52px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.footer-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.footer-icp { color: rgba(155, 184, 172, 0.85); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-legal a:hover { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (min-width: 480px) {
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
  :root { --topbar-h: 64px; }
  .brand-name { font-size: 17px; }
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
    gap: clamp(24px, 4vw, 56px);
  }
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1.15fr;
    align-items: start;
  }
}

@media (max-width: 899px) {
  .league-switch { display: none; }
}

@media (max-width: 1023px) {
  html.nav-open { overflow: hidden; }
  .grid > .span-3 { grid-column: span 6; }
  .grid > .span-4,
  .grid > .span-5,
  .grid > .span-6,
  .grid > .span-7,
  .grid > .span-8,
  .grid > .span-9 { grid-column: span 12; }
}

@media (max-width: 639px) {
  .brand-sub { display: none; }
  .scroll-meter-fill { transition: none; }
}

@media (max-width: 559px) {
  .version-badge,
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: 10px 12px; }
  .topbar-cta { padding: 9px 14px; }
}

@media (max-width: 479px) {
  .grid > .span-3 { grid-column: span 12; }
  .footer-links { grid-template-columns: minmax(0, 1fr); }
}

/* 桌面：轨道常驻 */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .header-scrim { display: none; }

  .rail {
    top: var(--topbar-h);
    bottom: 0;
    width: var(--rail-w);
    padding: 26px 0 22px;
    gap: 0;
    align-items: center;
    transform: none;
    visibility: visible;
    overflow: visible;
    background: linear-gradient(180deg, rgba(13, 33, 26, 0.92) 0%, rgba(7, 21, 16, 0.95) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .rail-list {
    width: 100%;
    align-items: center;
    gap: 4px;
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .rail-link {
    position: relative;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding: 15px 6px;
    border: 0;
    border-radius: 0;
    font-size: 14px;
    letter-spacing: 0.2em;
  }
  .rail-label { writing-mode: vertical-rl; text-orientation: upright; }
  .rail-link:hover { background: rgba(38, 240, 200, 0.05); color: var(--ink); }
  .rail-link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(38, 240, 200, 0.16), rgba(38, 240, 200, 0));
  }
  .rail-link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
  }
  .rail-foot {
    width: 100%;
    align-items: center;
    text-align: center;
    padding: 14px 8px 0;
    margin-top: 0;
  }
  .rail-status { justify-content: center; font-size: 10px; letter-spacing: 0.1em; }
  .rail-note { display: none; }

  .scroll-meter {
    top: var(--topbar-h);
    bottom: 0;
    left: calc(var(--rail-w) - 3px);
    right: auto;
    width: 3px;
    height: auto;
  }
  .scroll-meter-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--cyan) 0%, rgba(38, 240, 200, 0.24) 70%, var(--orange) 100%);
    transform: scaleY(var(--progress, 0));
    transform-origin: center top;
    transition: transform 0.12s linear;
  }
}

/* ---------- 无障碍：减弱动效 ---------- */
@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;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .scroll-meter-fill { transition: none; }
}
