/* ==========================================================================
   冠竞体育看台 — 共享样式 /assets/site.css
   夜场看台 × 数据裁判台
   ========================================================================== */

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

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

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B1A16;
  --ink-2: #0E1E2C;
  --line: #1C2E38;
  --paper: #F4F8F6;
  --muted: #9FB0AE;
  --yellow: #FFC61A;
  --red: #E02340;
  --cyan: #2ED3C6;
  --violet: #7B5CFF;

  --bar-h: 38px;
  --rail: 84px;
  --shell: 1280px;
  --gap: clamp(14px, 2.2vw, 26px);

  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Helvetica Neue", "Arial Narrow", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 140ms;
  --t-mid: 280ms;
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  min-height: 100vh;
  padding-bottom: var(--bar-h);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.012em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0.006em;
  color: var(--paper);
}

h1 { font-size: clamp(32px, 5.4vw, 62px); margin: 0 0 22px; }
h2 { font-size: clamp(23px, 3.1vw, 36px); margin: 0 0 16px; }
h3 { font-size: clamp(18px, 2.1vw, 24px); margin: 0 0 12px; }
h4 { font-size: 17px; margin: 0 0 10px; letter-spacing: 0.03em; }
p { margin: 0 0 18px; }
strong, b { font-weight: 700; color: var(--paper); }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 22px;
}

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

#main-content { scroll-margin-top: 24px; }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 90;
  padding: 10px 18px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 5. 布局工具 ---------- */
.shell {
  width: min(100% - 32px, var(--shell));
  margin-inline: auto;
}

@media (min-width: 861px) {
  .shell { width: min(100% - 72px, var(--shell)); }
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(30px, 4vw, 56px); }
.section--panel {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(24px, 3.4vw, 44px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section__head h2 { margin: 0; }
.section__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}
.bento > * { grid-column: span 12; }

@media (min-width: 720px) {
  .bento > .col-3 { grid-column: span 6; }
  .bento > .col-4 { grid-column: span 6; }
  .bento > .col-6 { grid-column: span 12; }
  .bento > .col-8 { grid-column: span 12; }
}
@media (min-width: 1040px) {
  .bento > .col-3 { grid-column: span 3; }
  .bento > .col-4 { grid-column: span 4; }
  .bento > .col-6 { grid-column: span 6; }
  .bento > .col-8 { grid-column: span 8; }
}

/* ---------- 6. 页头 / 居中刊头 ---------- */
.site-header {
  position: relative;
  z-index: 30;
  background: var(--ink);
}

.masthead {
  position: relative;
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  width: min(100% - 32px, var(--shell));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.masthead__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.masthead__meta b {
  font-weight: 500;
  color: var(--paper);
  letter-spacing: 0.2em;
}

.masthead__brand {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  padding: 0 6px;
}
.masthead__brand-cn {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0.07em;
  color: var(--paper);
  transition: color var(--t-fast) var(--ease);
}
.masthead__brand:hover .masthead__brand-cn { color: var(--cyan); }
.masthead__brand-en {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: var(--cyan);
  text-transform: uppercase;
}

.masthead__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: var(--red);
  border: 1px solid var(--red);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.masthead__cta::before {
  content: "";
  width: 9px;
  height: 13px;
  background: currentColor;
  transform: rotate(-4deg);
}
.masthead__cta:hover { background: transparent; color: var(--red); }

/* 移动端栏目开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle__label { text-transform: uppercase; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 栏目导航行 */
.site-nav {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.site-nav__list {
  width: min(100% - 32px, var(--shell));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(6px, 2.4vw, 38px);
}
.site-nav__list a {
  display: block;
  padding: 15px 2px 13px;
  font-size: 14.5px;
  letter-spacing: 0.13em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.site-nav__list a:hover { color: var(--paper); }
.site-nav__list a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--cyan);
}

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.scroll-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cyan);
}

/* ---------- 7. 通用组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--cyan);
}

.crumbs {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li::after { content: "/"; color: var(--line); }
.crumbs li:last-child::after { content: ""; }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--paper); }

.prose { max-width: 38em; }
.prose p { color: rgba(244, 248, 246, 0.86); font-size: 17px; line-height: 1.85; }
.prose h2, .prose h3, .prose h4 { margin-top: 34px; }
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(46, 211, 198, 0.45);
}
.prose a:hover { text-decoration-color: var(--cyan); }
.prose ul, .prose ol { display: grid; gap: 10px; margin: 0 0 22px; }
.prose li { position: relative; padding-left: 24px; color: rgba(244, 248, 246, 0.86); }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 11px;
  height: 1px;
  background: var(--cyan);
}
.prose ol { counter-reset: prose; }
.prose ol li { counter-increment: prose; }
.prose ol li::before {
  content: counter(prose, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}
.prose blockquote {
  margin: 0 0 22px;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--violet);
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn--red { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.btn--red:hover { background: transparent; color: var(--red); }
.btn--cyan { border-color: var(--cyan); color: var(--cyan); }
.btn--cyan:hover { background: var(--cyan); color: var(--ink); }
.btn--ghost { border-color: var(--line); color: var(--muted); }
.btn--ghost:hover { border-color: var(--paper); color: var(--paper); }
.btn--sm { padding: 8px 14px; font-size: 13px; letter-spacing: 0.08em; }
.btn--block { width: 100%; }

.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px);
}
.card--flat { background: transparent; }
.card--raised { background: var(--ink); }

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
}
.card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.3vw, 27px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.01em;
}
.card__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.card__body { font-size: 15.5px; color: rgba(244, 248, 246, 0.82); }
.card__body p:last-child { margin-bottom: 0; }

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

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(26px, 3.8vw, 44px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.stat__value--red { color: var(--red); }
.stat__value--yellow { color: var(--yellow); }
.stat__value--cyan { color: var(--cyan); }
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.tag--cyan { border-color: rgba(46, 211, 198, 0.45); color: var(--cyan); }
.tag--yellow { border-color: rgba(255, 198, 26, 0.45); color: var(--yellow); }
.tag--red { border-color: rgba(224, 35, 64, 0.55); color: #FF6B82; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--cyan); color: var(--paper); }
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

/* 可展开组 */
.expand { border: 1px solid var(--line); background: var(--ink-2); }
.expand + .expand { margin-top: -1px; }

.expand__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 16px clamp(16px, 2vw, 22px);
  text-align: left;
  color: var(--paper);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.expand__head:hover { background: rgba(46, 211, 198, 0.07); }

.expand__sign { position: relative; flex: 0 0 14px; width: 14px; height: 14px; }
.expand__sign::before,
.expand__sign::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.expand__sign::before { left: 0; right: 0; top: 6px; height: 1px; }
.expand__sign::after { top: 0; bottom: 0; left: 6px; width: 1px; }
.expand__head[aria-expanded="true"] .expand__sign::after { transform: scaleY(0); }

.expand__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-mid) var(--ease);
}
.expand__head[aria-expanded="true"] + .expand__panel { grid-template-rows: 1fr; }
.expand__panel > div { min-height: 0; overflow: hidden; }
.expand__body {
  padding: 0 clamp(16px, 2vw, 22px) 20px;
  font-size: 15.5px;
  color: rgba(244, 248, 246, 0.82);
}
.expand__body p:last-child { margin-bottom: 0; }

/* 时间线 */
.timeline { position: relative; display: grid; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.timeline__item { position: relative; padding: 0 0 26px 34px; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 11px;
  height: 11px;
  background: var(--ink);
  border: 1px solid var(--cyan);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__round {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
}
.timeline__title { margin: 6px 0; font-size: 16px; font-weight: 700; color: var(--paper); }
.timeline__text { margin: 0; font-size: 14.5px; color: rgba(244, 248, 246, 0.78); }

/* 联赛轴 */
.rail {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  width: var(--rail);
  padding: 24px 0;
  border-right: 1px solid var(--line);
  text-align: center;
}
.rail__title {
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.rail__list { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rail__link {
  position: relative;
  display: block;
  padding: 12px 8px;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transition: color var(--t-fast) var(--ease);
}
.rail__link:hover { color: var(--paper); }
.rail__link[aria-current="true"] { color: var(--cyan); }
.rail__link[aria-current="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--cyan);
}
.rail__more {
  margin: 0 auto;
  padding: 14px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  writing-mode: vertical-rl;
  transition: color var(--t-fast) var(--ease);
}
.rail__more:hover { color: var(--cyan); }

/* 媒体容器 */
.media {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.media > img,
.media > svg,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--dim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 26, 22, 0) 42%, rgba(11, 26, 22, 0.88) 100%);
}
.media-caption {
  margin: 0;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* 滚动显现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 6vw, 72px);
}

.site-footer__inner {
  width: min(100% - 32px, var(--shell));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.35fr 1fr;
  gap: clamp(24px, 3.6vw, 56px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.footer-brand__name {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--paper);
}
.footer-brand__line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.9;
  color: var(--muted);
}

.footer-col__title {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.footer-col__list { display: grid; gap: 10px; }
.footer-col__list a {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--t-fast) var(--ease);
}
.footer-col__list a:hover { color: var(--paper); }

.footer-col__note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
  opacity: 0.85;
}

.footer-contact {
  display: grid;
  gap: 8px;
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}
.footer-contact span { word-break: break-all; }

.site-footer__base {
  width: min(100% - 32px, var(--shell));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.site-footer__base p { margin: 0; }

.changelog-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.changelog-bar__batch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.changelog-bar__batch::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  background: var(--yellow);
}
.changelog-bar__link {
  flex: 0 0 auto;
  color: var(--cyan);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease);
}
.changelog-bar__link:hover { border-bottom-color: var(--cyan); }

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1024px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  body { font-size: 16.5px; }

  .masthead { padding: 22px 0 18px; }
  .masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "cta   cta";
    gap: 14px 12px;
    align-items: center;
  }
  .masthead__meta { display: none; }
  .masthead__brand { grid-area: brand; justify-items: start; text-align: left; padding: 0; }
  .masthead__brand-cn { letter-spacing: 0.05em; }
  .masthead__brand-en { letter-spacing: 0.28em; }
  .masthead__cta { grid-area: cta; justify-self: stretch; justify-content: center; }
  .nav-toggle { display: inline-flex; grid-area: toggle; position: static; }

  .site-nav {
    display: grid;
    grid-template-rows: 1fr;
    border-bottom: 1px solid var(--line);
  }
  .site-nav[data-collapsed] {
    grid-template-rows: 0fr;
    border-bottom-width: 0;
    transition: grid-template-rows var(--t-mid) var(--ease);
  }
  .site-nav[data-collapsed][data-open] {
    grid-template-rows: 1fr;
    border-bottom-width: 1px;
  }
  .site-nav[data-collapsed] .site-nav__list {
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-inline: 16px;
  }
  .site-nav[data-collapsed] .site-nav__list a {
    padding: 15px 2px;
    border-bottom: 1px solid var(--line);
    letter-spacing: 0.14em;
  }
  .site-nav[data-collapsed] .site-nav__list a[aria-current="page"] {
    border-bottom-color: var(--cyan);
  }

  .masthead__cta { padding: 12px 18px; }

  .rail {
    width: 100%;
    grid-template-rows: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 0 0;
    text-align: left;
  }
  .rail__title { writing-mode: horizontal-tb; margin: 0 0 10px 16px; }
  .rail__list {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    padding-inline: 16px;
    scrollbar-width: none;
  }
  .rail__list::-webkit-scrollbar { display: none; }
  .rail__link {
    writing-mode: horizontal-tb;
    padding: 8px 12px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }
  .rail__link[aria-current="true"]::before {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 2px;
    width: auto;
    height: 2px;
  }
  .rail__more { writing-mode: horizontal-tb; margin: 10px 0 12px 16px; padding: 0; }

  .expand__panel { transition: none; }
}

@media (max-width: 640px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .site-footer__base { flex-direction: column; align-items: flex-start; }
  .changelog-bar { font-size: 10.5px; letter-spacing: 0.08em; padding: 0 12px; }
  .changelog-bar__batch { max-width: 58vw; }
}

/* ---------- 10. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-progress { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .expand__panel { grid-template-rows: 1fr; }
  .expand__head[aria-expanded="false"] + .expand__panel { grid-template-rows: 0fr; }
}
