/* ==========================================================================
   OPEBET赛事 — 共享外壳样式 /assets/site.css
   深靛蓝铺底 · 印刷边框 · 坐标索引 · 仪表盘观感
   ========================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; }

/* ---------- tokens ---------- */
:root {
  --ink: #0B1030;
  --ink-2: #161D45;
  --line: #2B3670;
  --cyan: #31E1D2;
  --orange: #FF8A3D;
  --green: #7BF26B;
  --white: #F4F7FF;
  --muted: #9AA8CC;
  --deep: #06231F;
  --rise: #1B2A6B;
  --rail-w: 72px;
  --shell: 1220px;
  --gap: 24px;
  --font-display: "Archivo Narrow", "Inter", system-ui, -apple-system, "Segoe UI", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
}

/* ---------- base ---------- */
html { scroll-padding-top: 130px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  min-height: 100vh;
}
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
a { color: var(--cyan); }
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
::selection { background: var(--cyan); color: var(--deep); }

/* ---------- 布局容器 ---------- */
.wrap { width: min(100% - 48px, var(--shell)); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: min(100% - 32px, var(--shell)); } }

.page-head { padding: 46px 0 30px; border-bottom: 1px solid var(--line); }
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.page-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 14px;
}
.lede { margin-top: 18px; font-size: 18px; color: #C8D2EF; max-width: 64ch; }

.prose { max-width: 68ch; color: #D7DEF2; }
.prose p { margin-bottom: 1.15em; }
.prose h3 {
  font-size: 22px;
  margin: 1.7em 0 0.6em;
  color: var(--white);
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.15em 1.2em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--cyan); }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: rgba(43, 54, 112, 0.45);
  border: 1px solid var(--line);
  padding: 1px 6px;
}

/* ---------- 网格 ---------- */
.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--asym { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--asym-rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4, .grid--asym, .grid--asym-rev {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 章节 ---------- */
.section {
  position: relative;
  padding: 68px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 130px;
}
.section--slice { background: var(--ink-2); }
.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 18px;
  align-items: baseline;
  margin-bottom: 26px;
}
.section-coord {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  transition: color 0.18s ease;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.1;
  transition: color 0.18s ease;
}
.section-label {
  grid-column: 1 / -1;
  order: -1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.section[data-active] .section-title { color: var(--cyan); }
.section[data-active] .section-coord { color: var(--white); }

/* ---------- 卡片 / 印刷边框 ---------- */
.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 22px;
}
.card--panel { padding: 26px; }
.card--flat { background: transparent; }
.card-title { font-size: 20px; margin-bottom: 10px; }
.card-text { color: var(--muted); font-size: 15px; }
.card-tag {
  position: absolute;
  top: -11px;
  left: 16px;
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 2px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}
.print-frame { position: relative; border: 1px solid var(--line); }
.print-frame::before,
.print-frame::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid var(--cyan);
  opacity: 0.55;
  pointer-events: none;
}
.print-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.print-frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: rgba(22, 29, 69, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.tag--cyan { color: var(--cyan); border-color: var(--cyan); }
.tag--orange { color: var(--orange); border-color: var(--orange); }
.tag--green { color: var(--green); border-color: rgba(123, 242, 107, 0.6); }
.tag--f7ke {
  color: var(--orange);
  border-color: rgba(255, 138, 61, 0.55);
  background: rgba(255, 138, 61, 0.08);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--primary { background: var(--orange); border-color: var(--orange); color: var(--deep); }
.btn--primary:hover { background: #FFA365; border-color: #FFA365; }
.btn--cyan { background: var(--cyan); border-color: var(--cyan); color: var(--deep); }
.btn--cyan:hover { background: #63ECE0; border-color: #63ECE0; }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- 面包屑 ---------- */
.breadcrumbs { padding: 14px 0 0; }
.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.breadcrumbs-list li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs-list li::after { content: "/"; color: var(--line); }
.breadcrumbs-list li:last-child::after { content: ""; }
.breadcrumbs-list a { color: var(--muted); text-decoration: none; }
.breadcrumbs-list a:hover { color: var(--cyan); }
.breadcrumbs-list [aria-current="page"] { color: var(--white); }

/* ---------- 数据表 ---------- */
.table-frame {
  border: 1px solid var(--line);
  background: var(--ink-2);
  overflow-x: auto;
}
.data-table { width: 100%; min-width: 520px; font-size: 14px; }
.data-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.data-table th,
.data-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(43, 54, 112, 0.6);
}
.data-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(43, 54, 112, 0.28);
}
.data-table tbody tr:nth-child(even) { background: rgba(43, 54, 112, 0.16); }
.data-table tbody tr:hover { background: rgba(49, 225, 210, 0.06); }
.data-table td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

/* ---------- 数字指标 ---------- */
.stat { border-left: 2px solid var(--cyan); padding: 2px 0 2px 14px; }
.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  color: var(--white);
}
.stat-label { display: block; margin-top: 4px; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }

/* ---------- 时间轴（订阅） ---------- */
.timeline { border-left: 1px solid var(--line); padding-left: 22px; }
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--cyan);
}
.timeline-item[data-state="done"]::before { background: var(--green); border-color: var(--green); }
.timeline-time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.timeline-title { font-size: 17px; margin: 6px 0 4px; }
.timeline-text { color: var(--muted); font-size: 14px; }

/* ---------- 步骤流（导出） ---------- */
.steps-flow {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.steps-flow .step { background: var(--ink-2); padding: 20px; }
.step-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}
.step-title { font-size: 17px; margin: 8px 0 6px; }
.step-text { font-size: 14px; color: var(--muted); }

/* ---------- 通道状态条 ---------- */
.status-bar {
  position: relative;
  height: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--rise), rgba(11, 16, 48, 0.25));
  overflow: hidden;
}
.status-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(49, 225, 210, 0.55), transparent);
  animation: statusFlow 8s linear infinite;
}
@keyframes statusFlow {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ---------- 标签页 / 筛选 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tab {
  flex: 1 1 auto;
  padding: 12px 16px;
  border: 0;
  background: var(--ink-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.tab:hover { color: var(--white); }
.tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--cyan);
  box-shadow: inset 0 -2px 0 var(--cyan);
}
.tab-panel { padding: 22px 0; }
.tab-panel[hidden] { display: none; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.filter-btn:hover { color: var(--white); }
.filter-btn[aria-pressed="true"] {
  background: rgba(49, 225, 210, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- 图片容器（页面阶段放图） ---------- */
.figure {
  position: relative;
  border: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
}
.figure::before,
.figure::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid var(--cyan);
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
}
.figure::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.figure::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.figure-media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(27, 42, 107, 0.85), rgba(11, 16, 48, 0.25));
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}
.figure-media--wide { aspect-ratio: 21 / 9; }
.figure-media--square { aspect-ratio: 1 / 1; }
.figure-media img { width: 100%; height: 100%; object-fit: cover; }
.figure-cap {
  display: block;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 显现动效 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.has-js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  left: calc(var(--rail-w) + 18px);
  bottom: 18px;
  z-index: 65;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, color 0.18s ease, border-color 0.18s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { color: var(--cyan); border-color: var(--cyan); }
@media (max-width: 1023px) { .to-top { left: 18px; } }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--deep);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 阅读进度 ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 80;
  background: rgba(43, 54, 112, 0.55);
  pointer-events: none;
}
@media (min-width: 1024px) { .read-progress { left: var(--rail-w); } }
.read-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

/* ---------- 左侧品牌轨道 ---------- */
.brand-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 70;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0;
  background: var(--ink);
  border-right: 1px solid var(--line);
}
@media (min-width: 1024px) { .brand-rail { display: flex; } }
.rail-logo {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail-ticks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.rail-tick {
  width: 36px;
  padding: 5px 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.rail-tick:hover { color: var(--white); border-color: var(--line); }
.rail-tick[data-active] { color: var(--cyan); border-color: var(--cyan); }
.rail-coord { font-size: 12px; color: var(--cyan); }

/* ---------- 刊头 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 16, 48, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
  padding: 30px 0 0;
  transition: padding 0.22s ease;
}
.masthead[data-stuck] .masthead-inner { padding-top: 10px; }
.masthead-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.masthead-meta {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: opacity 0.2s ease;
}
.masthead-brand {
  justify-self: center;
  display: inline-flex;
  align-items: baseline;
  gap: 0.14em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 5.6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  transition: font-size 0.22s ease;
}
.brand-cn {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.4em;
  letter-spacing: 0.06em;
  color: var(--cyan);
}
.masthead[data-stuck] .brand-word { font-size: clamp(19px, 2vw, 24px); }
.masthead-side {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.masthead-deck {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  max-height: 30px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.22s ease, opacity 0.22s ease, margin 0.22s ease;
}
.masthead[data-stuck] .masthead-deck { max-height: 0; opacity: 0; margin-top: 0; }

/* ---------- 导航 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}
.nav-toggle:hover { color: var(--cyan); border-color: var(--cyan); }
.nav-toggle-text { padding-top: 1px; }

.site-nav { margin-top: 16px; border-top: 1px solid var(--line); }
.site-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 2px;
}
.site-nav-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.site-nav-list a:hover { color: var(--white); }
.site-nav-list a[aria-current="page"] { color: var(--cyan); border-bottom-color: var(--cyan); }
.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--line);
}
.site-nav-list a[aria-current="page"] .nav-index { color: var(--cyan); }

@media (max-width: 900px) {
  .masthead-inner { padding-top: 18px; }
  .masthead-meta { display: none; }
  .masthead-deck { display: none; }
  .masthead[data-stuck] .brand-word { font-size: clamp(18px, 5vw, 22px); }
  .tag--f7ke { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    margin-top: 14px;
    padding-bottom: 10px;
  }
  .site-nav[data-open] { display: block; }
  .site-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav-list a {
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .site-nav-list a[aria-current="page"] { border-bottom-color: var(--cyan); }
}

/* ---------- 浮动状态面板 ---------- */
.utility-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 65;
  width: 236px;
  padding: 14px;
  background: rgba(22, 29, 69, 0.95);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  font-size: 12px;
}
.utility-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.utility-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(123, 242, 107, 0.15);
}
.utility-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.utility-state {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
}
.utility-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px 10px;
  align-items: center;
  margin-top: 12px;
}
.utility-list dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.utility-list dd { margin: 0; min-width: 0; }
.utility-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.utility-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}
.utility-toggle[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--deep);
}
.utility-toggle[aria-pressed="true"] .utility-bullet { background: var(--deep); }
.copy-btn {
  padding: 2px 0;
  border: 0;
  border-bottom: 1px dashed rgba(49, 225, 210, 0.4);
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.copy-btn:hover { color: var(--white); border-bottom-color: var(--white); }
.copy-btn[data-copied] { color: var(--green); border-bottom-color: var(--green); }
.utility-note {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.utility-note[data-open="true"] { color: var(--green); }

@media (max-width: 900px) {
  .utility-panel {
    position: static;
    width: min(100% - 32px, var(--shell));
    margin: 18px auto 0;
    box-shadow: none;
  }
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.footer-inner {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
  padding-top: 56px;
}
@media (max-width: 600px) {
  .footer-inner { width: min(100% - 32px, var(--shell)); }
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.footer-brand-word {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.footer-brand-cn {
  margin-left: 0.16em;
  font-size: 0.42em;
  letter-spacing: 0.08em;
  color: var(--cyan);
}
.footer-tagline {
  margin-top: 10px;
  max-width: 46ch;
  font-size: 13px;
  color: var(--muted);
}
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
  padding: 40px 0 44px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-list { display: flex; flex-direction: column; gap: 10px; }
.footer-list a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-list a:hover { color: var(--white); }
.footer-text {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.footer-legal-line { white-space: nowrap; }

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .has-js [data-reveal] { opacity: 1; transform: none; }
  .status-bar::after { display: none; }
}
