/* ==========================================================================
   贝博体育 · 球队档案室 — 共享站点套件 /assets/site.css
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body,
h1, h2, h3, h4, h5,
p, ul, ol, li,
figure, figcaption, blockquote,
dl, dd, details, summary {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

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

:root {
  /* 色彩 */
  --ink: #0E2A24;
  --ink-2: #163B32;
  --paper: #F5F2EA;
  --mist: #DCE5E7;
  --haze: #A9BCC4;
  --gold: #C8A24A;
  --gold-lt: #E8D6A3;
  --archive: #0A0D0C;
  --teal: #6F8F8A;
  --ochre: #B56A4A;

  /* 尺寸 */
  --rail-w: 96px;
  --bar-h: 64px;
  --shell-max: 1180px;
  --gutter: clamp(18px, 4vw, 56px);

  /* 字体 */
  --font-display: "Oswald", "Barlow Condensed", "Arial Narrow",
    "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "HarmonyOS Sans SC",
    "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular",
    Menlo, Consolas, "Courier New", monospace;

  /* 动效与形状 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --line-soft: 1px solid rgba(169, 188, 196, 0.28);
}

/* ---------- 基础排版 ---------- */

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw + 11px, 17px);
  line-height: 1.75;
  color: var(--archive);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

strong { font-weight: 600; }

::selection {
  background: var(--gold);
  color: var(--archive);
}

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

/* ---------- 跳过链接 ---------- */

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -160%);
  padding: 12px 22px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--gold);
  color: var(--archive);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline-offset: 0;
}

/* ---------- 头部轨道 ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
}

.rail {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 0 12px;
}

.rail__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: var(--paper);
}

.rail__brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: rgba(22, 59, 50, 0.7);
  color: var(--gold-lt);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.rail__brand-name {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--paper);
}

.rail__brand-sub {
  display: none;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--haze);
}

/* 移动端抽屉 */

.rail__nav {
  position: fixed;
  top: var(--bar-h);
  right: 0;
  bottom: 0;
  z-index: 88;
  width: min(340px, 86vw);
  padding: 22px 18px 32px;
  background: var(--ink);
  border-left: 1px solid rgba(200, 162, 74, 0.28);
  overflow-y: auto;
  transform: translateX(104%);
  visibility: hidden;
  transition: transform 300ms var(--ease), visibility 0s linear 300ms;
}

.site-header[data-open="true"] .rail__nav {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

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

.rail__nav-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 12px;
  border-bottom: 1px solid rgba(169, 188, 196, 0.16);
  color: var(--mist);
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

.rail__nav-link:hover { color: var(--gold-lt); }

.rail__nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.rail__nav-label {
  font-size: 16px;
  letter-spacing: 0.04em;
}

.rail__nav-link[aria-current="page"] {
  background: rgba(200, 162, 74, 0.14);
  color: var(--gold-lt);
  box-shadow: inset 3px 0 0 var(--gold);
}

/* 联赛导航按钮 */

.rail__league-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgba(200, 162, 74, 0.45);
  border-radius: var(--radius-pill);
  color: var(--gold-lt);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease);
}

.rail__league-toggle::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.18);
}

.rail__league-toggle:hover,
.rail__league-toggle[aria-expanded="true"] {
  background: rgba(200, 162, 74, 0.16);
  border-color: var(--gold);
}

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

/* 汉堡按钮 */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border: 1px solid rgba(200, 162, 74, 0.4);
  border-radius: 12px;
  background: rgba(22, 59, 50, 0.65);
  color: var(--gold-lt);
  z-index: 92;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 220ms var(--ease), opacity 160ms linear;
}

.site-header[data-open="true"] .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open="true"] .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- 联赛导航面板 ---------- */

.league-panel {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 86;
  padding: 26px 20px 44px;
  background: var(--ink-2);
  border-right: 1px solid rgba(200, 162, 74, 0.3);
  color: var(--mist);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 200ms linear, transform 260ms var(--ease),
    visibility 0s linear 260ms;
}

.league-panel[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.league-panel__eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.league-panel__title {
  margin-top: 10px;
  font-size: clamp(1.4rem, 4.4vw, 1.85rem);
  font-weight: 300;
  color: var(--paper);
}

.league-panel__note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--haze);
  max-width: 40ch;
}

.league-panel__cols {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.league-panel__col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold-lt);
}

.league-panel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.league-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.league-list__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(169, 188, 196, 0.22);
  border-radius: 12px;
  background: rgba(220, 229, 231, 0.04);
  color: var(--mist);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease),
    transform 180ms var(--ease);
}

.league-list__link:hover {
  border-color: rgba(200, 162, 74, 0.6);
  background: rgba(200, 162, 74, 0.1);
  transform: translateX(3px);
}

.league-list__name { font-size: 14px; letter-spacing: 0.02em; }

.league-list__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--haze);
}

.league-panel__cta { margin-top: 26px; }

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--ink);
  color: var(--mist);
}

.footer__rule {
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(200, 162, 74, 0.22);
}

.rule-fold {
  max-width: var(--shell-max);
  margin: 0 auto;
}

.rule-fold__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold-lt);
}

.rule-fold__summary::-webkit-details-marker { display: none; }

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

.rule-fold__summary::after {
  content: "展开";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--haze);
}

.rule-fold[open] .rule-fold__summary::after { content: "收起"; }

.rule-fold__body {
  padding-bottom: 22px;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--haze);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 5vw, 48px);
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 64px) var(--gutter) 36px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.footer__brand-line {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--haze);
}

.footer__nav-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-size: 14px;
  color: var(--mist);
  transition: color 180ms var(--ease);
}

.footer__nav-link::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(200, 162, 74, 0.55);
  flex: 0 0 auto;
}

.footer__nav-link:hover { color: var(--gold-lt); }

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
  word-break: break-all;
}

.footer__contact-key {
  display: inline-block;
  min-width: 3em;
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--haze);
}

.footer__contact-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--haze);
  max-width: 40ch;
}

.footer__contact-cta { margin-top: 18px; }

.footer__base {
  background: var(--archive);
  padding: 20px var(--gutter);
}

.footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--shell-max);
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: rgba(169, 188, 196, 0.85);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__legal a {
  color: rgba(220, 229, 231, 0.9);
  border-bottom: 1px solid rgba(200, 162, 74, 0.35);
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.footer__legal a:hover {
  color: var(--gold-lt);
  border-color: var(--gold);
}

.footer__legal-sep { color: rgba(169, 188, 196, 0.5); }

.footer__icp { font-variant-numeric: tabular-nums; }

.footer__copy { color: rgba(169, 188, 196, 0.7); }

/* ---------- 通用布局容器 ---------- */

main { display: block; }

.container {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 7vw, 88px); }

.section--paper { background: var(--paper); color: var(--archive); }
.section--mist { background: var(--mist); color: var(--archive); }
.section--ink { background: var(--ink); color: var(--mist); }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 28px);
}

.span-4,
.span-6,
.span-8,
.span-12 { grid-column: 1 / -1; }

/* ---------- 标题组 ---------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.section-head__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.section-head__title {
  font-size: clamp(1.65rem, 4vw, 2.9rem);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.section-head__note {
  flex: 1 1 240px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--haze);
  max-width: 46ch;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  transition: background-color 180ms var(--ease), color 180ms var(--ease),
    border-color 180ms var(--ease), transform 180ms var(--ease);
}

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

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--archive);
}

.btn--gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); }

.btn--ghost {
  border-color: rgba(200, 162, 74, 0.55);
  color: var(--gold-lt);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(200, 162, 74, 0.14);
  border-color: var(--gold);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}

.btn--ink:hover { background: var(--ink-2); }

/* ---------- 面包屑 ---------- */

.breadcrumbs {
  --bc: #5E736F;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--bc);
}

.breadcrumbs--dark { --bc: var(--haze); }

.breadcrumbs a {
  color: var(--bc);
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.breadcrumbs a:hover { color: var(--gold); border-color: var(--gold); }

.breadcrumbs__sep { opacity: 0.55; }

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

/* ---------- 正文长文 ---------- */

.prose {
  max-width: 72ch;
  font-size: clamp(15px, 1.1vw + 11px, 17px);
  line-height: 1.85;
  color: #1D2E2A;
}

.prose > * + * { margin-top: 1.15em; }

.prose h2 {
  margin-top: 2em;
  padding-top: 0.6em;
  border-top: 1px solid rgba(14, 42, 36, 0.15);
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.prose h2::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  margin-right: 12px;
  border-radius: 2px;
  background: var(--gold);
  vertical-align: middle;
  transform: translateY(-3px);
}

.prose h3 {
  margin-top: 1.7em;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink-2);
}

.prose ul,
.prose ol { padding-left: 1.25em; }

.prose li { margin-top: 0.45em; }
.prose ul > li { list-style: disc; }
.prose ol > li { list-style: decimal; }

.prose a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--gold);
}

.prose blockquote {
  padding: 14px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(220, 229, 231, 0.5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #35473F;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(14, 42, 36, 0.08);
}

/* ---------- 数据卡 ---------- */

.data-card {
  padding: 20px 20px 22px;
  border: 1px solid rgba(169, 188, 196, 0.22);
  border-radius: var(--radius-md);
  background: var(--ink-2);
  color: var(--mist);
}

.data-card__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--haze);
}

.data-card__value {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--gold-lt);
  font-variant-numeric: tabular-nums;
}

.data-card--light {
  background: var(--mist);
  border-color: rgba(14, 42, 36, 0.12);
  color: var(--ink);
}

.data-card--light .data-card__label { color: #5E736F; }
.data-card--light .data-card__value { color: var(--ink); }

/* ---------- 标签 ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: rgba(169, 188, 196, 0.25);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: inherit;
}

.tag--gold {
  background: rgba(200, 162, 74, 0.18);
  border-color: rgba(200, 162, 74, 0.5);
}

/* ---------- 折叠说明 ---------- */

.fold {
  border: 1px solid rgba(14, 42, 36, 0.16);
  border-radius: var(--radius-md);
  background: rgba(220, 229, 231, 0.4);
  overflow: hidden;
}

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

.fold__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  list-style: none;
  cursor: pointer;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

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

.fold__summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--gold);
}

.fold[open] .fold__summary::after { content: "−"; }

.fold__body {
  padding: 0 18px 18px;
  font-size: 14px;
  line-height: 1.85;
  color: #33453F;
}

/* ---------- 图片容器 ---------- */

.figure { margin: 0; }

.figure__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--ink-2), var(--ink));
  aspect-ratio: 16 / 10;
}

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

.figure__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(220, 229, 231, 0.07) 0 2px,
    transparent 2px 9px
  );
  pointer-events: none;
}

.figure__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: #5E736F;
}

.section--ink .figure__caption { color: var(--haze); }

.figure--wide .figure__frame { aspect-ratio: 21 / 9; }
.figure--tall .figure__frame { aspect-ratio: 3 / 4; }
.figure--square .figure__frame { aspect-ratio: 1 / 1; }

/* ---------- 时间轴 ---------- */

.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(111, 143, 138, 0.55);
}

.timeline__item {
  position: relative;
  padding-bottom: 22px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__marker {
  position: absolute;
  left: -26px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--paper);
}

.section--ink .timeline__marker { background: var(--ink); }

/* ---------- 滚动进度 / 返回顶部 / 显现 ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 95;
  pointer-events: none;
  background: transparent;
}

.scroll-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transition: width 120ms linear;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 84;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(200, 162, 74, 0.5);
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-lt);
  font-family: var(--font-mono);
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease),
    visibility 0s linear 200ms;
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

body.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

body.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */

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

  .site-header {
    width: 100%;
    height: var(--bar-h);
    border-bottom: 1px solid rgba(200, 162, 74, 0.3);
  }
}

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

  .site-header {
    width: var(--rail-w);
    height: 100dvh;
    border-right: 1px solid rgba(220, 229, 231, 0.1);
  }

  .rail {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    padding: 18px 6px 20px;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .rail__brand {
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
  }

  .rail__brand-mark {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .rail__brand-name {
    font-size: 11.5px;
    letter-spacing: 0.06em;
  }

  .rail__brand-sub {
    display: block;
    font-size: 9px;
    color: var(--haze);
  }

  .rail__nav {
    position: static;
    width: 100%;
    padding: 0;
    margin-top: 6px;
    background: transparent;
    border: 0;
    overflow: visible;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .rail__nav-list { gap: 2px; }

  .rail__nav-link {
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 8px 2px;
    border-bottom: 0;
    border-radius: 10px;
    color: var(--haze);
  }

  .rail__nav-index {
    font-size: 9px;
    letter-spacing: 0.1em;
    color: rgba(200, 162, 74, 0.65);
  }

  .rail__nav-label {
    font-size: 11.5px;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .rail__nav-link:hover {
    color: var(--paper);
    background: rgba(220, 229, 231, 0.08);
  }

  .rail__nav-link[aria-current="page"] {
    background: rgba(200, 162, 74, 0.13);
    color: var(--gold-lt);
    box-shadow: inset 2px 0 0 var(--gold);
  }

  .rail__nav-link[aria-current="page"] .rail__nav-index { color: var(--gold); }

  .rail__league-toggle {
    margin-top: auto;
    width: 100%;
    padding: 9px 4px;
    font-size: 10.5px;
    letter-spacing: 0.04em;
  }

  .nav-toggle { display: none; }

  .league-panel {
    top: 0;
    left: var(--rail-w);
    right: auto;
    bottom: 0;
    width: min(460px, calc(100vw - var(--rail-w)));
    padding: 34px 30px 44px;
    transform: translateX(-14px);
    box-shadow: 24px 0 60px rgba(10, 13, 12, 0.35);
  }

  .league-panel__cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer__inner { grid-template-columns: 1.4fr 0.9fr 1.2fr; }
}

@media (min-width: 760px) {
  .span-4 { grid-column: span 4; }
  .span-6 { grid-column: span 6; }
  .span-8 { grid-column: span 8; }
  .span-12 { grid-column: span 12; }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  body.js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .league-list__link:hover { transform: none; }
  .to-top { transition: none; }
}
