/* ============================================================
   完美电竞赛场 · 共享样式表 /assets/site.css
   深夜赛场指挥中心：深空底 + 数据轨框架 + 暖纸档案层
   ============================================================ */

/* ---------- 0. 设计变量 ---------- */
:root {
  --ink-0: #080D1A;
  --ink-1: #111A2E;
  --ink-2: #1F2C45;
  --paper: #EFE7D7;
  --paper-ink: #0F1524;
  --red: #E23B32;
  --cyan: #35E0D0;
  --amber: #C9A34A;
  --crimson: #A8443C;
  --text: #F2F6FF;
  --dim: #8494AD;

  --rail-w: 92px;
  --topbar-h: 68px;
  --status-h: 34px;
  --pad: clamp(16px, 3vw, 36px);
  --gap: 24px;
  --radius: 2px;

  --font-sans: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Sarasa Mono SC", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-panel: 0 18px 40px rgba(3, 7, 16, 0.55);
}

/* ---------- 1. 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
::selection { background: rgba(53, 224, 208, 0.28); color: var(--text); }

/* ---------- 2. 中文排版与页面骨架 ---------- */
body {
  min-height: 100vh;
  margin: 0;
  padding-left: var(--rail-w);
  padding-top: var(--topbar-h);
  padding-bottom: var(--status-h);
  background-color: var(--ink-0);
  background-image:
    repeating-linear-gradient(to right, rgba(53, 224, 208, 0.05) 0 1px, transparent 1px 128px),
    repeating-linear-gradient(to bottom, rgba(53, 224, 208, 0.035) 0 1px, transparent 1px 128px);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.25; letter-spacing: -0.005em; }
h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.2; }
h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; }
h3 { font-size: 20px; line-height: 28px; }
p { font-size: 16px; line-height: 28px; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.caps {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.12em;
}
.muted { color: var(--dim); }
.lead { font-size: 18px; line-height: 30px; color: #DDE4F0; }

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

.container {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- 3. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
  background: var(--ink-1);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.btn:hover { text-decoration: none; border-color: #35486B; background: #16223A; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: #FFF5F3;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.btn--primary:hover { background: #F04A41; border-color: #F04A41; }

.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: rgba(53, 224, 208, 0.08); border-color: rgba(53, 224, 208, 0.45); color: var(--cyan); }

.btn--star { color: var(--dim); }
.btn--star::before { content: "★"; color: var(--red); font-size: 13px; }
.btn--star:hover { color: var(--text); }

.btn--sm { padding: 6px 12px; font-size: 13px; line-height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cyan);
  color: #04120F;
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-220%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); text-decoration: none; }

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

/* 遮罩（移动端） */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(3, 7, 16, 0.66);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.nav-scrim[data-open] { opacity: 1; pointer-events: auto; }

/* --- 5.1 左侧数据轨导航 --- */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 12px 0 8px;
  background: var(--ink-1);
  border-right: 1px solid var(--ink-2);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}
.rail__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 4px auto 14px;
  background: var(--red);
  color: #FFF5F3;
  font-weight: 900;
  font-size: 20px;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(226, 59, 50, 0.4), 0 0 22px rgba(226, 59, 50, 0.28);
}
.rail__mark:hover { text-decoration: none; background: #F04A41; }
.rail__nav { flex: 1 1 auto; padding: 6px 0; }
.rail__list { display: flex; flex-direction: column; }
.rail__item { display: block; }
.rail__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 6px;
  border-left: 2px solid transparent;
  color: var(--dim);
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.rail__link:hover { color: var(--text); background: rgba(53, 224, 208, 0.07); text-decoration: none; }
.rail__link[aria-current="page"] {
  color: var(--text);
  border-left-color: var(--red);
  background: rgba(226, 59, 50, 0.12);
}
.rail__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 10px;
  letter-spacing: 0.14em;
  color: #4A5C7A;
}
.rail__link[aria-current="page"] .rail__idx { color: var(--red); }
.rail__label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.06em;
}
.rail__collect {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 6px 6px;
  margin-top: 6px;
  border-top: 1px solid var(--ink-2);
  color: var(--dim);
  font-size: 13px;
}
.rail__collect:hover { color: var(--text); text-decoration: none; }
.rail__star { color: var(--red); font-size: 13px; line-height: 1; }

/* --- 5.2 顶部横轨 --- */
.topbar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--topbar-h);
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 var(--pad);
  background: var(--ink-1);
  border-bottom: 1px solid var(--ink-2);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-right: auto;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--ink-2);
  border: 1px solid rgba(53, 224, 208, 0.35);
  color: var(--cyan);
  font-weight: 900;
  font-size: 17px;
  border-radius: var(--radius);
}
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-size: 16px; font-weight: 800; line-height: 20px; letter-spacing: 0.02em; }
.brand__line {
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.topbar__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--red));
  pointer-events: none;
}

/* --- 5.3 移动导航按钮 --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
  background: var(--ink-0);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.nav-toggle__icon { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle__icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cyan);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle__label { line-height: 1; }

/* --- 5.4 底部状态横轨 --- */
.statusbar {
  position: fixed;
  left: var(--rail-w);
  right: 0;
  bottom: 0;
  height: var(--status-h);
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--pad);
  background: var(--ink-1);
  border-top: 1px solid var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.statusbar__state { display: flex; align-items: center; gap: 10px; min-width: 0; }
.statusbar__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.statusbar__meta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.statusbar__clock { color: var(--cyan); font-variant-numeric: tabular-nums; }
.statusbar__zone { color: #4A5C7A; }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--dim);
}
.dot--live {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 224, 208, 0.16);
  animation: dotPulse 1.2s ease-in-out infinite;
}
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  margin-top: 88px;
  border-top: 1px solid var(--ink-2);
  background:
    repeating-linear-gradient(to right, rgba(53, 224, 208, 0.035) 0 1px, transparent 1px 128px),
    linear-gradient(180deg, var(--ink-0) 0%, #0A1020 100%);
  padding: clamp(40px, 5vw, 64px) var(--pad) 28px;
}
.footer__inner {
  max-width: 1360px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: clamp(28px, 4vw, 56px);
}
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  background: var(--red);
  color: #FFF5F3;
  font-weight: 900;
  font-size: 18px;
  border-radius: var(--radius);
}
.footer__name { font-size: 18px; font-weight: 800; line-height: 24px; }
.footer__line { font-size: 12px; line-height: 18px; letter-spacing: 0.08em; color: var(--dim); }
.footer__meta { font-size: 12px; line-height: 20px; color: var(--dim); letter-spacing: 0.04em; word-break: break-word; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__coltitle {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__link { font-size: 14px; line-height: 22px; color: #C6D2E4; }
.footer__link:hover { color: var(--cyan); text-decoration: none; }
.footer__bottom {
  max-width: 1360px;
  margin: 40px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}
.footer__legal { font-size: 12px; line-height: 18px; color: var(--dim); letter-spacing: 0.08em; }
.footer__note { font-size: 12px; line-height: 18px; color: #5F708C; letter-spacing: 0.04em; }

/* ---------- 7. 网格与版式工具 ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2-7-3 { grid-template-columns: 2fr 7fr 3fr; }
.grid--3-6-3 { grid-template-columns: 3fr 6fr 3fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.section-head__title { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; }
.section-head__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--dim); text-transform: uppercase; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--cyan); }

/* ---------- 8. 数据面板 / 暖纸卡片 ---------- */
.panel {
  position: relative;
  background: var(--ink-1);
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-2);
}
.panel__title { font-size: 15px; font-weight: 700; line-height: 22px; letter-spacing: 0.02em; }
.panel__body { padding: 16px; }
.panel__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--ink-2);
  font-size: 13px;
  color: var(--dim);
}
.panel--tick::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 14px;
  width: 3px;
  height: 26px;
  background: var(--cyan);
}

.paper-card {
  position: relative;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
}
.paper-card::before,
.paper-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  border: 1px solid rgba(15, 21, 36, 0.22);
  border-radius: var(--radius);
}
.paper-card::after { transform: translate(3px, 3px); opacity: 0.8; }
.paper-card::before { transform: translate(6px, 6px); opacity: 0.55; }
.paper-card__label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 8px;
  border: 1px solid rgba(15, 21, 36, 0.3);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.paper-card__body { color: #241F17; font-size: 15px; line-height: 26px; }

/* ---------- 9. 状态标签 / 数值 / 刻度 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
  background: rgba(31, 44, 69, 0.4);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--cyan { color: var(--cyan); border-color: rgba(53, 224, 208, 0.45); background: rgba(53, 224, 208, 0.08); }
.tag--red { color: #FF8079; border-color: rgba(226, 59, 50, 0.5); background: rgba(226, 59, 50, 0.12); }
.tag--amber { color: var(--amber); border-color: rgba(201, 163, 74, 0.5); background: rgba(201, 163, 74, 0.1); }
.tag--crimson { color: #D07C74; border-color: rgba(168, 68, 60, 0.55); background: rgba(168, 68, 60, 0.14); }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value { font-family: var(--font-mono); font-size: 28px; line-height: 34px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.stat__value--red { color: var(--red); }
.stat__value--cyan { color: var(--cyan); }
.stat__label { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

.meter { position: relative; height: 6px; background: var(--ink-2); border-radius: 1px; overflow: hidden; }
.meter__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #1FA79A, var(--cyan)); }
.meter--amber .meter__fill { background: linear-gradient(90deg, #8A6F2E, var(--amber)); }

/* ---------- 10. 数据表 ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--ink-2); background: var(--ink-1); border-radius: var(--radius); }
.data-table { min-width: 640px; }
.data-table th,
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink-2);
  text-align: left;
  font-size: 14px;
  line-height: 22px;
  vertical-align: middle;
}
.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #16223A;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}
.data-table tbody tr:hover { background: rgba(53, 224, 208, 0.05); }
.data-table td.num,
.data-table th.num { font-family: var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .row-amber td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.data-table .row-crimson td:first-child { box-shadow: inset 3px 0 0 var(--crimson); }

/* ---------- 11. 主题筛选 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-btn {
  padding: 6px 12px;
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
  background: var(--ink-1);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.08em;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}
.filter-btn:hover { color: var(--text); border-color: #35486B; }
.filter-btn[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04120F;
  font-weight: 700;
}
.filter-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--dim); }
.is-in { animation: filterIn 0.16s ease both; }
@keyframes filterIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- 12. 面包屑 / 正文 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.breadcrumbs__link { color: var(--dim); }
.breadcrumbs__link:hover { color: var(--cyan); text-decoration: none; }
.breadcrumbs__sep { color: #3A4A66; }
.breadcrumbs__current { color: var(--text); }

.prose { max-width: 72ch; color: #D7DEEA; }
.prose h2 { margin: 40px 0 12px; }
.prose h3 { margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; }
.prose li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.prose li::before { content: "—"; position: absolute; left: 0; color: var(--cyan); font-family: var(--font-mono); }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose code { font-family: var(--font-mono); font-size: 14px; background: rgba(31, 44, 69, 0.7); padding: 1px 6px; border-radius: var(--radius); }

/* ---------- 13. 图片容器基础规则 ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink-1);
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
}
.img-frame--4x3 { aspect-ratio: 4 / 3; }
.img-frame--1x1 { aspect-ratio: 1 / 1; }
.img-frame > img { width: 100%; height: 100%; object-fit: cover; }
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(53, 224, 208, 0.1), rgba(226, 59, 50, 0.06));
  mix-blend-mode: screen;
}
.img-frame--empty {
  background-image:
    repeating-linear-gradient(135deg, rgba(31, 44, 69, 0.9) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, var(--ink-1), var(--ink-0));
}
.img-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 10px;
  background: rgba(8, 13, 26, 0.86);
  border-top: 1px solid var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

/* ---------- 14. 显现动效 ---------- */
.reveal { opacity: 0; transform: translateY(4px); transition: opacity 0.32s ease, transform 0.32s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 15. 响应式：平板 ---------- */
@media (max-width: 1023px) {
  .grid--2-7-3,
  .grid--3-6-3,
  .grid--5-7 { grid-template-columns: minmax(0, 1fr); }
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .topbar__progress { height: 2px; }
}

/* ---------- 16. 响应式：移动端框架 ---------- */
@media (max-width: 899px) {
  :root { --rail-w: 0px; --topbar-h: 60px; --status-h: 32px; }

  body { padding-left: 0; }

  .rail {
    width: min(300px, 84vw);
    transform: translateX(-102%);
    transition: transform 0.24s ease;
    box-shadow: 24px 0 60px rgba(2, 6, 14, 0.62);
    padding: 14px 0 10px;
  }
  .rail[data-open] { transform: translateX(0); }
  .rail__mark { margin: 0 0 14px 20px; }
  .rail__list { display: block; }
  .rail__link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 13px 20px;
    border-left: 3px solid transparent;
  }
  .rail__link[aria-current="page"] { border-left-color: var(--red); }
  .rail__label { writing-mode: horizontal-tb; font-size: 15px; letter-spacing: 0.02em; }
  .rail__collect {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 20px 6px;
    font-size: 15px;
    border-top: 1px solid var(--ink-2);
  }

  .topbar { gap: 10px; }
  .brand__line { display: none; }
  .brand__name { font-size: 15px; }
  .topbar__actions .btn--ghost { display: none; }
  .topbar__actions .btn--primary { padding: 8px 12px; font-size: 13px; }

  .nav-toggle { display: inline-flex; flex: 0 0 auto; }

  .statusbar { justify-content: flex-start; }
  .statusbar__meta { margin-left: auto; }
  .statusbar__zone { display: none; }

  body.is-nav-open { overflow: hidden; }
}

/* ---------- 17. 响应式：小屏 ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; line-height: 26px; }
  .grid--halves { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statusbar__text { max-width: 58vw; }
  .brand__mark { display: none; }
  .topbar__actions .btn--primary { padding: 7px 10px; font-size: 12px; }
}

@media (max-width: 420px) {
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .topbar__actions { display: none; }
}

/* ---------- 18. 减少动效 ---------- */
@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;
  }
  .reveal { opacity: 1; transform: none; }
  .dot--live { animation: none; }
  .rail { transition: none; }
}

/* ---------- 19. 打印 ---------- */
@media print {
  .rail, .topbar, .statusbar, .nav-scrim, .skip-link { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
}
