/* ============================================================
   WM电子游戏 · 全站共享样式 /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, h6, p, ul, ol, li, figure, blockquote, dl, dd, hr {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

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

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

button { background: none; border: 0; cursor: pointer; padding: 0; }

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; border-spacing: 0; }

:focus-visible {
  outline: 2px solid #00E5FF;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 色彩 */
  --bg: #05070E;
  --panel: #0B1220;
  --row: #141C2E;
  --text: #E8F1FF;
  --muted: #93A6C4;
  --cyan: #00E5FF;
  --magenta: #FF3DAE;
  --amber: #FFB020;
  --violet: #7A5CFF;
  --green: #22E0A1;
  --coral: #FF5A5F;

  --line: rgba(0, 229, 255, 0.22);
  --line-soft: rgba(147, 166, 196, 0.16);
  --line-row: rgba(147, 166, 196, 0.10);

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

  /* 尺度 */
  --shell: 1320px;
  --gutter: clamp(16px, 4vw, 44px);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --header-h: 68px;
  --ease: cubic-bezier(0.24, 0.62, 0.34, 1);
}

/* ---------- 3. 基底与中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(920px 540px at 10% -10%, rgba(0, 229, 255, 0.10), transparent 62%),
    radial-gradient(780px 520px at 94% 2%, rgba(122, 92, 255, 0.13), transparent 60%),
    radial-gradient(620px 460px at 68% 104%, rgba(255, 61, 174, 0.08), transparent 62%);
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(232, 241, 255, 0.035) 0 1px, transparent 1px 4px);
  opacity: 0.55;
}

::selection { background: rgba(0, 229, 255, 0.3); color: #ffffff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(34px, 5.6vw, 72px); }
h2 { font-size: clamp(26px, 3.4vw, 44px); }
h3 { font-size: clamp(19px, 2vw, 26px); }
h4 { font-size: 17px; }

p { max-width: 68ch; }

.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
  line-height: 1.85;
}

.link {
  color: var(--cyan);
  border-bottom: 1px solid rgba(0, 229, 255, 0.4);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.link:hover { color: #9df6ff; border-color: rgba(0, 229, 255, 0.85); }

/* ---------- 4. 工具类 ---------- */
.u-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.u-mono { font-family: var(--font-mono); }

.stack { display: grid; gap: clamp(14px, 2vw, 22px); }

.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 224, 161, 0.16), 0 0 12px rgba(34, 224, 161, 0.7);
  animation: dot-pulse 2.4s var(--ease) infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ---------- 5. 布局骨架 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: 880px; }

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

.grid { display: grid; gap: clamp(14px, 2vw, 22px); }

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

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* ---------- 6. 跳至主内容 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: calc(var(--gutter) * 0.5);
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--cyan);
  color: #04121A;
  font-size: 14px;
  font-weight: 700;
  transition: top 0.18s var(--ease);
}

.skip-link:focus { top: 0; }

/* ---------- 7. 头部：导航即画框 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(5, 7, 14, 0.97), rgba(5, 7, 14, 0.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.6) 18%, rgba(255, 61, 174, 0.45) 54%, rgba(122, 92, 255, 0.55) 80%, transparent);
  pointer-events: none;
}

.progress-rail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(232, 241, 255, 0.06);
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--magenta));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
  transition: transform 0.12s linear;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  min-height: var(--header-h);
  padding: 9px var(--gutter);
}

.header-inner::before,
.header-inner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.35), transparent);
  pointer-events: none;
}

.header-inner::before { left: 0; }
.header-inner::after { right: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  transition: opacity 0.18s var(--ease);
}

.brand:hover { opacity: 0.86; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 229, 255, 0.42);
  border-radius: 11px;
  background: linear-gradient(150deg, rgba(0, 229, 255, 0.16), rgba(122, 92, 255, 0.12));
  box-shadow: inset 0 0 14px rgba(0, 229, 255, 0.18), 0 0 18px rgba(0, 229, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.brand--footer { margin-bottom: 2px; }

/* 导航 */
.site-nav { flex: 1 1 auto; display: flex; justify-content: center; }

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.nav-link::before {
  content: attr(data-idx);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(147, 166, 196, 0.7);
  transition: color 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(0, 229, 255, 0.07);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
}

.nav-link:hover::before { color: var(--cyan); }

.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.48);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.22);
}

.nav-link[aria-current="page"]::before { color: var(--amber); }

.header-aside {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.refresh-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: none;
  padding: 6px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(20, 28, 46, 0.6);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 44px;
  height: 38px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  border-radius: var(--radius-sm);
  background: rgba(11, 18, 32, 0.85);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.nav-toggle:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(0, 229, 255, 0.28); }

.nav-toggle-bars { display: flex; flex-direction: column; gap: 4px; }

.nav-toggle-bar {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

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

.nav-toggle-label { font-size: 9px; letter-spacing: 0.14em; color: var(--muted); font-family: var(--font-mono); }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, var(--cyan), #4ff0ff);
  color: #04121A;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.34);
}

.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 0 34px rgba(0, 229, 255, 0.6); }

.btn--ghost {
  background: rgba(11, 18, 32, 0.72);
  border-color: rgba(0, 229, 255, 0.32);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.28);
}

.btn--amber {
  background: rgba(255, 176, 32, 0.12);
  border-color: rgba(255, 176, 32, 0.5);
  color: var(--amber);
}

.btn--amber:hover { box-shadow: 0 0 22px rgba(255, 176, 32, 0.35); }

.btn--sm { padding: 7px 13px; font-size: 12.5px; border-radius: 8px; }

.btn--block { width: 100%; }

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.88), rgba(5, 7, 14, 0.99));
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5) 22%, rgba(122, 92, 255, 0.5) 58%, rgba(255, 61, 174, 0.4) 82%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1.15fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(36px, 6vw, 64px) var(--gutter) clamp(22px, 4vw, 34px);
}

.footer-col { min-width: 0; }

.footer-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-lede {
  max-width: 34ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: none;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.footer-list { display: grid; gap: 9px; }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 14.5px;
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}

.footer-link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.4);
  flex: 0 0 auto;
  transition: background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.footer-link:hover { color: var(--cyan); transform: translateX(3px); }
.footer-link:hover::before { background: var(--cyan); box-shadow: 0 0 10px rgba(0, 229, 255, 0.8); }

.footer-list--contact,
.footer-list--legal { gap: 12px; }

.footer-contact-item,
.footer-legal-item {
  display: grid;
  gap: 3px;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(147, 166, 196, 0.8);
}

.footer-value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text);
  word-break: break-word;
  transition: color 0.16s var(--ease), text-shadow 0.16s var(--ease);
}

a.footer-value:hover { color: var(--cyan); text-shadow: 0 0 14px rgba(0, 229, 255, 0.5); }

.footer-value--plain { color: var(--muted); font-size: 13px; line-height: 1.7; }

.footer-note {
  max-width: 30ch;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-row);
  color: rgba(147, 166, 196, 0.85);
  font-size: 12.5px;
  line-height: 1.75;
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 16px var(--gutter) 28px;
  border-top: 1px solid var(--line-row);
}

.footer-base-note {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  max-width: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.back-to-top { white-space: nowrap; }

/* ---------- 10. 面板 / 卡片 / 标签 ---------- */
.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(11, 18, 32, 0.95), rgba(7, 11, 20, 0.92));
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 190px at 100% 0, rgba(0, 229, 255, 0.1), transparent 72%);
  pointer-events: none;
}

.panel--flat { background: var(--panel); }
.panel--tint-cyan { border-color: rgba(0, 229, 255, 0.32); }
.panel--tint-magenta { border-color: rgba(255, 61, 174, 0.3); }
.panel--tint-violet { border-color: rgba(122, 92, 255, 0.34); }

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-row);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(11, 18, 32, 0.95), rgba(7, 11, 20, 0.9));
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.card-title {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid;
  border-radius: 999px;
  background: rgba(20, 28, 46, 0.7);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--cyan { color: var(--cyan); border-color: rgba(0, 229, 255, 0.45); }
.badge--magenta { color: var(--magenta); border-color: rgba(255, 61, 174, 0.45); }
.badge--amber { color: var(--amber); border-color: rgba(255, 176, 32, 0.45); }
.badge--violet { color: #A893FF; border-color: rgba(122, 92, 255, 0.5); }
.badge--green { color: var(--green); border-color: rgba(34, 224, 161, 0.45); }
.badge--coral { color: var(--coral); border-color: rgba(255, 90, 95, 0.45); }

/* ---------- 11. 数字与指标 ---------- */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.num--lg { font-size: clamp(34px, 5vw, 64px); line-height: 1; }

.num--xl { font-size: clamp(56px, 11vw, 120px); font-weight: 700; line-height: 0.95; }

.is-glow { color: var(--text); text-shadow: 0 0 24px rgba(0, 229, 255, 0.45); }

.is-amber { color: var(--amber); text-shadow: 0 0 20px rgba(255, 176, 32, 0.45); }

.kpi { display: flex; flex-direction: column; gap: 4px; }

.kpi-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.1;
  color: var(--text);
}

.kpi-unit {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 12. 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: rgba(11, 18, 32, 0.75);
}

.data-table { width: 100%; min-width: 560px; font-size: 15px; }

.data-table caption {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-align: left;
}

.data-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-row);
  vertical-align: middle;
}

.data-table tbody tr:nth-child(even) { background: var(--row); }

.data-table tbody tr:hover { background: rgba(0, 229, 255, 0.07); }

.t-time { font-family: var(--font-mono); color: var(--amber); }

.t-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- 13. 时间线与索引 ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--violet) 58%, transparent);
}

.timeline-item { position: relative; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 9px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--violet);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 12px rgba(122, 92, 255, 0.7);
}

.timeline-item[data-state="live"]::before {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(34, 224, 161, 0.8);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.index-list { display: grid; gap: 8px; }

.index-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14.5px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.index-item:hover {
  color: var(--text);
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.3);
}

.index-item.is-active {
  color: var(--text);
  background: rgba(255, 176, 32, 0.08);
  border-color: rgba(255, 176, 32, 0.5);
}

.index-no {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--violet);
}

/* ---------- 14. 章节头点亮 ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  transition: text-shadow 0.3s var(--ease);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--violet);
  transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: text-shadow 0.3s var(--ease);
}

.section-lede { max-width: 62ch; margin-top: 6px; color: var(--muted); }

.section.is-lit .section-num { color: var(--amber); text-shadow: 0 0 14px rgba(255, 176, 32, 0.55); }
.section.is-lit .eyebrow { text-shadow: 0 0 16px rgba(0, 229, 255, 0.5); }
.section.is-lit .section-title { text-shadow: 0 0 30px rgba(0, 229, 255, 0.22); }

/* ---------- 15. 图片容器 ---------- */
.media {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background:
    linear-gradient(140deg, rgba(20, 28, 46, 0.92), rgba(5, 7, 14, 0.96) 65%),
    radial-gradient(70% 90% at 82% 12%, rgba(0, 229, 255, 0.18), transparent 70%);
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.6;
  pointer-events: none;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(60% 70% at 78% 12%, rgba(255, 61, 174, 0.14), transparent 72%);
  pointer-events: none;
}

.media > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--auto { min-height: 180px; }

.media-grid {
  display: grid;
  gap: clamp(12px, 1.6vw, 18px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.media-caption {
  max-width: none;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* ---------- 16. 面包屑 ---------- */
.breadcrumb {
  padding-top: clamp(16px, 2.4vw, 26px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }

.breadcrumb li + li::before {
  content: "/";
  color: rgba(147, 166, 196, 0.45);
}

.breadcrumb a { color: var(--muted); transition: color 0.16s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--amber); }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1180px) {
  .refresh-status { display: none; }
}

@media (max-width: 1024px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-3, .col-4 { grid-column: span 3; }
  .col-5, .col-6, .col-7, .col-8, .col-9, .col-12 { grid-column: span 6; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: block;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 10px var(--gutter) 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.99), rgba(5, 7, 14, 0.99));
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.62);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s var(--ease);
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 5px;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 12px 14px;
    border: 1px solid rgba(147, 166, 196, 0.14);
    font-size: 16px;
  }

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

  .header-inner::before,
  .header-inner::after { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }

  .grid--12 { grid-template-columns: 1fr; }
  .grid--12 > * { grid-column: 1 / -1 !important; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-lede, .footer-note { max-width: none; }
  .footer-base { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .brand-sub { display: none; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 12px; }
  .brand-name { font-size: 15.5px; }
  .header-aside { gap: 8px; }
}

/* ---------- 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;
    scroll-behavior: auto !important;
  }

  .status-dot { animation: none; opacity: 1; transform: none; }
  .card:hover { transform: none; }
  .footer-link:hover { transform: none; }
  .btn--primary:hover { transform: none; }
}
