/* ============================================================
   AI 原生 SDLC 实践手册 — 设计系统
   还原 Anthropic《The AI-Native SDLC Playbook》原始版式
   ============================================================ */

:root {
  /* 纸面与墨色 */
  --paper: #FAF9F5;
  --ink: #1C1B17;
  --ink-soft: #35332E;
  --muted: #55524B;
  --faint: #8B877C;
  --footer-ink: #A5A196;
  --line: #E3DFD5;
  --line-strong: #D8D4C9;

  /* 深色（封面 / 深色卡片） */
  --dark: #1E1C1B;
  --dark-2: #23221E;
  --dark-code: #12110F;
  --dark-ink: #F5F3EE;
  --dark-soft: #C9C5BC;
  --dark-faint: #8E8A81;

  /* Claude 橙 */
  --orange: #D97757;
  --orange-deep: #CE6E4A;
  --orange-ink: #C06640;

  /* 卡片 */
  --card-gray: #EFECE4;
  --card-trad: #F0EEE8;
  --card-ai: #F8E8E0;
  --card-ai-label: #C4653F;

  /* 章节分隔页 */
  --div-1: #C5D3E0;
  --div-2: #CBCADB;
  --div-3: #EBC9B7;
  --div-4: #BCD1CA;
  --div-5: #CED6BF;
  --div-6: #E3D8C5;

  /* 引用卡 */
  --quote-orange: #D2704B;
  --quote-lilac: #C9C8D6;
  --quote-green: #C7CDB2;
  --quote-sand: #DFD5C1;

  --serif: "TsangerJinKai01", "Noto Serif SC", "Songti SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
  --sans: "TsangerJinKai01", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --page-w: 850px;
  --page-h: 1100px;
  --pad-x: 100px;
  --pad-top: 84px;
  --pad-bottom: 96px;
}

/* 打印 / 导出 PDF 时强制保留背景色（封面、分隔页、深色卡、代码块） */
html {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: #171613;
  font-family: var(--serif);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 44px;
  background: rgba(23, 22, 19, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.topbar-left { display: flex; align-items: center; gap: 9px; }
.topbar-logo { display: inline-flex; }
.topbar-title {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: #E8E5DE;
  font-weight: 500;
}
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-page {
  font-family: var(--sans);
  font-size: 12px;
  color: #9B978D;
  letter-spacing: 0.08em;
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}
.tb-btn {
  font-family: var(--sans);
  font-size: 12.5px;
  color: #D9D5CC;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  height: 28px;
  min-width: 32px;
  padding: 0 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tb-btn:hover { background: rgba(255, 255, 255, 0.13); color: #fff; }

/* ---------- 目录抽屉 ---------- */
.toc-scrim {
  position: fixed; inset: 0;
  background: rgba(10, 10, 8, 0.45);
  z-index: 70;
}
.toc-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 320px;
  background: #1D1C18;
  color: #E8E5DE;
  z-index: 80;
  transform: translateX(-105%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.toc-drawer.open { transform: translateX(0); }
.toc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.toc-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--orange);
}
.toc-close {
  background: none; border: none; color: #9B978D;
  font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px;
}
.toc-close:hover { color: #fff; }
.toc-list {
  list-style: none;
  overflow-y: auto;
  padding: 10px 0 24px;
  flex: 1;
}
.toc-list li { }
.toc-item {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 20px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.toc-item:hover { background: rgba(255, 255, 255, 0.05); }
.toc-item.active { background: rgba(217, 119, 87, 0.14); }
.toc-num {
  font-family: var(--sans);
  font-size: 11px;
  color: #7E7A70;
  min-width: 20px;
  font-variant-numeric: tabular-nums;
}
.toc-item.active .toc-num { color: var(--orange); }
.toc-text { display: flex; flex-direction: column; gap: 2px; }
.toc-name { font-family: var(--serif); font-size: 14.5px; color: #EDEAE3; }
.toc-sub { font-family: var(--sans); font-size: 11px; color: #8A867C; }

/* ---------- 书本画布 ---------- */
.book {
  padding: 88px 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

/* ---------- 页面（纸张） ---------- */
.page {
  width: var(--page-w);
  min-height: var(--page-h);
  background: var(--paper);
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 14px 40px rgba(0,0,0,0.42);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.page-inner {
  flex: 1;
  padding: var(--pad-top) var(--pad-x) 40px;
}
.page-footer {
  padding: 0 var(--pad-x) 52px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--footer-ink);
  letter-spacing: 0.02em;
}
.page-footer::before { content: none; }
.page-footer .pf-num { font-variant-numeric: tabular-nums; }

/* 缩览聚焦态 */
.page.flash { animation: pageflash 1.6s ease; }
@keyframes pageflash {
  0% { box-shadow: 0 0 0 3px rgba(217,119,87,0.0), 0 14px 40px rgba(0,0,0,0.42); }
  20% { box-shadow: 0 0 0 3px rgba(217,119,87,0.85), 0 14px 40px rgba(0,0,0,0.42); }
  100% { box-shadow: 0 0 0 3px rgba(217,119,87,0.0), 0 14px 40px rgba(0,0,0,0.42); }
}

/* ============================================================
   封面
   ============================================================ */
.page.cover {
  background: var(--dark);
  color: var(--dark-ink);
  justify-content: flex-start;
}
.cover-inner {
  padding: 148px 96px 96px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cover-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 128px;
}
.cover-brand svg { display: block; }
.cover-brand .cb-name {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FCFBF8;
}
.cover-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: #8E8A81;
  margin-bottom: 26px;
}
.cover-title {
  font-family: var(--serif);
  font-size: 74px;
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #FBFAF6;
  margin-bottom: 44px;
}
.cover-sub {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: #D8D4CB;
  max-width: 420px;
}
.cover-sub .dim { color: #B9B5AB; }

/* ============================================================
   目录页
   ============================================================ */
.toc-page .toc-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
}
.toc-page .toc-logo svg { display: block; }
.toc-page .toc-logo-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}
.toc-page .toc-eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  color: var(--orange);
  margin-bottom: 18px;
}
.toc-page h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 32px;
}
.toc-entries { list-style: none; }
.toc-entries li {
  border-top: 1px solid var(--line);
  padding: 15px 0 13px;
  display: grid;
  grid-template-columns: 64px 1fr;
}
.toc-entries li:last-child { border-bottom: 1px solid var(--line); }
.toc-entries .te-num {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--faint);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.toc-entries .te-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.toc-entries .te-sub {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
}
.toc-byline {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--faint);
}

/* ============================================================
   通用文字元素
   ============================================================ */
.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--orange);
  margin-bottom: 20px;
}
.page-title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.14;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 30px;
}
.page-title.lg { font-size: 42px; }
.page-title.sm { font-size: 26.5px; margin-bottom: 24px; }

.lead {
  font-family: var(--serif);
  font-size: 22.5px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 26px;
}
.lead.sm { font-size: 16.5px; line-height: 1.4; margin-bottom: 24px; }
.lead strong, .page-body strong { font-weight: 700; }

.page-body p {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-bottom: 17px;
}
.page-body p:last-child { margin-bottom: 0; }

.page-body ul, .page-body ol {
  margin: 0 0 17px 0;
  padding-left: 26px;
}
.page-body li {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 9px;
  padding-left: 4px;
}
.page-body ul li::marker { color: var(--faint); }
.page-body ol li::marker { color: var(--faint); font-family: var(--sans); font-size: 14px; }

.h-section {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin: 34px 0 14px;
}

/* 行内代码 */
code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: #ECE9E0;
  border-radius: 4px;
  padding: 1.5px 5px;
  color: #33312B;
  word-break: break-word;
}

/* ============================================================
   代码块
   ============================================================ */
.code-block { margin: 16px 0 24px; }
.code-label {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}
.code-label code { font-size: 0.86em; background: none; padding: 0; font-weight: 600; }
pre.code {
  background: var(--card-gray);
  border-radius: 10px;
  padding: 14px 24px 18px;
  font-family: var(--mono);
  font-size: 11.3px;
  line-height: 1.65;
  color: #2B2A27;
  overflow-x: auto;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}
pre.code.dark {
  background: #131210;
  color: #D9D5CC;
}

/* ============================================================
   传统 / AI 原生 对比卡
   ============================================================ */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 30px 0 8px;
  align-items: stretch;
}
.cmp-col { border-radius: 10px; padding: 26px 26px 28px; }
.cmp-col.trad { background: var(--card-trad); }
.cmp-col.ai { background: var(--card-ai); }
.cmp-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}
.cmp-col.trad .cmp-label { color: #8B877C; }
.cmp-col.ai .cmp-label { color: var(--card-ai-label); }
.cmp-col p {
  font-size: 14.2px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ============================================================
   快速上手（Getting started）
   ============================================================ */
.gs {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  margin: 28px 0 24px;
}
.gs-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--orange);
  margin-bottom: 12px;
}
.gs-rows { border-bottom: 1px solid var(--line); }
.gs-row {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.gs-row:first-child { border-top: none; }
.gs-k {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--faint);
  padding-top: 2px;
}
.gs-v {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.gs-v code { font-size: 0.85em; }

/* ============================================================
   度量（How to measure it）
   ============================================================ */
.measure { margin: 16px 0 0; }
.measure-rows { border-bottom: 1px solid var(--line); }
.measure-row {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.measure-k {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--faint);
  padding-top: 2px;
}
.measure-v { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* ============================================================
   图（Figure）
   ============================================================ */
.fig { margin: 30px 0 8px; }
.fig-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}
.fig-num {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--orange);
  white-space: nowrap;
}
.fig-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.fig-canvas {
  background: #EFECE3;
  border-radius: 12px;
  padding: 30px 32px;
}
.fig-caption {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.6;
  color: #8E8A7E;
  margin-top: 14px;
}

/* 瓶颈移动图 */
.bn-row { margin-bottom: 22px; }
.bn-row:last-child { margin-bottom: 0; }
.bn-caption {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.bn-caption b { font-weight: 700; }
.bn-lane { display: flex; align-items: center; gap: 6px; }
.bn-pill {
  font-family: var(--sans);
  font-size: 12px;
  color: #F2EFE8;
  background: #211F1B;
  border-radius: 5px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  white-space: nowrap;
}
.bn-pill.hot { background: var(--orange-deep); flex: 1; }
.bn-slim {
  background: var(--orange-deep);
  border-radius: 5px;
  width: 10px;
  height: 38px;
  flex: none;
}
.bn-ghost {
  flex: 1;
  height: 38px;
  border: 1px dashed #B7B2A5;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 12px;
  color: #8E8A7E;
  white-space: nowrap;
}
.bn-labels {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.bn-labels span {
  font-family: var(--sans);
  font-size: 11px;
  color: #9B978A;
  text-align: center;
  min-width: 40px;
}

/* 线与环图 */
.loop-fig {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 34px;
  align-items: start;
}
.line-stack { display: flex; flex-direction: column; align-items: center; gap: 0; }
.line-node {
  width: 100%;
  background: #211F1B;
  color: #F2EFE8;
  font-family: var(--sans);
  font-size: 12px;
  border-radius: 5px;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 14px;
}
.line-arrow {
  color: #9B978A;
  font-size: 13px;
  line-height: 1;
  padding: 4px 0;
}
.loop-wrap { display: flex; justify-content: center; }
.loop-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 12px;
}
.loop-note b { font-weight: 700; }

/* ============================================================
   转变表
   ============================================================ */
.shift-table { margin: 26px 0 10px; }
.shift-table table {
  width: 100%;
  border-collapse: collapse;
}
.shift-table th {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--faint);
  text-align: left;
  padding: 0 14px 12px 0;
  border-bottom: 1px solid var(--ink);
}
.shift-table th:first-child { width: 118px; }
.shift-table td {
  vertical-align: top;
  padding: 16px 14px 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.8px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.shift-table td.stage {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.shift-table td code { font-size: 0.82em; }

/* ============================================================
   引用卡（彩色 / 深色）
   ============================================================ */
.quote-card {
  border-radius: 12px;
  padding: 42px 44px;
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 36px 0 6px;
}
.quote-card .qc-icon { flex: none; display: flex; }
.quote-card p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 500;
}
.quote-card .qc-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #7D7A90;
  margin-bottom: 10px;
}
.quote-card.orange { background: var(--quote-orange); color: #FBF3EE; }
.quote-card.lilac { background: var(--quote-lilac); color: var(--ink); }
.quote-card.green { background: var(--quote-green); color: var(--ink); }
.quote-card.sand { background: var(--quote-sand); color: var(--ink); }

/* ============================================================
   深色大卡（Sidebar / Worked example）
   ============================================================ */
.dark-card {
  background: #141413;
  border-radius: 14px;
  margin: 30px 0 10px;
  padding: 21px 25px 38px;
  color: var(--dark-soft);
}
.dark-card .dc-eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--orange);
  margin-bottom: 16px;
}
.dark-card h2 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  color: #FBFAF6;
  margin-bottom: 18px;
}
.dark-card .dc-sub {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--dark-faint);
  margin-bottom: 0;
  line-height: 1.45;
}
.dark-card p {
  font-size: 13.9px;
  line-height: 1.47;
  color: #C6C2B9;
  margin-bottom: 11px;
}
.dark-card p:last-child { margin-bottom: 0; }
.dark-card p strong { color: #F1EEE8; font-weight: 700; }
.dark-card .dc-rule {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.16);
  margin: 26px 0 30px;
  width: 120px;
}
.dark-card .dc-label {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #A29E93;
  margin-bottom: 16px;
}
.dark-card pre.code {
  margin-top: 20px;
  background: #242422;
  color: #E4E2D9;
  padding: 17px 22px;
}

/* 侧栏双栏变体 */
.dark-card.sidebar {
  display: grid;
  grid-template-columns: 150px 1fr;
  column-gap: 38px;
}
.dark-card.sidebar .dc-rule {
  width: 100%;
  border-top: 2px solid var(--orange);
  margin: 2px 0 15px;
}
.dark-card.sidebar h2 { margin-bottom: 16px; }
.dark-card.sidebar .dc-main p:last-child { margin-bottom: 0; }

/* ============================================================
   Slack 对话卡（图 4）
   ============================================================ */
.slack-card {
  background: #FFFFFF;
  border: 1px solid #E2DED4;
  border-radius: 12px;
  padding: 26px 30px 28px;
}
.slack-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid #ECE9E0;
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.slack-chan { font-family: var(--mono); font-size: 14px; font-weight: 600; color: #33312B; }
.slack-meta { font-family: var(--sans); font-size: 12px; color: #9B978A; }
.slack-msg { display: grid; grid-template-columns: 44px 1fr; gap: 12px; margin-bottom: 18px; }
.slack-msg:last-child { margin-bottom: 0; }
.slack-av {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
}
.slack-av.rm { background: #E8E6E0; color: #6B675C; }
.slack-av.claude { background: var(--orange); }
.slack-body .s-name { font-family: var(--sans); font-size: 13.5px; font-weight: 700; color: #2B2A25; margin-right: 8px; }
.slack-body .s-time { font-family: var(--sans); font-size: 11.5px; color: #A5A196; }
.slack-body .s-text { font-size: 14px; line-height: 1.55; color: #2E2C27; margin-top: 3px; }
.slack-body .s-text code { font-size: 0.84em; }
.slack-body .s-text .mention { color: #B34E2C; }

/* ============================================================
   章节分隔页
   ============================================================ */
.page.divider {
  background: var(--div, var(--div-1));
  justify-content: flex-start;
}
.divider-inner {
  flex: 1;
  padding: 118px 96px 90px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.divider-rule {
  width: 420px;
  max-width: 60%;
  height: 1px;
  background: rgba(28, 27, 23, 0.28);
  margin-bottom: 30px;
}
.divider-num {
  font-family: var(--serif);
  font-size: 121px;
  line-height: 0.9;
  font-weight: 400;
  color: rgba(28, 27, 23, 0.22);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.divider-title {
  font-family: var(--serif);
  font-size: 66px;
  line-height: 1.05;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 36px;
}
.divider-desc {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: #3A3831;
  max-width: 400px;
}
.divider-art {
  position: absolute;
  right: 118px;
  bottom: 106px;
}

/* ============================================================
   资源页
   ============================================================ */
.res-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  margin: 30px 0 10px;
}
.res-item {
  border-top: 1px solid var(--line);
  padding: 14px 0 13px;
}
.res-item .res-name { font-size: 14px; line-height: 1.5; color: var(--ink); margin-bottom: 7px; }
.res-item .res-link {
  font-family: var(--mono);
  font-size: 11.2px;
  color: var(--orange-ink);
  word-break: break-all;
}
.thanks {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-top: 0;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

/* ============================================================
   依赖图（Figure 3，SVG）
   ============================================================ */
.dep-svg { width: 100%; height: auto; display: block; }
.dep-svg text { font-family: var(--mono); }
.dep-svg .col-head {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  fill: #8E8A7E;
  text-anchor: middle;
}
.dep-svg .blk-t { font-size: 12.5px; fill: #F4F1EA; text-anchor: middle; }
.dep-svg .legend-t { font-family: var(--sans); font-size: 11.5px; fill: #55524B; }

/* ============================================================
   打印
   ============================================================ */
@media print {
  @page { size: 8.5in 11in; margin: 0; }
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body { background: #fff; }
  .topbar, .toc-drawer, .toc-scrim { display: none !important; }
  .book { padding: 0; gap: 0; display: block; zoom: 1 !important; }
  .page {
    width: 8.5in;
    height: 11in;
    min-height: 11in;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
    overflow: hidden;
  }
  .page:last-child { break-after: auto; page-break-after: auto; }
}

/* ============================================================
   窄屏适配
   ============================================================ */
@media (max-width: 900px) {
  .book { zoom: calc((100vw - 24px) / 850); }
  .topbar-title { display: none; }
}
