/* ==========================================================================
   真人体育站 · 共享样式 /assets/site.css
   未来竞技场 × 数据驾驶舱
   ========================================================================== */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

ul, ol { padding: 0; 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; }

/* ---------- 变量 ---------- */
:root {
  /* 色彩体系 */
  --ink: #0B1220;          /* 深空墨蓝 */
  --ink-2: #16233A;        /* 夜场钢蓝 */
  --ink-3: #0E1728;
  --paper: #F4EDE2;        /* 暖纸白 */
  --paper-2: #DCCFBC;      /* 纸影米 */
  --cyan: #2BE8D0;         /* 霓虹青 */
  --orange: #FF6B2C;       /* 荧光橙 */
  --gold: #F2B24B;         /* 暖金 */
  --text-ink: #10161F;     /* 墨黑正文 */
  --mute: #7C8AA5;         /* 冷灰紫 */
  --teal: #0E5C57;         /* 深青 */

  --line: rgba(244, 237, 226, 0.14);
  --line-strong: rgba(244, 237, 226, 0.30);
  --line-paper: rgba(16, 22, 31, 0.14);

  /* 字体 */
  --font-head: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Heiti SC", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 尺度 */
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

/* ---------- 基础底板 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 88% -6%, rgba(43, 232, 208, 0.10), transparent 62%),
    radial-gradient(900px 640px at -8% 34%, rgba(255, 107, 44, 0.085), transparent 60%),
    linear-gradient(rgba(124, 138, 165, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 138, 165, 0.055) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  color: rgba(244, 237, 226, 0.9);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--paper);
}

p { text-wrap: pretty; }

::selection { background: rgba(43, 232, 208, 0.32); color: #04141a; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #070c15; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(43, 232, 208, 0.5), rgba(255, 107, 44, 0.5));
  border-radius: 999px;
  border: 3px solid #070c15;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- 通用容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: #042b27;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  transform: translateY(-180%);
  transition: transform 0.24s var(--ease);
}
.skip-link:focus {
  transform: none;
  outline-offset: 4px;
}

/* ---------- 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 260;
  background: linear-gradient(90deg, var(--cyan), var(--gold) 52%, var(--orange));
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  pointer-events: none;
  will-change: transform;
}

/* ---------- 实时状态条 ---------- */
.status-rail {
  position: relative;
  z-index: 115;
  background: linear-gradient(90deg, #0b1424, #16233a 42%, #0b1424);
  border-bottom: 1px solid rgba(43, 232, 208, 0.16);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  color: var(--mute);
}

.status-rail__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-height: 36px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.status-rail__inner::-webkit-scrollbar { display: none; }

.status-rail__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.12em;
  flex: none;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(43, 232, 208, 0.7);
  animation: pulseDot 2.6s var(--ease) infinite;
}

@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(43, 232, 208, 0.55); opacity: 1; }
  70%  { box-shadow: 0 0 0 9px rgba(43, 232, 208, 0); opacity: 0.72; }
  100% { box-shadow: 0 0 0 0 rgba(43, 232, 208, 0); opacity: 1; }
}

.status-rail__metrics {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  flex: none;
}

.status-item {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.status-item__k {
  color: var(--mute);
  font-size: 11px;
  letter-spacing: 0.08em;
}

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

.status-rail__hint {
  margin-left: auto;
  padding-left: 18px;
  color: var(--mute);
  font-size: 11px;
  letter-spacing: 0.06em;
  flex: none;
}

/* ---------- 命令栏 ---------- */
.cmd-bar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(11, 18, 32, 0.87);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.cmd-bar__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav actions";
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  min-height: 74px;
}

/* 品牌 */
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(138deg, var(--cyan) 0%, var(--teal) 46%, var(--orange) 100%);
  box-shadow: 0 0 0 1px rgba(43, 232, 208, 0.35), 0 12px 26px -14px rgba(43, 232, 208, 0.85);
  transform: rotate(-6deg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.brand__mark > span {
  transform: rotate(6deg);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #05191d;
}
.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 0 0 1px rgba(43, 232, 208, 0.6), 0 16px 30px -14px rgba(43, 232, 208, 1);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--paper);
}

.brand__line {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--mute);
}

/* 导航 */
.nav {
  grid-area: nav;
  justify-self: center;
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1.1vw, 12px);
}

.nav__item { position: relative; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 10px 4px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(244, 237, 226, 0.76);
  transition: color 0.22s var(--ease);
  white-space: nowrap;
}

.nav__link::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--mute);
  transform: translateY(-2px);
  transition: color 0.22s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.26s var(--ease);
}

.nav__link:hover { color: var(--paper); }
.nav__link:hover::before { color: var(--cyan); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--cyan); }
.nav__link[aria-current="page"]::before { color: var(--cyan); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__hint {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 8;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: rgba(22, 35, 58, 0.96);
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.nav__item:hover .nav__hint,
.nav__link:focus-visible + .nav__hint {
  opacity: 1;
  transform: translateY(0);
}

/* 命令栏动作区 */
.cmd-bar__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ver-badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(242, 178, 75, 0.42);
  background: rgba(242, 178, 75, 0.09);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

/* 移动导航按钮 */
.nav-toggle {
  grid-area: toggle;
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  border: 1px solid var(--line-strong);
  background: rgba(22, 35, 58, 0.72);
  cursor: pointer;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}
.nav-toggle:hover { border-color: rgba(43, 232, 208, 0.6); }

.nav-toggle__bar {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease), background 0.24s var(--ease);
}
.nav-toggle__bar:nth-child(2) { top: 15px; }
.nav-toggle__bar:nth-child(3) { top: 22px; }
.nav-toggle__bar:nth-child(4) { top: 29px; }

.cmd-bar[data-open="true"] .nav-toggle__bar { background: var(--cyan); }
.cmd-bar[data-open="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.cmd-bar[data-open="true"] .nav-toggle__bar:nth-child(3) { opacity: 0; }
.cmd-bar[data-open="true"] .nav-toggle__bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

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

.btn--primary {
  background: linear-gradient(118deg, var(--orange), #ff9152);
  color: #1b0a01;
  box-shadow: 0 12px 28px -14px rgba(255, 107, 44, 0.95);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(255, 107, 44, 1);
}

.btn--ghost {
  background: rgba(43, 232, 208, 0.06);
  border-color: rgba(43, 232, 208, 0.36);
  color: var(--cyan);
}
.btn--ghost:hover {
  background: rgba(43, 232, 208, 0.15);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.btn--paper {
  background: var(--paper);
  color: var(--text-ink);
}
.btn--paper:hover { background: var(--paper-2); transform: translateY(-2px); }

.btn--line {
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn--line:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 118px);
  padding-block: clamp(42px, 6vw, 74px) clamp(24px, 4vw, 42px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(720px 380px at 10% 0%, rgba(43, 232, 208, 0.10), transparent 68%),
    radial-gradient(720px 420px at 94% 8%, rgba(255, 107, 44, 0.09), transparent 66%),
    linear-gradient(180deg, #0e1728, #0b1220 58%);
  color: var(--paper);
}

.footer__edge {
  position: absolute;
  top: -1px;
  left: 0;
  width: min(340px, 46%);
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--gold) 56%, var(--orange));
  clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
  pointer-events: none;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(230px, 1.05fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.footer__brand { display: flex; flex-direction: column; }

.footer__brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--paper);
}

.footer__sign {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.footer__note {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--mute);
}

.footer__cta {
  align-self: flex-start;
  margin-top: 22px;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 46px);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--cyan);
}
.footer-col__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(43, 232, 208, 0.5), transparent);
}

.footer-col__link {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(244, 237, 226, 0.72);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-col__link:hover {
  color: var(--paper);
  transform: translateX(4px);
}

.footer-meta { display: flex; flex-direction: column; gap: 10px; }

.footer-meta__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-meta__k {
  flex: none;
  min-width: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mute);
}

.footer-meta__v {
  color: rgba(244, 237, 226, 0.84);
  word-break: break-word;
}

.footer__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(30px, 4.6vw, 52px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 17px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: rgba(22, 35, 58, 0.55);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(244, 237, 226, 0.8);
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease),
              background 0.22s var(--ease), transform 0.22s var(--ease);
}
.pill::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.pill:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(43, 232, 208, 0.1);
  transform: translateY(-2px);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  margin-top: clamp(24px, 3.4vw, 38px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mute);
}
.footer__legal-main { color: rgba(244, 237, 226, 0.7); }
.footer__legal-sub { font-family: var(--font-mono); letter-spacing: 0.03em; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 200;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(43, 232, 208, 0.45);
  background: rgba(11, 18, 32, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--cyan);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0.3s var(--ease), background 0.22s var(--ease);
}
.to-top::before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translate(2px, 2px);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { background: rgba(43, 232, 208, 0.18); }

/* ---------- 章节骨架 ---------- */
.section { padding-block: clamp(40px, 7vw, 92px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 30px;
  margin-bottom: clamp(20px, 3vw, 38px);
}

.section__title {
  max-width: 20ch;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.section__lead {
  max-width: 62ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: rgba(244, 237, 226, 0.72);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

/* ---------- 注释与数据 ---------- */
.annot {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--mute);
}

.annot--vertical {
  writing-mode: vertical-rl;
  letter-spacing: 0.32em;
}

.data-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* ---------- 标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: rgba(22, 35, 58, 0.5);
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(244, 237, 226, 0.8);
}

.chip--live {
  border-color: rgba(43, 232, 208, 0.5);
  background: rgba(43, 232, 208, 0.09);
  color: var(--cyan);
}

.chip--gold {
  border-color: rgba(242, 178, 75, 0.5);
  background: rgba(242, 178, 75, 0.1);
  color: var(--gold);
}

/* ---------- 斜切高亮条带 ---------- */
.cut-band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding: 15px clamp(18px, 3vw, 34px);
  background: linear-gradient(100deg, rgba(255, 107, 44, 0.94), rgba(242, 178, 75, 0.92) 44%, rgba(43, 232, 208, 0.88));
  color: #08131c;
  font-weight: 800;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%);
}
.cut-band .data-num { font-weight: 700; }

/* ---------- 面板 ---------- */
.slab {
  position: relative;
  padding: clamp(20px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-2);
}
.slab::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(20px, 3vw, 40px);
  width: 56px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

.paper-panel {
  position: relative;
  padding: clamp(22px, 3.4vw, 46px);
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--text-ink);
  box-shadow: 0 30px 66px -34px rgba(0, 0, 0, 0.9);
}
.paper-panel h1,
.paper-panel h2,
.paper-panel h3,
.paper-panel h4 { color: var(--text-ink); }

.slab--paper {
  border-color: transparent;
  background: var(--paper);
  color: var(--text-ink);
}
.slab--paper h1,
.slab--paper h2,
.slab--paper h3,
.slab--paper h4 { color: var(--text-ink); }
.slab--paper::before { background: linear-gradient(90deg, var(--orange), var(--gold)); }

/* ---------- 正文 ---------- */
.prose {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.9;
  color: rgba(244, 237, 226, 0.86);
}
.prose > * + * { margin-top: 1em; }
.prose h2 {
  margin-top: 1.7em;
  font-size: clamp(23px, 3vw, 33px);
}
.prose h3 {
  margin-top: 1.5em;
  font-size: clamp(18px, 2.2vw, 23px);
}
.prose ul,
.prose ol {
  padding-left: 1.25em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li { margin-top: 0.4em; }
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose strong { color: var(--paper); font-weight: 800; }
.prose blockquote {
  padding-left: 18px;
  border-left: 3px solid var(--orange);
  color: rgba(244, 237, 226, 0.72);
}

.paper-panel .prose,
.slab--paper .prose { color: rgba(16, 22, 31, 0.86); }
.paper-panel .prose strong,
.slab--paper .prose strong { color: var(--text-ink); }
.paper-panel .prose a,
.slab--paper .prose a { color: var(--teal); }
.paper-panel .prose blockquote,
.slab--paper .prose blockquote {
  color: rgba(16, 22, 31, 0.72);
  border-left-color: var(--orange);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding-top: clamp(14px, 2vw, 22px);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mute);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb__item::after {
  content: "/";
  color: rgba(124, 138, 165, 0.55);
}
.breadcrumb__item:last-child::after { content: ""; }
.breadcrumb__link { transition: color 0.2s var(--ease); }
.breadcrumb__link:hover { color: var(--cyan); }
.breadcrumb__current { color: rgba(244, 237, 226, 0.8); }

/* ---------- 网格与堆叠 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }

.stack > * + * { margin-top: var(--stack-gap, 16px); }
.stack--lg { --stack-gap: clamp(24px, 4vw, 52px); }

/* ---------- 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 100% at 78% 8%, rgba(43, 232, 208, 0.22), transparent 62%),
    linear-gradient(142deg, #16233a 0%, #0b1220 58%, #0e5c57 100%);
  isolation: isolate;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 42%, rgba(11, 18, 32, 0.68));
  pointer-events: none;
}
.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--3x4  { aspect-ratio: 3 / 4; }
.media--21x9 { aspect-ratio: 21 / 9; }

.media__caption {
  position: absolute;
  left: clamp(14px, 2.4vw, 24px);
  right: clamp(14px, 2.4vw, 24px);
  bottom: clamp(12px, 2vw, 22px);
  z-index: 2;
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: rgba(244, 237, 226, 0.82);
}

/* ---------- 显现 ---------- */
.reveal-ready {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal-ready.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式：平板与手机 ---------- */
@media (max-width: 1100px) {
  .cmd-bar__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "actions actions"
      "nav nav";
    align-items: center;
    gap: 10px 12px;
    padding-block: 11px 13px;
    min-height: 0;
  }

  .brand__line { display: none; }

  .nav-toggle { display: block; }

  .cmd-bar__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    justify-self: stretch;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease);
  }
  .cmd-bar[data-open="true"] .nav {
    max-height: min(64vh, 480px);
    overflow-y: auto;
    opacity: 1;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 10px;
  }

  .nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--line);
  }

  .nav__link {
    flex: 1;
    padding: 15px 2px;
    font-size: 16px;
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--cyan); }

  .nav__hint {
    position: static;
    flex: none;
    padding: 0;
    border: 0;
    background: none;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: var(--mute);
    opacity: 1;
    transform: none;
    pointer-events: none;
  }
}

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; --r-lg: 22px; }

  body { font-size: 15.5px; }

  .status-rail__hint { display: none; }

  .brand__mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand__name { font-size: 17.5px; }

  .cmd-bar__actions .ver-badge { display: none; }

  .btn { padding: 9px 15px; font-size: 13.5px; }

  .footer__cols { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; align-items: flex-start; }

  .media--21x9 { aspect-ratio: 16 / 9; }

  .cut-band {
    clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
    font-size: 14px;
  }

  .to-top { width: 44px; height: 44px; }

  html { scroll-padding-top: 84px; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html { scroll-behavior: auto; }

  .pulse-dot { animation: none; opacity: 1; }

  .reveal-ready {
    opacity: 1;
    transform: none;
  }

  .scroll-progress { transition: none; }
}
