/* ============================================================
   雷霆体育CN · 共享样式 /assets/site.css
   炭黑控制台底 + 电光蓝紫信号 + 琥珀金状态
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 10rem;
  background: #0B0D12;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, dl, dd, dt,
figure, figcaption, blockquote, pre {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

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

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

table { border-collapse: collapse; width: 100%; }

hr { border: 0; height: 0; }

::selection {
  background: #7A5CFF;
  color: #F2EFE8;
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 矿物 + 电光色板 */
  --ink: #0B0D12;
  --graphite: #141821;
  --stone: #2A2E36;
  --paper: #F2EFE8;
  --blue: #0B5FFF;
  --blue-deep: #0846C4;
  --violet: #7A5CFF;
  --cyan: #35E0D7;
  --amber: #FFB020;
  --moss: #6F7F5A;
  --clay: #B86B4B;
  --mist: #C9CED8;

  /* 语义层 */
  --bg: var(--ink);
  --bg-raise: var(--graphite);
  --bg-panel: var(--stone);
  --fg: var(--paper);
  --fg-soft: var(--mist);
  --fg-dim: rgba(201, 206, 216, 0.62);
  --line: rgba(201, 206, 216, 0.16);
  --line-strong: rgba(201, 206, 216, 0.34);
  --glass: rgba(11, 13, 18, 0.82);

  /* 字体 */
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace,
    SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --fs-index: 0.72rem;
  --fs-sm: 0.82rem;
  --fs-body: clamp(0.96rem, 0.9rem + 0.22vw, 1.08rem);

  /* 尺寸 */
  --shell: min(1280px, calc(100% - clamp(2rem, 7vw, 5.5rem)));
  --pad-y: clamp(2.6rem, 5vw, 4.4rem);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-offset: 9.5rem;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--fg);
  background-color: var(--ink);
  background-image:
    radial-gradient(1200px 620px at 84% -12%, rgba(11, 95, 255, 0.17), transparent 70%),
    radial-gradient(900px 520px at 6% 2%, rgba(122, 92, 255, 0.13), transparent 70%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { text-wrap: pretty; }

strong { font-weight: 700; }

code, kbd, samp, .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- 4. 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 1px;
}

.panel :focus-visible,
.btn:focus-visible {
  outline-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(53, 224, 215, 0.18);
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  display: inline-block;
  padding: 0.7rem 1.15rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--cyan);
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.22s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}

/* ---------- 5. 布局容器 ---------- */
.shell {
  width: var(--shell);
  margin-inline: auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.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; }

.prose {
  max-width: 68ch;
  color: var(--fg-soft);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2,
.prose h3 { color: var(--paper); margin-top: 2em; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(53, 224, 215, 0.42);
}

.prose a:hover { border-bottom-color: var(--cyan); }

.prose ul,
.prose ol { padding-left: 1.3em; }

.prose ul { list-style: square; }
.prose ol { list-style: decimal; }

.prose li + li { margin-top: 0.45em; }

/* ---------- 6. 头部 · 外层 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

/* --- 6.1 顶部信号条 --- */
.signal-bar {
  background: var(--graphite);
  border-bottom: 1px solid rgba(201, 206, 216, 0.08);
}

.signal-bar__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 3vw, 2rem);
  padding-block: 0.44rem;
  font-size: var(--fs-index);
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  transition: padding 0.3s var(--ease);
}

.signal-bar__zone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan);
  font-weight: 700;
  white-space: nowrap;
}

.signal-bar__pulse {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(53, 224, 215, 0.55);
  animation: signalPulse 2.8s ease-out infinite;
}

.signal-bar__meta {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fg-dim);
  transition: opacity 0.25s var(--ease);
}

.signal-bar__link {
  flex: 0 0 auto;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.signal-bar__link:hover {
  color: var(--paper);
  border-bottom-color: var(--blue);
}

/* --- 6.2 刊头 --- */
.masthead__inner {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.6rem);
  padding-block: clamp(0.85rem, 1.6vw, 1.4rem);
  transition: padding 0.32s var(--ease);
}

.masthead__index {
  justify-self: start;
  align-self: center;
  font-family: var(--font-mono);
  font-size: var(--fs-index);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  white-space: nowrap;
  transition: opacity 0.25s var(--ease);
}

.masthead__brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-inline: 0.25rem;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--paper);
  transition: font-size 0.32s var(--ease), color 0.2s var(--ease);
}

.masthead__brand:hover { color: #fff; }

.masthead__mark {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  background: linear-gradient(155deg, var(--cyan), var(--blue) 52%, var(--violet));
  clip-path: polygon(60% 0%, 16% 58%, 46% 58%, 36% 100%, 86% 40%, 54% 40%);
  filter: drop-shadow(0 0 8px rgba(11, 95, 255, 0.45));
}

.masthead__word { display: inline-flex; align-items: baseline; gap: 0.12em; }

.masthead__word em {
  font-style: normal;
  font-size: 0.52em;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  transform: translateY(-0.55em);
}

.masthead__side {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.1rem);
}

/* --- 6.3 置顶球队 --- */
.pinned-team {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.36rem 0.72rem;
  font-size: var(--fs-index);
  letter-spacing: 0.08em;
  color: var(--mist);
  background: rgba(42, 46, 54, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.pinned-team__label {
  font-size: 0.66rem;
  color: var(--fg-dim);
}

.pinned-team__name {
  font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.02em;
}

.pinned-team__state {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.pinned-team__state::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.16);
  animation: amberPulse 2.6s ease-in-out infinite;
}

/* --- 6.4 移动导航按钮 --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  font-size: var(--fs-index);
  letter-spacing: 0.14em;
  color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--blue);
  background: rgba(11, 95, 255, 0.14);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__text { line-height: 1; }

.site-header[data-open="true"] .nav-toggle {
  border-color: var(--violet);
  background: rgba(122, 92, 255, 0.18);
}

.site-header[data-open="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars i:nth-child(2) {
  opacity: 0;
}

.site-header[data-open="true"] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- 6.5 闪电分割线 --- */
.bolt-rule {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(11, 95, 255, 0.1) 10%,
    var(--blue) 32%,
    var(--violet) 54%,
    var(--cyan) 76%,
    rgba(53, 224, 215, 0.08) 92%,
    transparent 100%
  );
  animation: boltPulse 4.2s ease-in-out infinite;
}

/* --- 6.6 导航轨 --- */
.nav-rail {
  width: var(--shell);
  margin-inline: auto;
  transition: max-height 0.4s var(--ease);
}

.nav-rail__list {
  counter-reset: navcount;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: clamp(0.4rem, 2.2vw, 2.2rem);
}

.nav-rail__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.42rem;
  padding: 0.72rem 0.15rem 0.82rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--mist);
  transition: color 0.2s var(--ease);
}

.nav-rail__link::before {
  counter-increment: navcount;
  content: "0" counter(navcount);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: rgba(201, 206, 216, 0.42);
  transition: color 0.2s var(--ease);
}

.nav-rail__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.36rem;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s var(--ease);
}

.nav-rail__link:hover {
  color: var(--paper);
}

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

.nav-rail__link:hover::after { transform: scaleX(1); }

.nav-rail__link[aria-current="page"] {
  color: #fff;
  font-weight: 700;
}

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

.nav-rail__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--cyan), var(--blue) 60%, var(--violet));
}

/* --- 6.7 阅读进度 --- */
.progress-rail {
  position: relative;
  height: 2px;
  background: rgba(201, 206, 216, 0.1);
  overflow: hidden;
}

.progress-rail__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--blue), var(--violet) 55%, var(--cyan));
  will-change: transform;
}

/* --- 6.8 收缩态 --- */
.site-header[data-condensed="true"] .signal-bar__meta { opacity: 0; }

.site-header[data-condensed="true"] .masthead__inner {
  padding-block: 0.6rem;
}

.site-header[data-condensed="true"] .masthead__brand {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.site-header[data-condensed="true"] .masthead__index { opacity: 0; }

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  background: var(--graphite);
  border-top: 1px solid var(--line);
  color: var(--fg-soft);
}

.footer-flash {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--blue) 0%,
    var(--violet) 40%,
    var(--cyan) 74%,
    var(--amber) 100%
  );
  opacity: 0.9;
}

.site-footer__inner {
  width: var(--shell);
  margin-inline: auto;
  padding-block: var(--pad-y);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.45fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: start;
}

.footer-brand__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.24rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.footer-brand__mark {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  background: linear-gradient(155deg, var(--cyan), var(--blue) 55%, var(--violet));
  clip-path: polygon(60% 0%, 16% 58%, 46% 58%, 36% 100%, 86% 40%, 54% 40%);
}

.footer-brand__word { display: inline-flex; align-items: baseline; gap: 0.1em; }

.footer-brand__word em {
  font-style: normal;
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  transform: translateY(-0.5em);
}

.footer-brand__line {
  margin-top: 0.95rem;
  max-width: 30ch;
  font-size: 0.9rem;
  line-height: 1.78;
  color: var(--fg-dim);
}

.footer-brand__badge {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.68rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px solid rgba(53, 224, 215, 0.3);
  border-radius: 999px;
}

.footer-brand__dot {
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: var(--cyan);
}

.footer-col__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  padding-bottom: 0.7rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.footer-col__title::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 2px;
  margin-right: 0.5rem;
  vertical-align: middle;
  background: var(--violet);
}

.footer-col__list {
  display: grid;
  gap: 0.6rem;
  font-size: 0.86rem;
}

.footer-col__list a {
  color: var(--fg-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-col__list a:hover {
  color: var(--paper);
  border-bottom-color: var(--blue);
}

.footer-col__key {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 206, 216, 0.5);
}

.footer-col__val {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--fg-soft);
  overflow-wrap: anywhere;
}

.footer-col__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.15rem;
  padding: 0.52rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--amber);
  border-radius: var(--radius);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-col__cta::after {
  content: "→";
  font-family: var(--font-mono);
  transition: transform 0.2s var(--ease);
}

.footer-col__cta:hover {
  background: #ffc44d;
  transform: translateY(-1px);
}

.footer-col__cta:hover::after { transform: translateX(3px); }

.footer-col__reg {
  margin-top: 1.05rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
}

.site-footer__base {
  width: var(--shell);
  margin-inline: auto;
  padding-block: 1.15rem 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: rgba(201, 206, 216, 0.55);
}

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

.site-footer__note { color: rgba(201, 206, 216, 0.42); }

/* ---------- 8. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.3rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn--blue {
  color: var(--paper);
  background: var(--blue);
  border-color: var(--blue);
}

.btn--blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

.btn--violet {
  color: var(--paper);
  background: rgba(122, 92, 255, 0.18);
  border-color: var(--violet);
}

.btn--violet:hover { background: var(--violet); }

.btn--amber {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

.btn--amber:hover { background: #ffc44d; border-color: #ffc44d; }

.btn--ghost {
  color: var(--paper);
  background: transparent;
  border-color: var(--line-strong);
}

.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- 9. 索引、标签、面包屑 ---------- */
.index-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-index);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.index-label::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--mist);
  background: rgba(42, 46, 54, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.tag--cyan { color: var(--cyan); border-color: rgba(53, 224, 215, 0.4); }
.tag--amber { color: var(--amber); border-color: rgba(255, 176, 32, 0.4); }
.tag--moss { color: #9dae86; border-color: rgba(111, 127, 90, 0.55); }
.tag--clay { color: #d99274; border-color: rgba(184, 107, 75, 0.55); }
.tag--violet { color: var(--violet); border-color: rgba(122, 92, 255, 0.45); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding-block: 1.1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-index);
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}

.crumbs__item { display: inline-flex; align-items: center; gap: 0.45rem; }

.crumbs__item + .crumbs__item::before {
  content: "／";
  color: rgba(201, 206, 216, 0.3);
}

.crumbs a {
  color: var(--fg-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.crumbs a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.crumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 10. 数据面板 ---------- */
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease);
}

.panel:hover {
  border-color: rgba(11, 95, 255, 0.55);
  transform: translateY(-2px);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.panel__body {
  flex: 1 1 auto;
  padding: 1rem;
  font-size: 0.92rem;
  color: var(--fg-soft);
}

.panel__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(201, 206, 216, 0.5);
}

.panel--paper {
  background: var(--paper);
  color: var(--ink);
  border-color: rgba(11, 13, 18, 0.14);
}

.panel--paper .panel__head,
.panel--paper .panel__meta {
  color: rgba(11, 13, 18, 0.55);
  border-color: rgba(11, 13, 18, 0.14);
}

.panel--paper .panel__body { color: rgba(11, 13, 18, 0.82); }

/* ---------- 11. 章节标题与锚点目录 ---------- */
.section-heading {
  display: grid;
  gap: 0.65rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.section-heading__num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  color: rgba(201, 206, 216, 0.26);
}

.section-heading__title {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--paper);
}

.section-heading__desc {
  max-width: 58ch;
  font-size: 0.95rem;
  color: var(--fg-dim);
}

.chapter-nav {
  position: sticky;
  top: calc(var(--header-offset) + 1rem);
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.chapter-nav a {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.48rem 0.55rem;
  font-size: 0.84rem;
  color: var(--fg-dim);
  border-left: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.chapter-nav a:hover {
  color: var(--paper);
  background: rgba(42, 46, 54, 0.6);
}

.chapter-nav a[aria-current="true"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(53, 224, 215, 0.08);
}

/* ---------- 12. 图片容器基础规则 ---------- */
.figure-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(155deg, var(--stone) 0%, var(--graphite) 58%, #0d1016 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.figure-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 85% at 80% 8%, rgba(11, 95, 255, 0.34), transparent 62%),
    radial-gradient(95% 75% at 10% 92%, rgba(122, 92, 255, 0.28), transparent 68%),
    linear-gradient(120deg, transparent 42%, rgba(53, 224, 215, 0.16) 50%, transparent 58%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(201, 206, 216, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 206, 216, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: 0.7;
}

.figure-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.figure-frame--wide { aspect-ratio: 21 / 9; }
.figure-frame--soft { aspect-ratio: 4 / 3; }
.figure-frame--square { aspect-ratio: 1 / 1; }
.figure-frame--tall { aspect-ratio: 3 / 4; }

.figure-frame--paper {
  background: linear-gradient(155deg, #e9e4da 0%, var(--paper) 100%);
  border-color: rgba(11, 13, 18, 0.12);
}

.figure-frame--paper::before {
  background:
    radial-gradient(100% 80% at 82% 10%, rgba(11, 95, 255, 0.14), transparent 64%),
    radial-gradient(90% 70% at 8% 90%, rgba(184, 107, 75, 0.16), transparent 68%);
}

.figure-frame--paper::after { opacity: 0.35; }

.figure-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 1.4rem 1rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--mist);
  background: linear-gradient(to top, rgba(11, 13, 18, 0.9), transparent);
}

/* ---------- 13. 动效 ---------- */
@keyframes signalPulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 224, 215, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(53, 224, 215, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 224, 215, 0); }
}

@keyframes amberPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.16); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(255, 176, 32, 0.06); }
}

@keyframes boltPulse {
  0%, 100% { opacity: 0.62; }
  50% { opacity: 1; }
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1100px) {
  :root { --header-offset: 9rem; }

  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1.4fr;
  }

  .footer-col:last-child { grid-column: span 3; }
}

@media (max-width: 860px) {
  :root {
    --header-offset: 7.6rem;
    --pad-y: clamp(2.2rem, 6vw, 3.2rem);
  }

  html { scroll-padding-top: 8.5rem; }

  .masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: 0.72rem;
    gap: 0.6rem;
  }

  .masthead__index { display: none; }

  .masthead__brand {
    justify-self: start;
    font-size: 1.4rem;
  }

  .masthead__side { justify-self: end; }

  .pinned-team { display: none; }

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

  .nav-rail {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.4s var(--ease), visibility 0s linear 0.4s;
  }

  .site-header[data-open="true"] .nav-rail {
    max-height: 30rem;
    visibility: visible;
    transition: max-height 0.4s var(--ease), visibility 0s linear 0s;
  }

  .nav-rail__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding-bottom: 0.8rem;
  }

  .nav-rail__link {
    justify-content: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 0.15rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.98rem;
  }

  .nav-rail__link::after {
    left: 0;
    right: auto;
    bottom: -1px;
    width: 100%;
    transform-origin: left center;
  }

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

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

  .chapter-nav {
    position: static;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 0 1rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
  }

  .footer-col:last-child { grid-column: span 2; }

  .footer-brand { grid-column: span 2; }

  .site-footer__base {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

@media (max-width: 560px) {
  :root { --fs-body: 1rem; }

  .signal-bar__inner {
    gap: 0.6rem;
    padding-block: 0.4rem;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  .signal-bar__meta { display: none; }

  .signal-bar__link { margin-left: auto; }

  .masthead__brand { font-size: 1.22rem; }

  .masthead__word em { font-size: 0.48em; }

  .grid-12 { grid-template-columns: 1fr; }

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

  .site-footer__inner { grid-template-columns: 1fr; }

  .footer-col:last-child,
  .footer-brand { grid-column: span 1; }

  .figure-frame { aspect-ratio: 4 / 3; }

  .figure-frame--wide { aspect-ratio: 16 / 9; }
}

/* ---------- 15. 降低动效 ---------- */
@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;
  }

  .panel:hover,
  .btn:hover,
  .footer-col__cta:hover { transform: none; }
}
