/* ==========================================================================
   百博赛事 · /assets/site.css
   共享层：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

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

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

body { margin: 0; }

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }

ul, ol { margin: 0; padding: 0; }

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

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; }

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- 变量 ---------- */
:root {
  /* 色彩体系 */
  --ink: #0B1B2B;
  --ink-deep: #07121D;
  --panel: #2C3A45;
  --panel-soft: #22303A;
  --orange: #F4621F;
  --orange-hi: #FF7638;
  --cyan: #35D0D6;
  --sand: #C9A15A;
  --clay: #B4593A;
  --moss: #6E7F63;
  --paper: #F2EDE4;
  --mist: #9AA7B0;
  --alert: #D9483B;

  --line: rgba(154, 167, 176, 0.22);
  --line-soft: rgba(154, 167, 176, 0.12);
  --line-strong: rgba(154, 167, 176, 0.42);
  --ink-on-paper: #1B2733;

  /* 版式骨架 */
  --rail-w: 236px;
  --bar-h: 58px;
  --pad: clamp(18px, 4vw, 60px);
  --maxw: 1360px;
  --gap: clamp(16px, 2.2vw, 30px);

  /* 字体 */
  --font-head: "Source Han Sans SC Condensed", "Noto Sans SC Condensed", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 网格纹理 */
  --grid-line: rgba(154, 167, 176, 0.045);
}

/* ---------- 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 88px 88px;
  padding-top: var(--bar-h);
  padding-left: var(--rail-w);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

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

#main-content { scroll-margin-top: calc(var(--bar-h) + 18px); }

::selection { background: var(--orange); color: var(--ink-deep); }

/* ---------- 通用工具 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

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

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

.display {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--clay);
  flex: none;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: clamp(22px, 3vw, 38px);
  flex-wrap: wrap;
}

.section-head__title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  margin: 0;
}

.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(242, 237, 228, 0.86);
}
.prose > p + p { margin-top: 1.2em; }
.prose h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  color: var(--paper);
}
.prose h3 {
  font-size: 19px;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
  color: var(--paper);
}
.prose ul,
.prose ol {
  margin-top: 0.9em;
  padding-left: 1.3em;
  list-style: square;
}
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--cyan); text-underline-offset: 4px; }
.prose strong { color: var(--paper); font-weight: 700; }

/* ---------- 网格系统 ---------- */
.grid {
  display: grid;
  gap: var(--gap);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--editorial { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.col-note { grid-column: span 4; }
.col-body { grid-column: span 8; }
.col-half { grid-column: span 6; }
.col-full { grid-column: 1 / -1; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}
.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.18s ease;
}
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { color: rgba(154, 167, 176, 0.45); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  background: var(--orange);
  color: var(--ink-deep);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--orange-hi); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn--ghost:hover {
  background: rgba(53, 208, 214, 0.08);
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--cyan);
  padding: 0 4px;
}
.btn--quiet:hover { background: transparent; color: var(--paper); }

/* ---------- 标签 / 状态点 ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
}
.label--moss { color: var(--moss); }
.label--cyan { color: var(--cyan); }
.label--alert { color: var(--alert); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}
.tag--sand { border-color: rgba(201, 161, 90, 0.5); color: var(--sand); }
.tag--moss { border-color: rgba(110, 127, 99, 0.65); color: #9CB08D; }
.tag--alert { border-color: rgba(217, 72, 59, 0.55); color: #EA7166; }
.tag--orange { border-color: rgba(244, 98, 31, 0.55); color: #FF8A54; }
.tag--cyan { border-color: rgba(53, 208, 214, 0.5); color: var(--cyan); }

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--mist);
}
.dot--orange { background: var(--orange); }
.dot--cyan { background: var(--cyan); }
.dot--sand { background: var(--sand); }
.dot--moss { background: var(--moss); }

/* ---------- 卡片 / 面板 ---------- */
.card {
  position: relative;
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
}

.card__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sand);
}
.card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-top: 10px;
  color: var(--paper);
}
.card__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
  margin-top: 8px;
}
.card__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.panel {
  background: var(--ink-deep);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px);
}

.paper {
  background: var(--paper);
  color: var(--ink-on-paper);
  border: 1px solid rgba(11, 27, 43, 0.18);
  padding: clamp(20px, 2.8vw, 34px);
}
.paper .label { color: var(--clay); }
.paper h2, .paper h3 { color: #16212B; }

/* ---------- 时间轴 ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.timeline__item {
  position: relative;
  padding-right: 4px;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--clay);
}
.timeline__item[data-state="active"]::before { background: var(--orange); }
.timeline__item[data-state="done"]::before { background: var(--moss); }
.timeline__item[data-state="archive"]::before { background: var(--sand); }

.timeline__year {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--sand);
}
.timeline__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  margin-top: 6px;
}
.timeline__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
  margin-top: 6px;
  max-width: 62ch;
}

/* ---------- 筛选按钮组 ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.filter__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.filter__btn:hover {
  color: var(--paper);
  border-color: var(--line-strong);
}
.filter__btn[aria-pressed="true"] {
  color: var(--ink-deep);
  background: var(--orange);
  border-color: var(--orange);
}

/* ---------- 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--3x4 { aspect-ratio: 3 / 4; }

.media--placeholder {
  background-image:
    linear-gradient(135deg, rgba(44, 58, 69, 0.95), rgba(7, 18, 29, 0.95)),
    linear-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: auto, 44px 44px;
  display: flex;
  align-items: flex-end;
}

.media__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 18, 29, 0) 42%, rgba(7, 18, 29, 0.88) 100%);
}
.media__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--paper);
}

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

/* 跳转链接 */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--orange);
  color: var(--ink-deep);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

/* 纵向计分板 */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 110;
  display: flex;
  flex-direction: column;
  padding: 26px 20px 18px;
  background: linear-gradient(180deg, rgba(11, 27, 43, 0.88), rgba(7, 18, 29, 0.74));
  border-right: 1px solid var(--line);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.24s ease;
}
.site-header[data-scrolled] .rail {
  background: var(--panel);
  border-right-color: var(--line-strong);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.brand__mark {
  display: block;
  width: 9px;
  height: 28px;
  flex: none;
  background: var(--orange);
}
.brand__cn {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.brand__en {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 3px;
}

/* 导航 */
.rail__nav {
  flex: 1 1 auto;
  margin-top: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rail__list {
  display: flex;
  flex-direction: column;
  list-style: none;
}
.rail__item { display: block; }

.rail__link {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px 6px 12px;
  border-left: 2px solid transparent;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.rail__link:hover {
  color: var(--paper);
  background: rgba(53, 208, 214, 0.08);
  border-left-color: var(--cyan);
}
.rail__link[aria-current="page"] {
  color: var(--paper);
  background: rgba(244, 98, 31, 0.1);
  border-left-color: var(--orange);
}
.rail__link[aria-current="page"] .rail__idx { color: var(--orange); }

.rail__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sand);
}
.rail__label {
  font-size: 15px;
  line-height: 1.3;
}

/* 面板状态 */
.rail__status {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.rail__stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* 顶部条 */
.header-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--rail-w);
  height: var(--bar-h);
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding-inline: var(--pad);
  background: linear-gradient(180deg, rgba(11, 27, 43, 0.78), rgba(11, 27, 43, 0));
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header[data-scrolled] .header-bar {
  background: var(--panel);
  border-bottom-color: var(--line-strong);
}

.header-bar__time {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
  white-space: nowrap;
}

.pulse {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--orange);
  animation: pulse-breathe 2.4s ease-in-out infinite;
}
@keyframes pulse-breathe {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(244, 98, 31, 0.55); }
  50% { opacity: 0.5; box-shadow: 0 0 0 7px rgba(244, 98, 31, 0); }
}

/* 收藏星标 */
.star-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.star-btn:hover {
  color: var(--paper);
  border-color: var(--cyan);
  background: rgba(53, 208, 214, 0.08);
}
.star-btn[aria-pressed="true"] {
  color: var(--sand);
  border-color: rgba(201, 161, 90, 0.6);
  background: rgba(201, 161, 90, 0.12);
}
.star-btn__glyph {
  font-size: 14px;
  line-height: 1;
  color: inherit;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle__bar {
  position: relative;
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }

/* 滚动进度 */
.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  transition: width 0.12s linear;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--ink-deep);
  border-top: 1px solid var(--line-strong);
  margin-top: clamp(48px, 8vw, 110px);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 132px;
  height: 2px;
  background: var(--orange);
}

.footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--pad) clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: clamp(22px, 3vw, 44px);
}

.footer__brand { display: flex; flex-direction: column; }
.footer__mark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.footer__en {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 6px;
}
.footer__note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
  max-width: 32ch;
}

.footer__title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 14px;
}
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.footer__link {
  font-size: 15px;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer__link:hover,
.footer__link:focus-visible {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer__meta {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}
.footer__meta--mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

.footer__base {
  border-top: 1px solid var(--line);
}
.footer__base-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px var(--pad) 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.footer__icp { color: rgba(154, 167, 176, 0.85); }
.footer__base-item { color: rgba(154, 167, 176, 0.7); }

/* ==========================================================================
   显现动效协议
   ========================================================================== */
[data-reveal-state="out"] {
  opacity: 0;
  transform: translateY(14px);
}
[data-reveal-state="in"] {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  transition-delay: calc(var(--reveal-i, 0) * 60ms);
}

/* ==========================================================================
   响应式：平板（窄计分板）
   ========================================================================== */
@media (min-width: 721px) and (max-width: 1079px) {
  :root { --rail-w: 88px; }

  .rail {
    padding: 20px 8px 14px;
    align-items: center;
  }
  .brand {
    flex-direction: column;
    gap: 0;
    width: 100%;
    align-items: center;
    padding-bottom: 16px;
  }
  .brand__text { display: none; }

  .rail__nav { width: 100%; }
  .rail__link {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 3px;
    padding: 8px 2px;
    min-height: 52px;
  }
  .rail__label { font-size: 12px; letter-spacing: 0; }
  .rail__idx { font-size: 10px; }

  .rail__status { display: none; }

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

/* ==========================================================================
   响应式：手机（抽屉导航）
   ========================================================================== */
@media (max-width: 720px) {
  :root {
    --rail-w: 0px;
    --bar-h: 54px;
  }

  .header-bar {
    left: 0;
    background: var(--ink-deep);
    border-bottom-color: var(--line-strong);
    gap: 10px;
  }
  .site-header[data-scrolled] .header-bar { background: var(--ink-deep); }

  .rail {
    top: var(--bar-h);
    width: min(310px, 86vw);
    padding: 22px 20px 20px;
    background: var(--ink-deep);
    border-right-color: var(--line-strong);
    transform: translateX(-102%);
    z-index: 120;
  }
  .site-header[data-scrolled] .rail { background: var(--ink-deep); }
  .site-header[data-open] .rail { transform: translateX(0); }

  .site-header[data-open]::after {
    content: "";
    position: fixed;
    top: var(--bar-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 115;
    background: rgba(7, 18, 29, 0.72);
  }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .brand__text { display: block; }

  .rail__link {
    grid-template-columns: 30px minmax(0, 1fr);
    justify-items: start;
    gap: 10px;
    padding: 8px 6px 8px 12px;
    min-height: 48px;
  }
  .rail__label { font-size: 15px; }
  .rail__idx { font-size: 11px; }

  .rail__status { display: flex; }

  .nav-toggle { display: inline-flex; }
  .star-btn__text { display: none; }
  .star-btn { padding: 0 12px; }
  .header-bar__time { font-size: 10px; letter-spacing: 0.05em; }

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

  .grid--editorial { grid-template-columns: minmax(0, 1fr); }
  .col-note,
  .col-body,
  .col-half { grid-column: 1 / -1; }

  .footer__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) and (min-width: 721px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-note,
  .col-body { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .footer__inner {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .footer__brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   动效降级
   ========================================================================== */
@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;
    transition-delay: 0ms !important;
  }

  [data-reveal-state] {
    opacity: 1 !important;
    transform: none !important;
  }

  .pulse { animation: none; opacity: 1; }
}
