/* ============================================================
   财神到玩家 · Site Kit 共享样式
   纸张蓝图底 / 印章红锚点 / 鎏金细线 / 墨绿数据带
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  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%; height: auto; }

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

main { display: block; }

/* ---------- 2. Tokens ---------- */
:root {
  --cs-red: #C4162A;
  --cs-red-deep: #7A0C18;
  --cs-gold: #C9A227;
  --cs-green: #0E2B25;
  --cs-paper: #F7F1E3;
  --cs-ivory: #FFFBF2;
  --cs-orange: #E2571F;
  --cs-blue: #2F6E7E;
  --cs-ink: #14110F;
  --cs-grey: #DCD3C0;

  --cs-line: rgba(20, 17, 15, 0.12);
  --cs-line-soft: rgba(20, 17, 15, 0.08);
  --cs-line-light: rgba(247, 241, 227, 0.16);

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

  --page-x: clamp(18px, 5vw, 72px);
  --gutter: 24px;
  --frame-max: 1440px;
  --radius: 2px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-card: 0 1px 0 rgba(20, 17, 15, 0.04), 0 12px 28px -18px rgba(20, 17, 15, 0.35);
}

/* ---------- 3. 纸张 + 蓝图网格底 ---------- */
body {
  min-height: 100vh;
  background-color: var(--cs-paper);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(20, 17, 15, 0.05) 1px, transparent 0),
    linear-gradient(to right, rgba(20, 17, 15, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 17, 15, 0.045) 1px, transparent 1px);
  background-size: 6px 6px, 72px 72px, 72px 72px;
  color: var(--cs-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.28;
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.2vw, 32px); }
h3 { font-size: clamp(18px, 2vw, 24px); }

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

.site-footer :focus-visible { outline-color: var(--cs-gold); }

.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: absolute;
  left: 12px;
  top: -72px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cs-red);
  color: var(--cs-ivory);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px -12px rgba(122, 12, 24, 0.8);
  transition: top 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { top: 12px; }

/* ---------- 5. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--frame-max);
  margin-inline: auto;
  padding-inline: var(--page-x);
}

.container--narrow { max-width: 900px; }
.container--wide { max-width: 1680px; }

.section { padding-block: clamp(48px, 7vw, 112px); }
.section--tight { padding-block: clamp(32px, 4vw, 64px); }
.breath { height: clamp(64px, 10vw, 160px); }

.grid { display: grid; gap: var(--gutter); }
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--4-8 { grid-template-columns: 4fr 8fr; }
.grid--3-9 { grid-template-columns: 3fr 9fr; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.stack { display: grid; gap: var(--gutter); }
.stack--tight { display: grid; gap: 12px; }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.rule { height: 1px; border: 0; margin: 0; background: var(--cs-line); }
.rule--gold { background: linear-gradient(90deg, var(--cs-gold), rgba(201, 162, 39, 0)); }

/* ---------- 6. 页头：框架式导航 = 页面上边框 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 241, 227, 0.88);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--cs-gold);
  box-shadow: 0 14px 30px -30px rgba(20, 17, 15, 0.7);
}

.header-frame {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav pill";
  align-items: center;
  column-gap: clamp(16px, 2.6vw, 40px);
  max-width: var(--frame-max);
  margin-inline: auto;
  padding-inline: var(--page-x);
  min-height: var(--header-h);
}

/* 品牌印章 */
.seal-lockup {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cs-ink);
}

.seal-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--cs-red);
  color: var(--cs-ivory);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 251, 242, 0.38), 0 3px 8px -4px rgba(122, 12, 24, 0.75);
  transition: background-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.seal-lockup:hover .seal-mark,
.seal-lockup:focus-visible .seal-mark {
  background: var(--cs-red-deep);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.9), 0 3px 10px -4px rgba(122, 12, 24, 0.85);
}

.seal-text { display: grid; gap: 1px; }

.seal-brand {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--cs-ink);
}

.seal-descriptor {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: var(--cs-blue);
  white-space: nowrap;
}

/* 导航 */
.site-nav { grid-area: nav; display: flex; justify-content: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  margin: 0;
  padding: 0;
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cs-ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cs-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease), background-color 0.24s var(--ease);
}

.nav-link:hover { color: var(--cs-red-deep); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--cs-red);
  font-weight: 700;
}

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

/* 版本胶囊 */
.version-pill {
  grid-area: pill;
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 15px;
  border: 1px solid var(--cs-gold);
  border-radius: 999px;
  background: rgba(255, 251, 242, 0.75);
  text-decoration: none;
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease), background-color 0.24s var(--ease);
}

.version-pill:hover,
.version-pill:focus-visible {
  border-color: var(--cs-red);
  background: var(--cs-ivory);
  box-shadow: 0 0 0 3px rgba(196, 22, 42, 0.09);
}

.version-pill-label {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  color: var(--cs-blue);
}

.version-pill-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--cs-red-deep);
  font-variant-numeric: tabular-nums;
}

/* 移动端折叠按钮 */
.nav-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: var(--cs-ivory);
  border: 1px solid var(--cs-gold);
  border-radius: var(--radius);
  color: var(--cs-ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-toggle:hover { border-color: var(--cs-red); }

.nav-toggle-bar {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--cs-red);
  transition: background-color 0.2s var(--ease);
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--cs-red);
  transition: transform 0.2s var(--ease);
}

.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

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

/* 阅读进度条 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cs-red) 0%, var(--cs-orange) 55%, var(--cs-gold) 100%);
  transition: width 0.12s linear;
}

/* ---------- 7. 页脚：墨绿山形收束 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 128px);
  padding-bottom: 40px;
  background-color: var(--cs-green);
  background-image:
    linear-gradient(to right, rgba(247, 241, 227, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247, 241, 227, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  border-top: 1px solid var(--cs-gold);
  color: var(--cs-paper);
  font-size: 14px;
}

.footer-ridge {
  height: 56px;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, transparent 44%, rgba(201, 162, 39, 0.22) 44%, rgba(201, 162, 39, 0.22) 47%, transparent 47%),
    linear-gradient(45deg, transparent 53%, rgba(201, 162, 39, 0.13) 53%, rgba(201, 162, 39, 0.13) 56%, transparent 56%);
  background-size: 160px 56px, 160px 56px;
  background-position: 0 100%, 80px 100%;
  background-repeat: repeat-x;
}

.footer-frame {
  max-width: var(--frame-max);
  margin-inline: auto;
  padding-inline: var(--page-x);
  padding-top: 8px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 4fr) 8fr;
  gap: clamp(24px, 5vw, 64px);
  padding-bottom: clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--cs-line-light);
}

.footer-brand { display: grid; gap: 6px; align-content: start; }

.footer-seal {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--cs-red);
  color: var(--cs-ivory);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid var(--cs-gold);
  transition: background-color 0.24s var(--ease);
}

.footer-seal:hover,
.footer-seal:focus-visible { background: var(--cs-red-deep); }

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--cs-ivory);
  margin-top: 4px;
}

.footer-tagline {
  max-width: 20em;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(247, 241, 227, 0.72);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cs-gold);
  margin-bottom: 10px;
}

.footer-list { display: grid; gap: 2px; }

.footer-link {
  display: inline-block;
  font-size: 14px;
  line-height: 2;
  color: rgba(247, 241, 227, 0.9);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--cs-ivory);
  border-bottom-color: var(--cs-gold);
}

.footer-contact {
  display: grid;
  gap: 6px;
  padding-block: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid var(--cs-line-light);
}

.footer-contact-line {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: rgba(247, 241, 227, 0.86);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.footer-contact-key {
  display: inline-block;
  min-width: 5.6em;
  margin-right: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cs-gold);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 24px;
  align-items: center;
  padding-top: 22px;
}

.footer-note {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(247, 241, 227, 0.6);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.08em;
  color: rgba(247, 241, 227, 0.64);
  font-variant-numeric: tabular-nums;
}

.footer-icp { color: rgba(247, 241, 227, 0.8); }

.footer-copy { letter-spacing: 0.06em; }

.to-top {
  justify-self: end;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cs-ivory);
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.6);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.to-top:hover {
  background: rgba(201, 162, 39, 0.16);
  border-color: var(--cs-gold);
  color: #fff;
}

/* 移动端底部快捷入口 */
.dock { display: none; }

.dock-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  background: transparent;
  color: var(--cs-paper);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.dock-link:hover,
.dock-link:focus-visible { background: rgba(201, 162, 39, 0.2); }

.dock-link--primary {
  background: var(--cs-red);
  border-color: var(--cs-red);
  color: var(--cs-ivory);
}

.dock-link--primary:hover,
.dock-link--primary:focus-visible { background: var(--cs-red-deep); }

/* ---------- 8. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}

.btn--primary {
  background: var(--cs-red);
  color: var(--cs-ivory);
  border-color: var(--cs-red-deep);
  box-shadow: inset 0 1px 0 rgba(255, 251, 242, 0.22);
}
.btn--primary:hover { background: var(--cs-red-deep); }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--cs-ink);
  border-color: var(--cs-gold);
}
.btn--ghost:hover { background: rgba(201, 162, 39, 0.14); border-color: var(--cs-red); color: var(--cs-red-deep); }

.btn--quiet {
  background: var(--cs-ivory);
  color: var(--cs-ink);
  border-color: var(--cs-line);
}
.btn--quiet:hover { border-color: var(--cs-red); color: var(--cs-red); }

.btn--on-dark {
  background: transparent;
  color: var(--cs-paper);
  border-color: rgba(201, 162, 39, 0.6);
}
.btn--on-dark:hover { background: rgba(201, 162, 39, 0.16); color: #fff; }

.btn--sm { min-height: 36px; padding: 7px 14px; font-size: 13px; }

/* ---------- 9. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(20px, 3vw, 36px);
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cs-blue);
}

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

.crumbs li + li::before {
  content: "/";
  color: var(--cs-grey);
}

.crumbs a {
  color: var(--cs-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 110, 126, 0.35);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.crumbs [aria-current="page"] { color: var(--cs-ink); border: 0; }

/* ---------- 10. 编号章节 ---------- */
.chapter {
  position: relative;
  padding-left: clamp(16px, 2vw, 28px);
}

.chapter::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 1px;
  background: var(--cs-gold);
}

.chapter-index {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: rgba(196, 22, 42, 0.18);
  font-variant-numeric: tabular-nums;
}

.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 900;
  line-height: 1.3;
  margin: 0.18em 0 0.1em;
}

.chapter-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cs-blue);
}

/* ---------- 11. 展览说明牌 ---------- */
.exhibit {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px 20px 16px;
  background: var(--cs-ivory);
  border: 1px solid var(--cs-line-soft);
  border-top: 2px solid var(--cs-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-top-color 0.24s var(--ease);
}

.exhibit:hover,
.exhibit:focus-within {
  transform: translateY(-2px);
  border-top-color: var(--cs-red);
  box-shadow: 0 1px 0 rgba(20, 17, 15, 0.05), 0 18px 34px -20px rgba(20, 17, 15, 0.45);
}

.exhibit-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.exhibit-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cs-orange);
  font-variant-numeric: tabular-nums;
}

.exhibit-version {
  flex: none;
  padding: 2px 9px;
  border: 1px solid var(--cs-gold);
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--cs-red-deep);
  transition: border-color 0.24s var(--ease), color 0.24s var(--ease);
}

.exhibit:hover .exhibit-version,
.exhibit:focus-within .exhibit-version { border-color: var(--cs-red); }

.exhibit-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.exhibit-meta {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed var(--cs-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cs-blue);
  font-variant-numeric: tabular-nums;
}

/* ---------- 12. 横向分项条带 ---------- */
.strip {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 20px;
  background: rgba(255, 251, 242, 0.6);
  border-bottom: 1px solid var(--cs-line-soft);
  border-left: 3px solid transparent;
  transition: background-color 0.2s var(--ease), border-left-color 0.2s var(--ease);
}

.strip:hover {
  background: var(--cs-ivory);
  border-left-color: var(--cs-gold);
}

.strip:focus-visible {
  outline: 2px solid var(--cs-red);
  outline-offset: -2px;
  background: var(--cs-ivory);
  border-left-color: var(--cs-red);
}

.strip-index {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cs-orange);
  font-variant-numeric: tabular-nums;
}

.strip-body { flex: 1 1 auto; min-width: 0; }

.strip-title { font-size: 15px; font-weight: 700; line-height: 1.55; }

.strip-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cs-blue);
}

/* ---------- 13. 面板与玻璃层 ---------- */
.glass {
  background: rgba(255, 251, 242, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: var(--radius);
}

.panel {
  background: var(--cs-ivory);
  border: 1px solid var(--cs-line-soft);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
}

.panel--dark {
  background: var(--cs-green);
  color: var(--cs-paper);
  border-color: rgba(201, 162, 39, 0.3);
}

/* ---------- 14. 数据单元 ---------- */
.data-unit {
  display: grid;
  gap: 2px;
  padding-left: 14px;
  border-left: 1px solid var(--cs-gold);
}

.data-unit-value {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cs-ink);
  font-variant-numeric: tabular-nums;
}

.data-unit-unit {
  margin-left: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cs-blue);
}

.data-unit-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cs-blue);
  font-variant-numeric: tabular-nums;
}

/* ---------- 15. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid var(--cs-gold);
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.12em;
  color: var(--cs-ink);
  white-space: nowrap;
}

.tag--live {
  border-color: var(--cs-orange);
  background: rgba(226, 87, 31, 0.1);
  color: var(--cs-orange);
}

.tag--info {
  border-color: var(--cs-blue);
  background: rgba(47, 110, 126, 0.08);
  color: var(--cs-blue);
}

.tag--solid {
  background: var(--cs-red);
  border-color: var(--cs-red);
  color: var(--cs-ivory);
}

/* ---------- 16. 图片容器（页头页脚不放图，供页面阶段使用） ---------- */
.figure {
  position: relative;
  display: block;
  margin: 0;
  background: var(--cs-grey);
  border: 1px solid var(--cs-line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.figure img,
.figure svg,
.figure picture { display: block; width: 100%; height: 100%; object-fit: cover; }

.figure--16x9 { aspect-ratio: 16 / 9; }
.figure--4x3 { aspect-ratio: 4 / 3; }
.figure--1x1 { aspect-ratio: 1 / 1; }
.figure--tall { aspect-ratio: 3 / 4; }

.figure--blueprint {
  background-color: var(--cs-green);
  background-image:
    linear-gradient(to right, rgba(247, 241, 227, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247, 241, 227, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  border-color: rgba(201, 162, 39, 0.4);
}

.figure-glass {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 12px 14px;
  background: rgba(255, 251, 242, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: var(--radius);
}

.figure-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cs-blue);
}

/* ---------- 17. 文本工具 ---------- */
.prose { max-width: 36em; }
.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cs-blue);
}

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

.text-red { color: var(--cs-red); }

/* ---------- 18. 显现动效 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

/* ---------- 19. 响应式 ---------- */
@media (max-width: 1100px) {
  .grid--3-9,
  .grid--4-8 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .grid--5-7,
  .grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }

  .header-frame {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand toggle" "nav nav";
    column-gap: 12px;
    row-gap: 0;
    padding-block: 10px;
    min-height: 0;
  }

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

  .site-nav {
    grid-area: nav;
    display: none;
    justify-content: stretch;
    margin-top: 8px;
  }

  .site-nav[data-open] {
    display: flex;
    flex-direction: column;
    background: var(--cs-ivory);
    border-top: 1px solid var(--cs-gold);
    border-bottom: 1px solid var(--cs-line-soft);
    padding: 4px 10px 10px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-item { width: 100%; }

  .nav-link {
    display: block;
    padding: 13px 8px;
    font-size: 16px;
    border-bottom: 1px solid var(--cs-line-soft);
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    padding-left: 14px;
    background: rgba(196, 22, 42, 0.06);
    border-left: 2px solid var(--cs-gold);
  }

  .version-pill { display: none; }

  .seal-descriptor { display: none; }
  .seal-mark { width: 36px; height: 36px; font-size: 19px; }
  .seal-brand { font-size: 17px; }

  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { grid-template-columns: 1fr; }
  .to-top { justify-self: start; }

  .dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    background: rgba(14, 43, 37, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--cs-gold);
    border-radius: 999px;
    box-shadow: 0 14px 30px -16px rgba(14, 43, 37, 0.8);
  }

  .site-footer { padding-bottom: 104px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-contact-key { min-width: 0; display: block; margin-right: 0; }
  .chapter-index { font-size: 44px; }
  .strip { flex-wrap: wrap; gap: 8px; }
}

/* ---------- 20. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .js .reveal { opacity: 1 !important; transform: none !important; }

  .exhibit:hover,
  .exhibit:focus-within { transform: none; }
}
