/* ============================================================
   中欧体育看台 · 共享站点样式 /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, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
table { width: 100%; border-collapse: collapse; }
hr { border: 0; }

/* ---------- 2. tokens ---------- */
:root {
  --deep: #0B1B33;
  --midnight: #12294A;
  --cyan: #22D3EE;
  --cyan-mist: #7FE0EA;
  --cyan-deep: #0E7490;
  --orange: #FF6B2C;
  --cream: #F7F1E4;
  --sand: #EADFC8;
  --ink: #2A211C;
  --graphite: #5B6472;
  --glass: rgba(255, 255, 255, 0.10);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --line-cyan: rgba(34, 211, 238, 0.28);
  --line-cyan-soft: rgba(34, 211, 238, 0.16);
  --line-ink: rgba(42, 33, 28, 0.14);
  --on-dark: rgba(247, 241, 228, 0.82);
  --on-dark-dim: rgba(247, 241, 228, 0.60);

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

  --header-h: 56px;
  --rail: 150px;
  --nav-w: 112px;
  --maxw: 1280px;
  --gap: clamp(14px, 1.8vw, 26px);
  --pad: clamp(16px, 4vw, 32px);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-1: 0 10px 30px rgba(6, 16, 30, 0.20);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 中文排版基线 ---------- */
body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 5.4vw, 64px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: 20px; }
p  { line-height: 1.75; }

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

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--cream :focus-visible,
.section--sand :focus-visible,
main :focus-visible { outline-color: var(--cyan-deep); }

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

.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.accent-cyan { color: var(--cyan-deep); }
.accent-orange { color: #C4470F; }
.section--dark .accent-cyan, .section--midnight .accent-cyan { color: var(--cyan); }
.section--dark .accent-orange, .section--midnight .accent-orange { color: var(--orange); }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: var(--deep);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. 头部外壳 ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 80; }

.nav-rail { display: none; }

.topbar {
  height: var(--header-h);
  background: rgba(11, 27, 51, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line-cyan-soft);
  color: var(--cream);
  transition: height 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
}
.site-header.is-condensed .topbar {
  height: 44px;
  background: rgba(6, 15, 30, 0.95);
  border-bottom-color: rgba(34, 211, 238, 0.34);
}
.topbar__inner {
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--cream);
  transition: background 0.18s var(--ease);
}
.brand:hover { background: rgba(34, 211, 238, 0.12); }
.brand__mark { display: block; width: 32px; height: 24px; flex: 0 0 auto; }
.brand__mark svg { width: 100%; height: 100%; overflow: visible; }
.brand__mark-solid { fill: rgba(34, 211, 238, 0.20); stroke: var(--cyan); stroke-width: 1.4; stroke-linejoin: round; }
.brand__mark-line { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand__text { display: flex; flex-direction: column; line-height: 1.08; }
.brand__name { font-size: 16px; font-weight: 900; letter-spacing: -0.01em; }
.brand__cert { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--cyan-mist); }
.site-header.is-condensed .brand__cert { display: none; }

/* 快捷入口 */
.quicklinks { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.quicklink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--on-dark);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.quicklink:hover { background: rgba(34, 211, 238, 0.14); border-color: rgba(34, 211, 238, 0.45); color: var(--cream); }
.quicklink--accent { background: var(--orange); color: #2A1206; }
.quicklink--accent:hover { background: #FF8149; color: #2A1206; border-color: transparent; }
.quicklink__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.22);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(34, 211, 238, 0.42);
  background: var(--glass);
  color: var(--cream);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-toggle:hover { background: rgba(34, 211, 238, 0.18); border-color: var(--cyan); }
.nav-toggle__bars { position: relative; display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: background 0.2s var(--ease); }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute; left: 0;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__label { white-space: nowrap; }

/* 进度光带 */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  pointer-events: none;
  background: rgba(34, 211, 238, 0.10);
}
.scroll-progress__bar {
  display: block;
  width: 100%; height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-mist) 55%, var(--orange) 100%);
}

/* 胶囊导航 —— 移动端默认：底部胶囊条 */
.capsule-nav {
  position: fixed;
  z-index: 90;
  left: 12px; right: 12px; bottom: 12px;
  padding: 7px;
  border-radius: var(--r-pill);
  background: rgba(8, 19, 37, 0.90);
  border: 1px solid rgba(34, 211, 238, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 18px 40px rgba(4, 12, 24, 0.48);
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(100% + 28px));
  transition: transform 0.26s var(--ease), opacity 0.26s var(--ease), visibility 0s linear 0.26s;
}
.capsule-nav[data-open] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: transform 0.26s var(--ease), opacity 0.26s var(--ease), visibility 0s;
}
.capsule-nav__list {
  display: flex;
  gap: 6px;
  padding: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.capsule-nav__item { flex: 0 0 auto; }
.capsule-nav__link {
  display: block;
  white-space: nowrap;
  padding: 10px 15px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  color: var(--on-dark);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.capsule-nav__link:hover { background: rgba(34, 211, 238, 0.14); border-color: rgba(34, 211, 238, 0.45); color: var(--cream); }
.capsule-nav__link[aria-current="page"] { background: var(--cyan); border-color: var(--cyan); color: var(--deep); }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  padding: clamp(40px, 6vw, 76px) 0 26px;
  background: var(--deep);
  color: var(--on-dark);
  border-top: 1px solid var(--line-cyan-soft);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(34, 211, 238, 0) 55%, var(--orange) 100%);
}
.footer__inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(22px, 3vw, 48px);
}
.footer__col { min-width: 0; }
.footer__brand { font-size: 20px; font-weight: 900; letter-spacing: -0.01em; color: var(--cream); }
.footer__cert {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(34, 211, 238, 0.42);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.footer__tagline { margin-top: 14px; font-size: 14px; line-height: 1.8; color: var(--on-dark-dim); max-width: 34em; }
.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--cyan-mist);
}
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__link {
  display: inline-block;
  font-size: 14px;
  text-decoration: none;
  color: var(--on-dark);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer__link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.footer__meta { font-size: 13px; line-height: 1.7; color: var(--on-dark-dim); word-break: break-all; }
.footer__note { margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--on-dark-dim); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(30px, 4vw, 56px);
  padding-top: 20px;
  border-top: 1px solid rgba(247, 241, 228, 0.14);
}
.footer__legal { font-size: 13px; color: var(--on-dark-dim); }
.footer__icp { font-family: var(--font-mono); color: var(--on-dark); }
.footer__version {
  padding: 4px 13px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(34, 211, 238, 0.38);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--cyan);
}

/* ---------- 7. 版块与容器 ---------- */
.section { position: relative; padding: clamp(44px, 6.5vw, 96px) 0; }
.section--tight { padding-block: clamp(26px, 3.4vw, 48px); }
.section--dark { background: var(--deep); color: var(--on-dark); }
.section--midnight { background: var(--midnight); color: var(--on-dark); }
.section--cream { background: var(--cream); color: var(--ink); }
.section--sand { background: var(--sand); color: var(--ink); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.section--midnight h1, .section--midnight h2, .section--midnight h3, .section--midnight h4 { color: var(--cream); }
.section--dark a, .section--midnight a { color: var(--on-dark); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.container--narrow { max-width: 820px; }
.container--wide { max-width: 1560px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 28px;
  margin-bottom: clamp(22px, 3vw, 40px);
}
.section-head__text { max-width: 44em; }
.section-head__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan-deep);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--orange); }
.section--dark .eyebrow, .section--midnight .eyebrow { color: var(--cyan); }

.section-title { font-size: clamp(26px, 3.6vw, 40px); }
.section-lede { margin-top: 12px; max-width: 40em; font-size: 16px; line-height: 1.75; color: var(--graphite); }
.section--dark .section-lede, .section--midnight .section-lede { color: var(--on-dark-dim); }

.divider { height: 1px; margin: 32px 0; background: linear-gradient(90deg, var(--cyan) 0%, rgba(34, 211, 238, 0.05) 70%, transparent 100%); }

/* ---------- 8. 网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); 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--main-side { grid-template-columns: 7fr 4fr; }
.grid--side-main { grid-template-columns: 4fr 7fr; }

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

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #2A1206; }
.btn--primary:hover { background: #FF8149; }
.btn--cyan { background: var(--cyan); color: var(--deep); }
.btn--cyan:hover { background: var(--cyan-mist); }
.btn--ghost { background: var(--glass); border-color: rgba(34, 211, 238, 0.42); color: var(--cream); }
.btn--ghost:hover { background: rgba(34, 211, 238, 0.16); border-color: var(--cyan); }
.btn--quiet { border-color: rgba(42, 33, 28, 0.24); color: var(--ink); }
.btn--quiet:hover { background: rgba(34, 211, 238, 0.14); border-color: var(--cyan-deep); }
.btn--sm { padding: 9px 17px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 10. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.1vw, 28px);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  min-width: 0;
}
.card--glass { background: var(--glass); border-color: var(--line-cyan); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--on-dark); }
.card--paper { background: var(--cream); border-color: var(--line-ink); color: var(--ink); }
.card--sand { background: var(--sand); border-color: rgba(42, 33, 28, 0.10); color: var(--ink); }
.card--midnight { background: var(--midnight); border-color: rgba(34, 211, 238, 0.20); color: var(--on-dark); }
.card--interactive { transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease); }
.card--interactive:hover { transform: translateY(-2px); border-color: var(--cyan); }
.card--glass.card--interactive:hover { background: var(--glass-strong); }
.card__eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--cyan-deep); margin-bottom: 10px; }
.section--dark .card__eyebrow, .section--midnight .card__eyebrow, .card--glass .card__eyebrow, .card--midnight .card__eyebrow { color: var(--cyan); }
.card__title { font-size: clamp(19px, 1.8vw, 24px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.24; }
.card__body { margin-top: 10px; font-size: 15px; line-height: 1.75; }
.card__meta { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--graphite); }
.card--glass .card__meta, .card--midnight .card__meta { color: var(--on-dark-dim); }
.card__footer { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- 11. 标签 / 数据块 ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-ink);
  background: var(--sand);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.chip--cyan { background: rgba(34, 211, 238, 0.14); border-color: rgba(14, 116, 144, 0.40); color: var(--cyan-deep); }
.chip--orange { background: rgba(255, 107, 44, 0.14); border-color: rgba(255, 107, 44, 0.45); color: #B33F0E; }
.section--dark .chip, .section--midnight .chip, .card--glass .chip, .card--midnight .chip {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.38);
  color: var(--cyan-mist);
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan-deep);
}
.stat__label { font-size: 13px; letter-spacing: 0.02em; color: var(--graphite); }
.section--dark .stat__value, .section--midnight .stat__value, .card--midnight .stat__value { color: var(--cyan); }
.section--dark .stat__label, .section--midnight .stat__label, .card--midnight .stat__label { color: var(--on-dark-dim); }

/* ---------- 12. 数据表 ---------- */
.data-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.data-table caption { caption-side: top; text-align: left; padding-bottom: 10px; font-size: 13px; color: var(--graphite); }
.data-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--midnight);
  color: var(--cream);
  white-space: nowrap;
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-ink); font-variant-numeric: tabular-nums; }
.data-table tbody tr:nth-child(even) { background: rgba(234, 223, 200, 0.55); }
.data-table th[data-sort] { cursor: pointer; user-select: none; transition: background 0.18s var(--ease); }
.data-table th[data-sort]:hover { background: #1B3A63; }
.data-table th[aria-sort="ascending"]::after { content: " ▲"; color: var(--cyan); }
.data-table th[aria-sort="descending"]::after { content: " ▼"; color: var(--orange); }
.data-table--dark { color: var(--on-dark); }
.data-table--dark td { border-bottom-color: rgba(247, 241, 228, 0.14); }
.data-table--dark tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.05); }
.data-table--dark th { background: rgba(255, 255, 255, 0.08); }
.data-table--dark th[data-sort]:hover { background: rgba(34, 211, 238, 0.20); }

/* ---------- 13. 正文容器 ---------- */
.prose { max-width: 38em; font-size: 16px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(24px, 2.6vw, 32px); }
.prose h3 { margin-top: 1.6em; font-size: 21px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose a { color: var(--cyan-deep); text-decoration: none; border-bottom: 1px solid rgba(14, 116, 144, 0.4); transition: background 0.18s var(--ease), border-color 0.18s var(--ease); }
.prose a:hover { background: rgba(34, 211, 238, 0.16); border-bottom-color: var(--cyan-deep); }
.prose strong { font-weight: 800; }
.prose blockquote { padding: 14px 18px; border-left: 3px solid var(--cyan); background: var(--sand); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose table { margin-top: 1.4em; font-size: 14px; }
.prose table th { padding: 9px 12px; background: var(--midnight); color: var(--cream); text-align: left; font-size: 13px; }
.prose table td { padding: 9px 12px; border-bottom: 1px solid var(--line-ink); }
.prose--on-dark { color: var(--on-dark); }
.prose--on-dark h2, .prose--on-dark h3, .prose--on-dark h4 { color: var(--cream); }
.prose--on-dark a { color: var(--cyan); border-bottom-color: rgba(34, 211, 238, 0.45); }
.prose--on-dark a:hover { background: rgba(34, 211, 238, 0.18); border-bottom-color: var(--cyan); }
.prose--on-dark blockquote { background: rgba(255, 255, 255, 0.07); }
.prose--on-dark table th { background: rgba(255, 255, 255, 0.08); }
.prose--on-dark table td { border-bottom-color: rgba(247, 241, 228, 0.14); }

/* ---------- 14. 提示块 / 目录 ---------- */
.callout { padding: 16px 18px; border-radius: var(--r-md); border-left: 3px solid var(--cyan); background: var(--sand); font-size: 15px; line-height: 1.75; }
.callout--cyan { border-left-color: var(--cyan-deep); }
.callout--orange { border-left-color: var(--orange); background: rgba(255, 107, 44, 0.10); }
.section--dark .callout, .section--midnight .callout { background: rgba(255, 255, 255, 0.07); color: var(--on-dark); }

.toc { padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line-ink); background: var(--cream); }
.toc__title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--graphite); margin-bottom: 12px; }
.toc__list { display: flex; flex-direction: column; gap: 2px; }
.toc__link {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.toc__link:hover { background: rgba(34, 211, 238, 0.14); border-left-color: var(--cyan-deep); }
.toc__link[aria-current="true"] { background: rgba(34, 211, 238, 0.18); border-left-color: var(--cyan); font-weight: 800; }
.section--dark .toc, .section--midnight .toc { background: var(--midnight); border-color: rgba(34, 211, 238, 0.22); }
.section--dark .toc__link, .section--midnight .toc__link { color: var(--on-dark); }

/* ---------- 15. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line-cyan);
  background: linear-gradient(135deg, #12294A 0%, #0B1B33 55%, #10375A 100%);
  isolation: isolate;
}
.media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 27, 51, 0) 42%, rgba(11, 27, 51, 0.80) 100%);
}
.media__tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: rgba(11, 27, 51, 0.74);
  border: 1px solid rgba(34, 211, 238, 0.45);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--cyan);
}
.media__caption {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  z-index: 2;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(247, 241, 228, 0.88);
}

/* ---------- 16. 面包屑 ---------- */
.breadcrumb { padding: 16px 0 0; }
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--graphite); }
.breadcrumb__item { display: inline-flex; align-items: center; }
.breadcrumb__item::after { content: "/"; margin: 0 7px; opacity: 0.45; }
.breadcrumb__item:last-child::after { content: ""; margin: 0; }
.breadcrumb__link { text-decoration: none; color: inherit; border-radius: 4px; transition: color 0.18s var(--ease), background 0.18s var(--ease); }
.breadcrumb__link:hover { color: var(--cyan-deep); background: rgba(34, 211, 238, 0.14); }
.breadcrumb__current { font-weight: 700; color: var(--ink); }
.section--dark .breadcrumb__list, .section--midnight .breadcrumb__list { color: var(--on-dark-dim); }
.section--dark .breadcrumb__current, .section--midnight .breadcrumb__current { color: var(--cream); }
.section--dark .breadcrumb__link:hover, .section--midnight .breadcrumb__link:hover { color: var(--cyan); }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1079px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .quicklinks { margin-left: auto; }
}

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

@media (max-width: 760px) {
  .quicklinks { display: none; }
  .nav-toggle { margin-left: auto; }
  .brand__cert { display: none; }
}

@media (max-width: 620px) {
  .footer__grid { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-12 { grid-column: span 12; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* 桌面端：脊线出现，正文与页脚让出 150px 看台走廊 */
@media (min-width: 1080px) {
  .nav-rail {
    display: block;
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--rail);
    z-index: -1;
    background: linear-gradient(180deg, #0B1B33 0%, #123055 55%, #0B1B33 100%);
    border-right: 1px solid rgba(34, 211, 238, 0.20);
  }
  .nav-rail::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(180deg, rgba(127, 224, 234, 0.09) 0 1px, transparent 1px 56px);
  }
  main { padding-left: var(--rail); }
  .site-footer { padding-left: var(--rail); }
  .capsule-nav {
    left: calc((var(--rail) - var(--nav-w)) / 2);
    right: auto;
    top: 50%;
    bottom: auto;
    width: var(--nav-w);
    padding: 10px 8px;
    border-radius: 26px;
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
    transition: none;
  }
  .capsule-nav[data-open] { transform: translateY(-50%); }
  .capsule-nav__list { flex-direction: column; overflow: visible; }
  .capsule-nav__item { width: 100%; }
  .capsule-nav__link { padding: 11px 10px; text-align: center; font-size: 13px; }
}

/* ---------- 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;
  }
  .btn:hover, .card--interactive:hover { transform: none; }
}
