/* ============================================================
   德州棋牌 · 共享样式表  /assets/site.css
   牌桌深绿 + 暗夜蓝 底色，霓虹青 + 筹码品红 节奏点
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

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

ul, ol { padding: 0; }

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

a { color: inherit; }

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

button { cursor: pointer; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --table-green: #0E3B2E;
  --night-blue: #0B1226;
  --neon-cyan: #2CE8D5;
  --chip-magenta: #FF3D8B;
  --chip-red: #D7263D;
  --ivory: #F6F1E7;
  --ink: #111318;
  --gold: #E2B94A;
  --mist: #7C8A99;
  --deep-purple: #3B1F5E;
  --arcade-green: #12E39B;
  --notice-cyan: #D7FBF6;

  --on-dark: rgba(246, 241, 231, .78);
  --on-dark-strong: #F6F1E7;
  --on-light-soft: rgba(17, 19, 24, .68);
  --line-dark: rgba(246, 241, 231, .14);
  --line-cyan: rgba(44, 232, 213, .34);
  --line-light: rgba(17, 19, 24, .10);

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

  --header-h: 74px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-lift: 0 18px 40px rgba(5, 10, 20, .38);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.01em;
}

strong { font-weight: 700; }

small { font-size: .84rem; }

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

/* ---------- 4. 焦点与可达性 ---------- */
:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--neon-cyan);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: .92rem;
  text-decoration: none;
  border-radius: 0 0 14px 14px;
  transition: top .18s var(--ease);
}

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

/* ---------- 5. 布局工具 ---------- */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.section {
  padding-block: clamp(56px, 8vw, 112px);
}

.section--tight {
  padding-block: clamp(34px, 5vw, 64px);
}

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

.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 30px);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(236px, 100%), 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

/* ---------- 6. 表面分区 ---------- */
.surface-dark {
  background: var(--table-green);
  color: var(--on-dark-strong);
}

.surface-night {
  background: var(--night-blue);
  color: var(--on-dark-strong);
}

.surface-ivory {
  background: var(--ivory);
  color: var(--ink);
}

.surface-dark p,
.surface-night p { color: var(--on-dark); }

/* ---------- 7. 文字组件 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.02em;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.85;
  color: var(--on-light-soft);
  max-width: 38em;
}

.surface-dark .lede,
.surface-night .lede { color: var(--on-dark); }

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

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  color: var(--chip-red);
}

.surface-dark .section-head h2,
.surface-night .section-head h2 { color: var(--neon-cyan); }

.section-head p {
  max-width: 38em;
  margin: 0;
}

/* ---------- 8. 页头（框架式边框导航） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(14, 59, 46, .96);
  border-bottom: 1px solid rgba(44, 232, 213, .22);
  color: var(--on-dark-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-frame {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  width: min(1360px, 94vw);
  margin-inline: auto;
  min-height: var(--header-h);
}

.brand-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  padding: 6px 2px;
}

.brand-mark__glyph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--neon-cyan), var(--deep-purple) 58%, var(--chip-magenta));
  color: var(--night-blue);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.12rem;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(44, 232, 213, .22);
}

.brand-mark__word {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand-mark__cn {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.08rem;
  letter-spacing: -.01em;
  color: var(--on-dark-strong);
}

.brand-mark__en {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .2em;
  color: var(--neon-cyan);
}

.nav-rail {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-rail::-webkit-scrollbar { display: none; }

.nav-track {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-item { flex: 0 0 auto; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: .95rem;
  font-weight: 700;
  color: rgba(246, 241, 231, .76);
  text-decoration: none;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--neon-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}

.nav-link:hover { color: var(--on-dark-strong); }

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

.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--chip-magenta);
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: .88rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(255, 61, 139, .28);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 61, 139, .36);
}

.header-cta__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .22);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line-cyan);
  border-radius: 12px;
  background: transparent;
  transition: background-color .18s var(--ease);
}

.nav-toggle:hover { background: rgba(44, 232, 213, .12); }

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--on-dark-strong);
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}

.site-header[data-open="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(246, 241, 231, .08);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--arcade-green) 55%, var(--chip-magenta));
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--night-blue);
  color: var(--on-dark);
  padding: clamp(46px, 6vw, 84px) 0 26px;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--deep-purple) 46%, var(--chip-magenta));
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 232, 213, .16), rgba(44, 232, 213, 0) 68%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.15fr 1.1fr;
  gap: clamp(24px, 3.6vw, 54px);
}

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

.footer-title {
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .94rem;
  color: rgba(246, 241, 231, .76);
  text-decoration: none;
  transition: color .18s var(--ease), transform .18s var(--ease);
}

.footer-link:hover {
  color: var(--neon-cyan);
  transform: translateX(3px);
}

.footer-brand {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ivory);
}

.footer-brand span { color: var(--chip-magenta); }

.footer-note {
  margin: 0 0 16px;
  max-width: 30em;
  font-size: .92rem;
  line-height: 1.78;
  color: rgba(246, 241, 231, .66);
}

.footer-icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--mist);
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: .93rem;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.footer-key {
  flex: 0 0 auto;
  min-width: 3.2em;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--mist);
}

.footer-val {
  color: var(--ivory);
  word-break: break-word;
}

.footer-hint {
  margin: 14px 0 0;
  font-size: .8rem;
  color: var(--mist);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.footer-base {
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: 20px;
  border-top: 1px solid rgba(246, 241, 231, .12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  font-size: .82rem;
  color: var(--mist);
}

.footer-base p { margin: 0; }

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: .94rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease);
}

.btn--primary {
  background: var(--chip-magenta);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(255, 61, 139, .28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 61, 139, .38);
}

.btn--cyan {
  background: var(--neon-cyan);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(44, 232, 213, .24);
}

.btn--cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(44, 232, 213, .34);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(44, 232, 213, .52);
  color: var(--neon-cyan);
}

.btn--ghost:hover {
  background: rgba(44, 232, 213, .14);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 9px 17px;
  font-size: .85rem;
}

/* ---------- 11. 面包屑与正文容器 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: .84rem;
  color: var(--mist);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(124, 138, 153, .6);
}

.breadcrumb a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb [aria-current="page"] { color: var(--on-light-soft); }

.prose {
  max-width: 38em;
  font-size: 17px;
  line-height: 1.85;
}

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

.prose h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  color: var(--chip-red);
  margin-top: 1.6em;
}

.prose h3 {
  font-size: 1.16rem;
  color: var(--table-green);
  margin-top: 1.5em;
}

.prose a {
  color: var(--chip-red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

.surface-dark .prose h2,
.surface-night .prose h2 { color: var(--neon-cyan); }

.surface-dark .prose h3,
.surface-night .prose h3 { color: var(--gold); }

/* ---------- 12. 资料卡 ---------- */
.data-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(246, 241, 231, .06);
  color: var(--on-dark-strong);
  transition: border-color .22s var(--ease), transform .22s var(--ease),
              background-color .22s var(--ease);
}

.data-card:hover {
  border-color: rgba(44, 232, 213, .55);
  background: rgba(44, 232, 213, .07);
  transform: translateY(-3px);
}

.data-card h3 {
  font-size: 1.14rem;
  letter-spacing: -.005em;
}

.data-card p {
  margin: 0;
  font-size: .94rem;
  line-height: 1.78;
  color: rgba(246, 241, 231, .72);
}

.data-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--neon-cyan);
}

.data-card--light {
  border-color: var(--line-light);
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(5, 10, 20, .06);
}

.data-card--light p { color: var(--on-light-soft); }

.data-card--light .data-card__meta { color: var(--chip-red); }

.data-card--light:hover {
  border-color: rgba(215, 38, 61, .38);
  background: #FFFFFF;
}

/* ---------- 13. 档案夹 ---------- */
.archive-folder {
  position: relative;
  margin-top: 30px;
  padding: clamp(22px, 2.6vw, 30px) clamp(18px, 2.4vw, 28px) clamp(18px, 2.2vw, 26px);
  border-radius: 6px var(--radius-lg) var(--radius-lg) var(--radius-lg);
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid rgba(17, 19, 24, .08);
  box-shadow: 0 14px 32px rgba(5, 10, 20, .10);
}

.archive-folder > * + * { margin-top: 12px; }

.archive-folder__label {
  position: absolute;
  top: -29px;
  left: 0;
  padding: 6px 18px;
  border-radius: 9px 9px 0 0;
  background: var(--chip-red);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
}

.archive-folder h3 {
  font-size: 1.1rem;
  color: var(--table-green);
}

.archive-folder p {
  font-size: .92rem;
  color: var(--on-light-soft);
}

.archive-folder--dark {
  background: rgba(11, 18, 38, .62);
  color: var(--on-dark-strong);
  border-color: var(--line-dark);
}

.archive-folder--dark h3 { color: var(--neon-cyan); }

.archive-folder--dark p { color: rgba(246, 241, 231, .72); }

/* ---------- 14. 分类标签 ---------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border: 1px solid var(--line-cyan);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark-strong);
  font-family: var(--font-ui);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
  appearance: none;
}

.tag-chip:hover {
  background: rgba(44, 232, 213, .14);
  transform: translateY(-1px);
}

.tag-chip[aria-pressed="true"] {
  background: var(--chip-magenta);
  border-color: var(--chip-magenta);
  color: #FFFFFF;
}

.surface-ivory .tag-chip,
.surface-ivory .tag-chip:hover {
  color: var(--ink);
  border-color: var(--line-light);
}

.surface-ivory .tag-chip:hover {
  background: rgba(44, 232, 213, .18);
  border-color: rgba(44, 232, 213, .6);
}

.surface-ivory .tag-chip[aria-pressed="true"] {
  background: var(--chip-magenta);
  border-color: var(--chip-magenta);
  color: #FFFFFF;
}

[data-filtered-out] { display: none !important; }

/* ---------- 15. 公告栏 ---------- */
.bulletin {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, rgba(11, 18, 38, .94), rgba(14, 59, 46, .9));
  color: var(--on-dark-strong);
  font-family: var(--font-ui);
  font-size: .94rem;
  overflow: hidden;
}

.bulletin__label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  white-space: nowrap;
}

.bulletin__viewport {
  position: relative;
  height: 1.7em;
  overflow: hidden;
  min-width: 0;
}

.bulletin__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(65%);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.7em;
  color: rgba(246, 241, 231, .88);
}

.bulletin__item[data-active="true"] {
  opacity: 1;
  transform: none;
}

.bulletin__toggle {
  appearance: none;
  padding: 5px 12px;
  border: 1px solid var(--line-cyan);
  border-radius: 999px;
  background: transparent;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease);
}

.bulletin__toggle:hover { background: rgba(44, 232, 213, .14); }

.bulletin__toggle[aria-pressed="true"] {
  color: var(--gold);
  border-color: rgba(226, 185, 74, .55);
}

/* ---------- 16. 时间线 ---------- */
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--deep-purple) 55%, var(--chip-magenta));
  opacity: .55;
}

.timeline__item {
  position: relative;
  padding-left: 34px;
}

.timeline__item + .timeline__item { margin-top: 30px; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--night-blue);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 0 4px rgba(44, 232, 213, .12);
}

.surface-ivory .timeline__item::before { background: var(--ivory); }

.timeline__year {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--gold);
}

.timeline__body {
  margin: 0;
  font-size: .96rem;
  line-height: 1.8;
}

.surface-ivory .timeline__body { color: var(--on-light-soft); }

.surface-dark .timeline__body,
.surface-night .timeline__body { color: rgba(246, 241, 231, .74); }

/* ---------- 17. 数字陈述 ---------- */
.stat {
  display: grid;
  gap: 4px;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--chip-red);
}

.surface-dark .stat__num,
.surface-night .stat__num { color: var(--neon-cyan); }

.stat__label {
  font-family: var(--font-ui);
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--mist);
}

/* ---------- 18. 斜切色带 ---------- */
.slash-band {
  height: clamp(46px, 7vw, 92px);
  background: linear-gradient(100deg, var(--table-green), var(--deep-purple) 46%, var(--night-blue));
  clip-path: polygon(0 24%, 100% 0, 100% 76%, 0 100%);
}

.slash-band--flip {
  clip-path: polygon(0 0, 100% 24%, 100% 100%, 0 76%);
}

.slash-band--cyan {
  background: linear-gradient(100deg, var(--neon-cyan), var(--deep-purple) 52%, var(--chip-magenta));
}

/* ---------- 19. 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(44, 232, 213, .24), rgba(44, 232, 213, 0) 60%),
    linear-gradient(140deg, var(--table-green), var(--night-blue));
  isolation: isolate;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--phone { aspect-ratio: 9 / 19; border-radius: 30px; }

.media-frame__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 18, 38, .78);
  color: rgba(246, 241, 231, .88);
  font-family: var(--font-ui);
  font-size: .78rem;
  line-height: 1.4;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ---------- 20. 目录跟随 ---------- */
.toc-rail {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
  display: grid;
  gap: 4px;
  padding: 16px 14px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: rgba(17, 19, 24, .03);
}

.toc-link {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-ui);
  font-size: .88rem;
  text-decoration: none;
  color: var(--mist);
  transition: color .18s var(--ease), border-color .18s var(--ease),
              background-color .18s var(--ease);
}

.toc-link:hover {
  color: var(--ink);
  background: rgba(44, 232, 213, .1);
}

.toc-link[aria-current="true"] {
  color: var(--chip-red);
  border-left-color: var(--chip-red);
  background: rgba(215, 38, 61, .07);
}

.surface-dark .toc-rail,
.surface-night .toc-rail {
  border-color: var(--line-dark);
  background: rgba(246, 241, 231, .04);
}

.surface-dark .toc-link,
.surface-night .toc-link { color: rgba(246, 241, 231, .7); }

.surface-dark .toc-link:hover,
.surface-night .toc-link:hover {
  color: var(--ivory);
  background: rgba(44, 232, 213, .12);
}

.surface-dark .toc-link[aria-current="true"],
.surface-night .toc-link[aria-current="true"] {
  color: var(--neon-cyan);
  border-left-color: var(--neon-cyan);
  background: rgba(44, 232, 213, .1);
}

/* ---------- 21. 返回顶部与分隔 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 75;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(44, 232, 213, .5);
  border-radius: 50%;
  background: var(--night-blue);
  color: var(--neon-cyan);
  font-family: var(--font-ui);
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: translateX(130%);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease);
}

.to-top[data-visible="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--chip-magenta);
  border-color: var(--chip-magenta);
  color: #FFFFFF;
}

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--neon-cyan), rgba(44, 232, 213, 0) 72%);
}

/* ---------- 22. 滚动显现 ---------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.reveal-ready [data-reveal="left"] { transform: translateX(-26px); }

.reveal-ready [data-reveal][data-shown="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 23. 响应式 ---------- */
@media (max-width: 1180px) {
  :root { --header-h: 70px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 980px) {
  :root { --header-h: 64px; }

  body.nav-open { overflow: hidden; }

  .header-frame { width: min(100% - 32px, 1360px); gap: 10px; }

  .brand-mark__glyph { width: 34px; height: 34px; font-size: 1rem; }

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

  .header-cta { order: 3; margin-left: auto; }

  .nav-rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 95;
    width: min(322px, 86vw);
    padding: calc(var(--header-h) + 26px) 22px 44px;
    background: linear-gradient(180deg, var(--night-blue), var(--table-green));
    border-right: 1px solid var(--line-cyan);
    box-shadow: var(--shadow-lift);
    transform: translateX(-102%);
    visibility: hidden;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    transition: transform .3s var(--ease), visibility .3s var(--ease);
  }

  .site-header[data-open="true"] .nav-rail {
    transform: none;
    visibility: visible;
  }

  .nav-track {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    white-space: normal;
  }

  .nav-link {
    display: block;
    padding: 14px;
    font-size: 1.02rem;
    border-radius: 12px;
  }

  .nav-link::after {
    left: 14px;
    right: auto;
    bottom: 9px;
    width: 26px;
  }

  .nav-link[aria-current="page"] { background: rgba(44, 232, 213, .1); }

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

  .toc-rail { position: static; top: auto; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }

  .brand-mark__en { display: none; }

  .header-cta {
    padding: 9px 14px;
    font-size: .8rem;
  }

  .header-cta__dot { width: 6px; height: 6px; }

  .bulletin {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 12px 14px;
  }

  .bulletin__label { grid-column: 1 / -1; }

  .bulletin__viewport { height: 3.3em; }

  .bulletin__item {
    white-space: normal;
    line-height: 1.65em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: clip;
  }

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

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .archive-folder { margin-top: 30px; }
}

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

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

  .reveal-ready [data-reveal],
  .reveal-ready [data-reveal="left"] {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-progress__bar { transition: none; }
}
