/* ===========================================================
   华会体育 · /assets/site.css
   夜场杯赛档案站：侧边品牌轨道 + 连续内容画布
   =========================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 12px); }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dt, dd, pre { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  --night: #071726;
  --turf: #0E2B24;
  --cream: #F2EAD7;
  --ink: #1D1610;
  --cyan: #3FF0D0;
  --gold: #FFA21F;
  --pulse: #FF4B3E;
  --rust: #E4552B;
  --bronze: #6B4A1C;
  --mist: #7F9AA6;
  --glass: rgba(242, 234, 215, 0.08);
  --glass-strong: rgba(242, 234, 215, 0.16);
  --line: rgba(127, 154, 166, 0.28);
  --line-ink: rgba(29, 22, 16, 0.18);

  --font-display: 'Oswald', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --rail-w: 232px;
  --rail-w-collapsed: 88px;
  --topbar-h: 56px;
  --gutter: clamp(16px, 3vw, 40px);

  --radius: 3px;
  --radius-lg: 10px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --spine: linear-gradient(180deg, var(--bronze) 0%, var(--gold) 48%, var(--cyan) 100%);
  --spine-x: linear-gradient(90deg, var(--bronze) 0%, var(--gold) 55%, var(--cyan) 100%);
  --p: 0;
}

/* ---------- 3. 基底 ---------- */
body {
  background-color: var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(127, 154, 166, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 154, 166, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.2));
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.2));
}
h1, h2, h3, h4, h5 { font-weight: 600; line-height: 1.25; letter-spacing: 0.01em; }
p { max-width: 74ch; }
strong { color: var(--cyan); font-weight: 600; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- 4. 焦点与可访问 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- 5. 页头：品牌轨道 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: var(--rail-w);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--turf) 0%, #0a1f1b 58%, #08161c 100%);
  border-right: 1px solid var(--line);
}
.rail-body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 20px 22px;
  overflow-y: auto;
}
.rail-topbar { display: none; }
.rail-progress {
  position: absolute;
  right: -1px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(127, 154, 166, 0.16);
}
.rail-progress__fill {
  display: block;
  position: absolute;
  inset: 0;
  transform-origin: top center;
  transform: scaleY(var(--p, 0));
  background: var(--spine);
}

/* 品牌字标 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand__mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 4px;
  background: linear-gradient(150deg, var(--bronze), var(--gold) 46%, var(--cyan));
  box-shadow: inset 0 0 0 1px rgba(7, 23, 38, 0.55), 0 0 0 1px rgba(63, 240, 208, 0.18);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid rgba(7, 23, 38, 0.85);
  border-radius: 50%;
}
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--mist);
}
.brand--rail { padding-bottom: 4px; }
.brand--compact .brand__mark { width: 26px; height: 26px; flex-basis: 26px; }
.brand--compact .brand__mark::after { inset: 7px; }
.brand--compact .brand__name { font-size: 15px; letter-spacing: 0.08em; }
.brand--footer .brand__mark { width: 38px; height: 38px; flex-basis: 38px; }
.brand--footer .brand__name { font-size: 21px; }

/* 赛季状态 */
.rail-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
}
.rail-status__version {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.rail-status__sync {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--mist);
}
.pulse-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--pulse);
  animation: pulse 1.6s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 75, 62, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 75, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 75, 62, 0); }
}
@keyframes pulse-cyan {
  0% { box-shadow: 0 0 0 0 rgba(63, 240, 208, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(63, 240, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 240, 208, 0); }
}
.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.sync-badge--compact { padding: 5px 9px; font-size: 10.5px; }
.sync-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse-cyan 1.6s var(--ease) infinite;
}
.sync-badge__text { white-space: nowrap; }

/* 刻度点导航 */
.rail-nav { flex: 1 1 auto; min-height: 0; }
.rail-nav__list { position: relative; display: flex; flex-direction: column; gap: 2px; }
.rail-nav__list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(107, 74, 28, 0.9), rgba(255, 162, 31, 0.55), rgba(63, 240, 208, 0.5));
}
.rail-nav__item { display: block; }
.rail-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 10px 10px 26px;
  border-radius: var(--radius);
  color: var(--cream);
  opacity: 0.72;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.rail-nav__link:hover {
  opacity: 1;
  background: var(--glass);
  transform: translateX(3px);
}
.rail-nav__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.rail-nav__label { font-size: 15px; letter-spacing: 0.04em; }
.rail-nav__tick {
  position: absolute;
  left: 3.5px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--mist);
  border-radius: 50%;
  background: var(--night);
  transform: translateY(-50%);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.rail-nav__link[aria-current="page"] {
  opacity: 1;
  background: linear-gradient(90deg, rgba(63, 240, 208, 0.16), rgba(63, 240, 208, 0));
}
.rail-nav__link[aria-current="page"] .rail-nav__num { color: var(--cyan); }
.rail-nav__link[aria-current="page"] .rail-nav__label { color: var(--cyan); }
.rail-nav__link[aria-current="page"] .rail-nav__tick {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(63, 240, 208, 0.16), 0 0 14px rgba(63, 240, 208, 0.8);
}

/* 轨道底部 */
.rail-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.rail-foot__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
  transition: color 0.2s var(--ease);
}
.rail-foot__link:hover { color: var(--cyan); }
.rail-foot__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--mist);
  word-break: break-all;
}

/* 移动端开关 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cream);
}
.nav-toggle__bars { position: relative; display: block; width: 16px; height: 10px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.2s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle__label { line-height: 1; }
.site-header[data-open="true"] .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--rust));
  color: #1a1005;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(255, 162, 31, 0.22);
}
.btn--gold:hover { transform: translateY(-2px); }
.btn--ghost {
  border-color: var(--line);
  background: var(--glass);
  color: var(--cream);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--block { width: 100%; }

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-left: var(--rail-w);
  padding: clamp(34px, 5vw, 64px) var(--gutter) 28px;
  background: linear-gradient(180deg, #071726 0%, #0b2130 55%, #061420 100%);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--spine-x);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 3fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  max-width: 1200px;
  margin-inline: auto;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-note {
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--mist);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-col__list { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 14px;
  line-height: 1.5;
  color: var(--cream);
  opacity: 0.78;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.footer-link:hover { opacity: 1; color: var(--cyan); }
.footer-link--plain {
  font-family: var(--font-mono);
  font-size: 12.5px;
  word-break: break-all;
  opacity: 0.66;
  cursor: default;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  max-width: 1200px;
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist);
}
.footer-base__line { max-width: 62ch; }
.footer-base__line--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--gold);
}
.footer-base__links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-base__links a { transition: color 0.2s var(--ease); }
.footer-base__links a:hover { color: var(--cyan); }

/* ---------- 8. 主内容画布 ---------- */
.page-main {
  position: relative;
  z-index: 1;
  margin-left: var(--rail-w);
  padding-bottom: 8px;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(36px, 5vw, 76px); }
.section--turf {
  background: linear-gradient(180deg, rgba(14, 43, 36, 0.94), rgba(14, 43, 36, 0.42));
  border-block: 1px solid var(--line);
}
.section--paper {
  background: var(--cream);
  color: var(--ink);
  border-block: 1px solid rgba(29, 22, 16, 0.2);
}
.section--paper .section-title { color: var(--ink); }
.section--paper .eyebrow { color: var(--rust); }
.section--paper .eyebrow::before { background: linear-gradient(90deg, var(--rust), var(--gold)); }
.section--paper .lede,
.section--paper .footer-note { color: #4a3f33; }

/* ---------- 9. 文字组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--bronze), var(--gold));
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--cream);
}
.lede {
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--mist);
}
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--cyan);
}
.stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; }
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  color: var(--cyan);
}
.stat__label { font-size: 12.5px; letter-spacing: 0.04em; color: var(--mist); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.5;
}
.tag--gold { color: var(--gold); }
.tag--cyan { color: var(--cyan); }
.tag--red { color: var(--pulse); }
.tag--muted { color: var(--mist); }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.breadcrumbs__item { color: var(--mist); }
.breadcrumbs__item a:hover { color: var(--cyan); }
.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  margin-right: 8px;
  color: rgba(127, 154, 166, 0.5);
}

/* ---------- 10. 栅格与块 ---------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.spine-line {
  display: block;
  width: 3px;
  min-height: 60px;
  border-radius: 3px;
  background: var(--spine);
}
.spine-line--x { width: 100%; min-height: 0; height: 3px; background: var(--spine-x); }

.glass-panel {
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.paper-card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius-lg);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}
.paper-card__stamp {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 3px 8px;
  border: 1px solid rgba(228, 85, 43, 0.55);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--rust);
  transform: rotate(-3deg);
}
.card {
  display: block;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(14, 43, 36, 0.7), rgba(7, 23, 38, 0.6));
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 240, 208, 0.55);
  box-shadow: var(--shadow);
}

/* ---------- 11. 数据表 ---------- */
.data-table {
  width: 100%;
  font-size: 13.5px;
  border-top: 1px solid var(--line);
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.data-table thead th {
  background: rgba(14, 43, 36, 0.75);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}
.data-table tbody tr { min-height: 44px; }
.data-table tbody tr:nth-child(even) { background: rgba(14, 43, 36, 0.45); }
.data-table tbody tr:hover { background: rgba(63, 240, 208, 0.07); }
.section--paper .data-table { border-top-color: var(--line-ink); }
.section--paper .data-table th,
.section--paper .data-table td { border-bottom-color: var(--line-ink); color: var(--ink); }
.section--paper .data-table thead th { background: rgba(29, 22, 16, 0.06); color: #6a5b4a; }
.section--paper .data-table tbody tr:nth-child(even) { background: rgba(29, 22, 16, 0.04); }

/* ---------- 12. 时间线（补时事件） ---------- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(107, 74, 28, 0.9), var(--gold) 55%, var(--cyan));
}
.timeline__item { position: relative; }
.timeline__dot {
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--night);
}
.timeline__item--live .timeline__dot {
  border-color: var(--pulse);
  background: var(--pulse);
  animation: pulse 1.6s var(--ease) infinite;
}
.timeline__time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.timeline__body {
  margin-top: 2px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--cream);
  opacity: 0.9;
}

/* ---------- 13. 展开器 / 筛选 / 标签页 ---------- */
.expander {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
}
.expander + .expander { margin-top: 10px; }
.expander__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--cream);
}
.expander__summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan);
}
.expander[open] .expander__summary::after { content: "–"; }
.expander__summary:hover { color: var(--cyan); }
.expander__body {
  padding: 0 16px 16px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--cream);
  opacity: 0.86;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cream);
  transition: color 0.24s var(--ease), background 0.24s var(--ease),
              border-color 0.24s var(--ease), transform 0.24s var(--ease);
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); }
.chip[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--rust));
  color: #170d03;
  font-weight: 700;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.tab {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
  transition: color 0.24s var(--ease), background 0.24s var(--ease), border-color 0.24s var(--ease);
}
.tab:hover { color: var(--cream); border-color: var(--line); }
.tab[aria-selected="true"] {
  color: var(--cyan);
  border-color: rgba(63, 240, 208, 0.5);
  background: rgba(63, 240, 208, 0.1);
}
.tabpanel { padding-top: 22px; }
.tabpanel[hidden] { display: none; }

/* ---------- 14. 图片容器基础规则 ---------- */
.media { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.media__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--turf), var(--night));
}
.media__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(63, 240, 208, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 240, 208, 0.09) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: screen;
}
.media__img { width: 100%; height: 100%; object-fit: cover; }
.media__caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
}
.media--wide .media__frame { aspect-ratio: 21 / 9; }
.media--tall .media__frame { aspect-ratio: 4 / 5; }
.media--square .media__frame { aspect-ratio: 1 / 1; }

/* ---------- 15. 状态与显现 ---------- */
.is-hidden { display: none !important; }
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .site-header {
    top: 0;
    right: 0;
    left: 0;
    bottom: auto;
    width: 100%;
    height: var(--topbar-h);
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, var(--turf), #08161c);
  }
  .rail-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding-inline: var(--gutter);
  }
  .rail-body {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    width: min(88vw, 340px);
    flex: none;
    padding: 22px 20px 30px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #0b221d, #071726);
    transform: translateX(-104%);
    visibility: hidden;
    overflow-y: auto;
    transition: transform 0.28s var(--ease), visibility 0.28s var(--ease);
    box-shadow: var(--shadow);
  }
  .site-header[data-open="true"] .rail-body { transform: translateX(0); visibility: visible; }
  .rail-progress {
    top: auto;
    bottom: -1px;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
  }
  .rail-progress__fill { transform-origin: left center; transform: scaleX(var(--p, 0)); }
  .rail-nav__link { min-height: 52px; }
  .rail-status { flex-direction: row; flex-wrap: wrap; align-items: center; }
  body { padding-top: var(--topbar-h); }
  .page-main { margin-left: 0; }
  .site-footer { margin-left: 0; }
}
@media (max-width: 900px) {
  .col-4, .col-6, .col-8 { grid-column: span 12; }
  .grid { gap: 18px; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .brand__name { letter-spacing: 0.06em; }
  .rail-nav__label { font-size: 14.5px; }
}

/* ---------- 17. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .card:hover { transform: none; }
  .rail-nav__link:hover { transform: none; }
  .btn--gold:hover { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
