/* ============================================================
   星光看台 · /assets/site.css
   共享层：reset / 变量 / 中文排版 / 页头 / 页脚 / 通用组件
   ============================================================ */

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

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

body {
  margin: 0;
  min-height: 100%;
  background-color: #0B1F1A;
  background-image:
    radial-gradient(1100px 640px at 50% -16%, rgba(53, 240, 200, .10), transparent 68%),
    radial-gradient(820px 560px at 94% 6%, rgba(122, 107, 255, .09), transparent 70%),
    radial-gradient(700px 460px at 2% 38%, rgba(242, 179, 61, .055), transparent 72%);
  background-repeat: no-repeat;
  color: #E8F1EC;
  font-family: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; border-spacing: 0; }
hr { border: 0; margin: 0; }

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

/* ---------- 变量 ---------- */
:root {
  --ink: #0B1F1A;
  --ink-2: #12161A;
  --ink-blue: #14243A;
  --paper: #E8F1EC;
  --muted: #7C8C86;
  --cyan: #35F0C8;
  --gold: #F2B33D;
  --red: #C8394B;
  --violet: #7A6BFF;
  --mint: #A8FFE4;

  --line: rgba(124, 140, 134, .26);
  --line-strong: rgba(53, 240, 200, .38);
  --line-gold: rgba(242, 179, 61, .42);

  --wrap: 1240px;
  --gutter: 28px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --pill: 999px;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --shadow-card: 0 18px 44px rgba(0, 0, 0, .45);
  --shadow-panel: 0 26px 70px rgba(0, 0, 0, .58);
}

/* ---------- 排版层级 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--paper);
}

h1 { font-size: clamp(34px, 5.2vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2; }
h4 { font-size: 22px; line-height: 1.3; }

.num,
[data-count] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -.01em;
}

.label {
  display: inline-block;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.lead {
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.75;
  color: rgba(232, 241, 236, .9);
  max-width: 42rem;
}

.prose { max-width: 40rem; }
.prose p { margin-bottom: 1.15em; color: rgba(232, 241, 236, .86); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--paper); font-weight: 700; }
.prose em { color: var(--cyan); font-style: normal; }
.prose h2, .prose h3 { margin: 1.9em 0 .6em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.1em; }
.prose li { margin-bottom: .5em; color: rgba(232, 241, 236, .86); }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -1em;
  top: .82em;
  width: 6px;
  height: 1px;
  background: var(--cyan);
}

/* ---------- 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--full { background: var(--ink-2); }
.section--tint { background: var(--ink-blue); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(24px, 3.5vw, 44px);
}

.section__head .lead { margin-top: 12px; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}

.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--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }
.grid--3-9 { grid-template-columns: 3fr 9fr; }

.stack { display: grid; gap: clamp(20px, 3vw, 32px); }
.stack--offset > *:nth-child(even) { transform: translateY(32px); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: transform .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold { background: var(--gold); color: #1A1204; }
.btn--gold:hover { box-shadow: 0 12px 30px rgba(242, 179, 61, .28); }

.btn--cyan { background: var(--cyan); color: #04211A; }
.btn--cyan:hover { box-shadow: 0 12px 30px rgba(53, 240, 200, .26); }

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

.btn--sm { padding: 9px 16px; font-size: 13px; }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 11px 22px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--cyan);
  color: #04211A;
  font-size: 14px;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ============================================================
   页头：居中刊头 + 横向栏目带
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(11, 31, 26, .98) 0%, rgba(11, 31, 26, .9) 100%);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.masthead { position: relative; z-index: 2; }

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 14px;
  transition: padding .3s ease;
}

.masthead__region {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
  transition: opacity .25s ease, visibility .25s ease;
}

.masthead__region-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(200, 57, 75, .18);
}

.masthead__brand {
  justify-self: center;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(21px, 2.5vw, 31px);
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--paper);
  transition: font-size .3s ease, color .2s ease;
}

.masthead__brand-cn { color: var(--paper); }
.masthead__brand-sep { color: var(--cyan); font-size: .78em; }
.masthead__brand-name { color: var(--cyan); }
.masthead__brand:hover .masthead__brand-name { color: var(--mint); }

.masthead__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 章节索引按钮 */
.toc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.toc-toggle[hidden] { display: none; }
.toc-toggle:hover,
.toc-toggle[aria-expanded="true"] {
  color: var(--cyan);
  border-color: var(--line-strong);
  background: rgba(53, 240, 200, .07);
}
.toc-toggle__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(53, 240, 200, .14);
}

/* 章节索引面板 */
.toc-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: clamp(18px, 3vw, 40px);
  z-index: 80;
  width: min(304px, calc(100vw - 36px));
  max-height: min(62vh, 440px);
  overflow-y: auto;
  padding: 10px;
  background: var(--ink-blue);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
}
.toc-panel[hidden] { display: none; }

.toc-panel__title {
  padding: 6px 10px 10px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.toc-panel__nav { display: grid; gap: 2px; }

.toc-panel__link {
  display: block;
  padding: 9px 10px;
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(232, 241, 236, .8);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.toc-panel__link:hover {
  background: rgba(53, 240, 200, .08);
  color: var(--paper);
}
.toc-panel__link[data-active] {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(242, 179, 61, .08);
}

/* 栏目带 */
.site-nav {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 22, 26, .55), rgba(18, 22, 26, 0));
}

.site-nav__list {
  display: flex;
  align-items: stretch;
  gap: 2px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.site-nav__list::-webkit-scrollbar { display: none; }

.site-nav__item { flex: 0 0 auto; }

.site-nav__link {
  display: inline-block;
  padding: 12px 16px 14px;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, padding .3s ease;
}
.site-nav__link:hover {
  color: var(--paper);
  background: rgba(53, 240, 200, .05);
}
.site-nav__link[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--paper);
  transition: border-color .2s ease, color .2s ease;
}
.nav-toggle:hover { border-color: var(--line-strong); color: var(--cyan); }

.nav-toggle__bars {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 12px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .25s ease;
}
.nav-toggle__bars::before { top: 1px; }
.nav-toggle__bars::after { bottom: 1px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }

/* 滚动后的窄栏态 */
.site-header[data-compact] .masthead__inner {
  padding-top: 8px;
  padding-bottom: 6px;
}
.site-header[data-compact] .masthead__region {
  opacity: 0;
  visibility: hidden;
}
.site-header[data-compact] .masthead__brand { font-size: clamp(18px, 2vw, 22px); }
.site-header[data-compact] .site-nav__link {
  padding-top: 9px;
  padding-bottom: 11px;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .55;
}

.footer__inner {
  padding-top: clamp(44px, 6vw, 72px);
  padding-bottom: 26px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.5fr 1fr;
  gap: clamp(24px, 3vw, 46px);
}

.footer__block { min-width: 0; }

.footer__brand {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--paper);
}
.footer__mark { color: var(--cyan); }

.footer__tagline {
  margin-top: 12px;
  max-width: 26em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.footer__kicker {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(53, 240, 200, .72);
}

.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--muted);
}

.footer__list { display: grid; gap: 9px; }

.footer__link {
  font-size: 14px;
  color: rgba(232, 241, 236, .76);
  transition: color .2s ease;
}
.footer__link:hover { color: var(--cyan); }

.footer__contact { display: grid; gap: 10px; }

.footer__contact-row {
  display: grid;
  gap: 2px;
  font-size: 14px;
  line-height: 1.7;
}

.footer__contact-key {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__contact-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  color: var(--paper);
  word-break: break-word;
}

.footer__contact-value--text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(232, 241, 236, .8);
}

.footer__note {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 30em;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer__legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__legal-links a { transition: color .2s ease; }
.footer__legal-links a:hover { color: var(--cyan); }
.footer__legal-sep { color: rgba(124, 140, 134, .55); }

/* 返回顶部 */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(18, 22, 26, .94);
  color: var(--cyan);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, box-shadow .3s ease;
}
.back-to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover { box-shadow: 0 0 0 5px rgba(53, 240, 200, .13); }

.back-to-top__arrow {
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateY(2px) rotate(45deg);
}

/* ============================================================
   通用组件
   ============================================================ */

/* 标签 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.badge--cyan { color: var(--cyan); border-color: rgba(53, 240, 200, .4); background: rgba(53, 240, 200, .08); }
.badge--gold { color: var(--gold); border-color: var(--line-gold); background: rgba(242, 179, 61, .08); }
.badge--red { color: #FFF1F3; background: var(--red); border-color: transparent; }
.badge--violet { color: var(--violet); border-color: rgba(122, 107, 255, .42); background: rgba(122, 107, 255, .1); }

/* 卡片 */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(20, 36, 58, .7), rgba(18, 22, 26, .92));
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--paper);
}

.card__text {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(232, 241, 236, .72);
}

/* 图片占位容器基础规则 */
.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(53, 240, 200, .14), transparent 62%),
    linear-gradient(155deg, var(--ink-blue) 0%, var(--ink-2) 58%, #0d1714 100%);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(232, 241, 236, .045) 0 1px,
    transparent 1px 4px
  );
  opacity: .5;
}

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

.media--wide { aspect-ratio: 16 / 9; }
.media--slim { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media__tag {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--red);
  color: #FFF1F3;
}

.media__caption {
  position: absolute;
  z-index: 3;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(11, 31, 26, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(232, 241, 236, .82);
}

/* 关键数字 */
.stat {
  padding-left: 16px;
  border-left: 2px solid var(--cyan);
}
.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cyan);
}
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--muted);
}

/* 纵向时间轴 */
.timeline {
  position: relative;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), rgba(53, 240, 200, .05));
}
.timeline__item {
  position: relative;
  padding-bottom: 28px;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 8px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--ink);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__time {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--gold);
}
.timeline__title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--paper);
}
.timeline__text {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(232, 241, 236, .72);
  max-width: 34rem;
}

/* 数据表 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(20, 36, 58, .4);
}

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

.data-table th,
.data-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(11, 31, 26, .5);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table tbody tr:nth-child(even) { background: rgba(168, 255, 228, .035); }

.data-table td .num,
.data-table th .num { color: var(--cyan); }

/* 胶囊筛选组 */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.pill:hover { color: var(--paper); border-color: var(--line-strong); }
.pill[data-active] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04211A;
}

/* 滚动显现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .grid--7-5,
  .grid--8-4,
  .grid--3-9 { grid-template-columns: minmax(0, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --gutter: 22px; }
  html { scroll-padding-top: 116px; }

  .masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 10px;
  }
  .masthead__region { display: none; }
  .masthead__brand { justify-self: start; }
  .masthead__actions { justify-self: end; gap: 8px; }

  .nav-toggle { display: inline-flex; }
  .toc-toggle { padding: 9px 12px; }
  .toc-toggle .toc-toggle__dot { box-shadow: 0 0 0 3px rgba(53, 240, 200, .14); }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: var(--ink-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 60px rgba(0, 0, 0, .5);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .site-nav[data-open] { display: block; }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    overflow: visible;
  }
  .site-nav__item { flex: 1 1 auto; width: 100%; }
  .site-nav__link {
    display: block;
    padding: 14px 6px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
    font-size: 16px;
  }
  .site-nav__link[aria-current="page"] {
    border-bottom-color: var(--line);
    border-left-color: var(--gold);
    background: rgba(242, 179, 61, .07);
  }

  .site-header[data-compact] .masthead__brand { font-size: 19px; }

  .stack--offset > *:nth-child(even) { transform: none; }

  .toc-panel { right: var(--gutter); top: calc(100% + 2px); }
}

@media (max-width: 720px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .footer__legal { justify-content: flex-start; }

  .masthead__cta { padding: 8px 13px; font-size: 12.5px; }
  .nav-toggle__label { display: none; }
  .toc-toggle { padding: 9px 11px; letter-spacing: 0; }

  .table-wrap { border-radius: var(--radius-sm); background: transparent; border: 0; overflow: visible; }
  .data-table { min-width: 0; width: 100%; display: block; }
  .data-table thead { display: none; }
  .data-table tbody,
  .data-table tr,
  .data-table td,
  .data-table th { display: block; width: 100%; }
  .data-table tr {
    margin-bottom: 12px;
    padding: 6px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(20, 36, 58, .4);
  }
  .data-table tbody tr:nth-child(even) { background: rgba(20, 36, 58, .4); }
  .data-table td,
  .data-table th {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 8px 16px;
    border-bottom: 0;
    font-size: 14.5px;
  }
  .data-table td::before,
  .data-table th::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .media__caption { left: 10px; right: 10px; bottom: 10px; padding: 8px 11px; font-size: 12px; }
  .back-to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}

/* ============================================================
   动效降级
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }

  .btn,
  .card,
  .pill,
  .back-to-top,
  .toc-panel__link,
  .site-nav__link,
  .footer__link,
  .masthead__brand { transition: none !important; }

  .btn:hover,
  .card:hover { transform: none; }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .back-to-top { transition: opacity .001ms linear, visibility .001ms linear; }
}
