/* Generated by packages/ui/build-tokens.mjs from tokens.json — do not edit. */
:root,
::backdrop {
  --sk-light-bg: #f5f6f9;
  --sk-light-paper: #fff;
  --sk-light-ink: #141926;
  --sk-light-body: #2b3546;
  --sk-light-muted: #5c6578;
  --sk-light-line: #dfe3ea;
  --sk-light-line2: #c9d0db;
  --sk-light-accent2: #96600a;
  --sk-light-on-accent2: #fff;
  --sk-light-danger: #b23b37;
  --sk-light-bad-ink: #b4231f;
  --sk-light-bad-bg: #fdecec;
  --sk-light-bad-line: #e3a5a3;
  --sk-light-ok: #1d6b3a;
  --sk-light-ok-bg: #e9f6ee;
  --sk-light-ok-line: #a8d8b9;
  --sk-light-amber-bg: #fff7e3;
  --sk-light-amber-line: #f1dc9c;
  --sk-light-amber-ink: #6b4e00;
  --sk-light-field: #fff;
  --sk-light-turn: #fafbfc;
  --sk-light-top: #ffffffeb;
  --sk-light-box: #fbf7ee;
  --sk-light-box-line: #efe2c4;
  --sk-light-heat-1: #f5dfae;
  --sk-light-heat-2: #efc46f;
  --sk-light-heat-3: #e8a33d;
  --sk-light-heat-4: #b8741a;
  --sk-light-bar: #f5f6f9eb;
  --sk-sepia-bg: #efe7d6;
  --sk-sepia-paper: #f9f3e4;
  --sk-sepia-ink: #2d2719;
  --sk-sepia-body: #3f382a;
  --sk-sepia-muted: #63584a;
  --sk-sepia-line: #e2d8c2;
  --sk-sepia-accent2: #8a5a08;
  --sk-sepia-on-accent2: #fff;
  --sk-sepia-top: #f9f3e4eb;
  --sk-sepia-box: #f3e6c6;
  --sk-sepia-box-line: #ddcb9f;
  --sk-sepia-bar: #efe7d6eb;
  --sk-dark-bg: #0f1420;
  --sk-dark-paper: #151c2b;
  --sk-dark-ink: #eef0f3;
  --sk-dark-body: #cfd4dc;
  --sk-dark-muted: #8b93a1;
  --sk-dark-line: #223049;
  --sk-dark-line2: #2a3650;
  --sk-dark-accent2: #f2c46b;
  --sk-dark-on-accent2: #0f1a2e;
  --sk-dark-bad-ink: #f3b9b6;
  --sk-dark-bad-bg: #3a1c1c;
  --sk-dark-bad-line: #7a3a38;
  --sk-dark-ok: #a8e3bd;
  --sk-dark-ok-bg: #12291b;
  --sk-dark-ok-line: #2f5c3f;
  --sk-dark-amber-bg: #2a2410;
  --sk-dark-amber-line: #5a4a12;
  --sk-dark-amber-ink: #f2d27a;
  --sk-dark-field: #0c1526;
  --sk-dark-turn: #0f1a2e;
  --sk-dark-top: #151c2beb;
  --sk-dark-box: #1d2333;
  --sk-dark-box-line: #33405c;
  --sk-dark-heat-0: #223049;
  --sk-dark-heat-1: #5a4a12;
  --sk-dark-heat-2: #8a6414;
  --sk-dark-heat-3: #c48a2a;
  --sk-dark-heat-4: #f2c46b;
  --sk-dark-danger: #f08a84;
  --sk-dark-bar: #0f1420eb;
  --sk-side-bg-top: #121a2b;
  --sk-side-bg-bottom: #0c1220;
  --sk-side-edge: #1d2638;
  --sk-side-ink: #cfd6e3;
  --sk-side-ink-strong: #e6ebf5;
  --sk-side-ink-2: #aeb7c8;
  --sk-side-muted: #7f8aa3;
  --sk-side-k: #8f9ab0;
  --sk-side-tag: #9aa5bb;
  --sk-side-gold: #c98f36;
  --sk-side-btn-line: #243049;
  --sk-side-menu-bg: #182238;
  --sk-side-line: #2a3650;
  --sk-accent: #e8a33d;
  --sk-on-accent: #141926;
  --sk-white: #fff;
  --sk-accent-a08: #e8a33d14;
  --sk-accent-a25: #e8a33d40;
  --sk-accent-a35: #e8a33d59;
  --sk-accent-a50: #e8a33d80;
  --sk-accent-a85: #e8a33dd9;
  --sk-white-a05: #ffffff0d;
  --sk-white-a06: #ffffff0f;
  --sk-white-a07: #ffffff12;
  --sk-white-a12: #ffffff1f;
  --sk-white-a40: #fff6;
  --sk-black-a10: #0000001a;
  --sk-black-a12: #0000001f;
  --sk-black-a15: #00000026;
  --sk-black-a28: #00000047;
  --sk-black-a35: #00000059;
  --sk-black-a40: #0006;
  --sk-black-a42: #0000006b;
  --sk-black-a45: #00000073;
  --sk-black-a50: #00000080;
  --sk-scrim-nav: #0a101c73;
  --sk-scrim-lightbox: #0a0e16f0;
  --sk-toast-bg: #222;
  --sk-cover-bg: #0f1a2e;
  --sk-shell-bg: #f2b84b;
  --sk-shell-ink: #3b2a00;
  --sk-watermark: #80808029;
  --sk-black-a60: #00000099;
}
/* Free sample pages: /book/preface/ and /book/chapter-1/ (build/render_free.mjs, 阅读器-实施计划 批 2 第 4 条).
   The page around the text: header, title, the section list, the contents, the call to action, footer. The text
   itself (paragraphs in chunks, tables, figures, the 老板速览 box, tagged paragraphs, footnotes) is styled by
   reader-core/text.css, the same rules as the reading page (批 5a-2), linked through the reader-free entry. */
:root,
:root[data-theme="white"] {
  --bg: var(--sk-light-bg);
  --paper: var(--sk-light-paper);
  --ink: var(--sk-light-ink);
  --body: var(--sk-light-body);
  --muted: var(--sk-light-muted);
  --line: var(--sk-light-line);
  --accent: var(--sk-light-accent2); /* 5.2:1 on white (WCAG AA) */
  --on-accent: var(--sk-light-on-accent2);
  --gold: var(--sk-accent);
  --box: var(--sk-light-box);
  --box-line: var(--sk-light-box-line);
  --bar: var(--sk-light-bar);
  /* the text's rules and links (reader-core/text.css); the term card and the Aa panel take --rc-link too */
  --rc-mark: var(--gold);
  --rc-link: var(--accent);
  color-scheme: light;
}
/* the system's dark, and the reader's 夜间: the reading page's night colours (reader-core/reader.css) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--sk-dark-bg);
    --paper: var(--sk-dark-paper);
    --ink: var(--sk-dark-ink);
    --body: var(--sk-dark-body);
    --muted: var(--sk-dark-muted);
    --line: var(--sk-dark-line);
    --accent: var(--sk-dark-accent2);
    --on-accent: var(--sk-dark-on-accent2); /* light gold needs dark text (white was 1.6:1) */
    --box: var(--sk-dark-box);
    --box-line: var(--sk-dark-box-line);
    --bar: var(--sk-dark-bar);
    color-scheme: dark;
  }
}
/* the reader's own choice in the Aa panel (lib/free-look.ts sets data-theme; 'auto' leaves it to the system) */
:root[data-theme="sepia"] {
  --bg: var(--sk-sepia-bg);
  --paper: var(--sk-sepia-paper);
  --ink: var(--sk-sepia-ink);
  --body: var(--sk-sepia-body);
  --muted: var(--sk-sepia-muted); /* ≥ 4.5:1 on the sepia paper and background */
  --line: var(--sk-sepia-line);
  --accent: var(--sk-sepia-accent2);
  --on-accent: var(--sk-sepia-on-accent2);
  --box: var(--sk-sepia-box);
  --box-line: var(--sk-sepia-box-line);
  --bar: var(--sk-sepia-bar);
  color-scheme: light;
}
:root[data-theme="night"] {
  --bg: var(--sk-dark-bg);
  --paper: var(--sk-dark-paper);
  --ink: var(--sk-dark-ink);
  --body: var(--sk-dark-body);
  --muted: var(--sk-dark-muted);
  --line: var(--sk-dark-line);
  --accent: var(--sk-dark-accent2);
  --on-accent: var(--sk-dark-on-accent2);
  --box: var(--sk-dark-box);
  --box-line: var(--sk-dark-box-line);
  --bar: var(--sk-dark-bar);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
/* anchors (a section from 本页小节, a footnote's ↩, the resume button) stop 16 px below the sticky header: 70 px
   high on a computer, 60 px at 600 px and below (二-076; it was 64 px under a 70 px header) */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font:
    17px / 1.9 -apple-system,
    "PingFang SC",
    "Noto Sans SC",
    sans-serif;
}
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 3;
  transition: width 0.1s linear;
}
header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bar);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
header .in {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
header .tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* the Aa panel's button: shown by the script (a page without it has no panel). Its panel is placed by the script:
   under the header, its right edge under the button (--rc-aa-top / --rc-aa-right) */
header .aa {
  position: relative;
  height: 36px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
header .aa[aria-expanded="true"] {
  background: var(--bg);
}
/* 44 px to tap (as on the reading page) without a taller header: an invisible band above and below */
header .aa::before,
header a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}
header .aa[hidden] {
  display: none;
}
header .aa:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
header a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
header a.back {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
main {
  max-width: 760px;
  margin: 20px auto 80px;
  padding: 0 20px;
}
/* the reader's margins (Aa · 页边距): a wider or narrower column, as on the reading page; the header and footer keep
   to the same column */
:root[data-margin="narrow"] main,
:root[data-margin="narrow"] header .in {
  max-width: 860px;
}
:root[data-margin="wide"] main,
:root[data-margin="wide"] header .in {
  max-width: 660px;
}
/* the reader's size, line height and font (Aa) apply to the text only; without the script the page's own */
[data-reader-free] .ck {
  font-size: var(--rc-fs, inherit);
  line-height: var(--rc-lh, inherit);
}
/* 「加粗」 (作者 2026-11-13, the same as the reading page since 31d5df1): the text one face heavier — the system
   fonts' real medium (PingFang SC, Noto Sans CJK); a font without one keeps its regular face rather than a synthetic
   bold. Headings and bold runs stay bolder still. lib/free-look.ts sets data-weight (二-077). */
:root[data-weight="b"] [data-reader-free] .ck {
  font-weight: 500;
  font-synthesis-weight: none;
}
/* 第六轮补修 I 第 3 条: the body text justified and broken greedily, as on the reading page (surface.css) */
[data-reader-free] .ck p,
[data-reader-free] .ck li {
  text-align: justify;
  text-wrap: wrap;
  line-break: strict;
}
/* tables (reader-core/text.css draws them): no column narrower than a few characters, so a short cell is no longer
   one character per line (「德 / 国」); a table of four or more columns gets the width it needs and scrolls inside
   its own box (.tbl, overflow-x: auto) rather than squeezing every column into a phone's width (二-022) */
[data-reader-free] .ck th,
[data-reader-free] .ck td {
  min-width: 5em;
  text-wrap: pretty; /* 第七轮 fix7-E: as the reading page (surface.css, 五-112): no last character alone on a cell's line */
}
/* 第七轮 fix7-E: a short cell on one line, as the reading page's .nw (surface.css, 五-112) — the free pages had the class
   (render/index.ts SHORT_CELL) but not the rule */
[data-reader-free] .ck .nw {
  white-space: nowrap;
}
[data-reader-free] .ck table:has(tr > :nth-child(5)) {
  min-width: 32em;
}
/* 第六轮补修 I 第 2 条 (作者 2026-11-19): up to four columns fit a phone (as the reading page, reader-core surface.css);
   five or more scroll, their right edge fading under a line that says so */
@media (max-width: 600px) {
  [data-reader-free] .ck table {
    font-size: 0.76em; /* four columns of short cells (6, 6, 4 and 5 characters) fit 320 px: a 360 px phone */
  }
  [data-reader-free] .ck th,
  [data-reader-free] .ck td {
    min-width: 2.5em;
    padding: 0.4em 0.35em;
  }
  /* 第七轮 fix7-E (六-116 / 五-112): the reading page tries these table by table (reader-core surface/tables.ts); this
     static page keeps the one that costs the least room — a first-column cell of short phrases broken only between
     them */
  [data-reader-free] .ck .kp .kn {
    white-space: nowrap;
  }
  [data-reader-free] .ck .kp {
    word-break: keep-all;
  }
  /* the page's text is 22 px narrower than the reading page's (its card's padding): a table takes 12 px of it on each
     side, so it has the reading page's width and its four columns fit as they do there */
  [data-reader-free] .ck .tbl {
    margin-inline: -12px;
  }
  [data-reader-free] .ck .tbl:has(tr > :nth-child(5)) {
    padding-right: 28px;
    -webkit-mask-image: linear-gradient(to right, var(--sk-white) calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, var(--sk-white) calc(100% - 28px), transparent);
  }
  [data-reader-free] .ck .tbl:has(tr > :nth-child(5))::before {
    content: "左右滑动查看 →";
    position: sticky;
    left: 0;
    display: block;
    font-size: 0.78em;
    color: var(--muted);
    margin-bottom: 0.3em;
  }
}
/* a footnote's ↩ ends its note: a larger invisible target, wider to its right where no text follows (二-080) */
[data-reader-free] .ck .notes a.back::after {
  inset: -12px -14px -12px -6px;
}
/* the term card and the Aa panel sit outside the text: no first-line indent from the page's paragraphs (第四节 34) */
:is(.rc-term, .rc-aa, .rc-pop, .rc-ask) p {
  text-indent: 0;
}
/* the 「接着上次读」 button waits while the Aa panel is open: it sat over the panel's 「更多」 (二-079) */
body:has(.rc-aa) .rc-resume {
  display: none;
}
:root[data-font="serif"] [data-reader-free] .ck {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
}
article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 44px clamp(20px, 6vw, 60px);
}
.kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}
.book {
  font-size: 15px;
  color: var(--muted);
  margin: 4px 0 26px;
}
h1 {
  font-size: 28px;
  line-height: 1.4;
  color: var(--ink);
  margin: 6px 0 4px;
  text-wrap: balance;
}
h2 {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
  margin: 40px 0 12px;
  text-wrap: balance;
}
p {
  margin: 0 0 16px;
  text-indent: 2em;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0 0 18px;
  padding-left: 1.4em;
}
li {
  margin: 6px 0;
}
strong {
  color: var(--ink);
}
details.nav {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 15px;
}
details.nav summary {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.nav summary::-webkit-details-marker {
  display: none;
}
details.nav summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
}
details.nav[open] summary::after {
  content: "\2212";
}
details.nav ol {
  margin: 0;
  padding: 0 14px 12px 32px;
}
details.nav li {
  margin: 4px 0;
}
details.nav a {
  color: var(--body);
  text-decoration: none;
}
details.nav a:hover {
  color: var(--accent);
}
.toc {
  list-style: none;
  padding: 0;
  font-size: 15.5px;
  line-height: 1.8;
}
.toc li {
  margin: 4px 0;
}
.toc a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.toc .free {
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
}
.cta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.cta p {
  text-indent: 0;
}
.cta .acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.cta a.btn,
.cta .btn.wait {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.cta a.btn.pri {
  background: var(--accent);
  color: var(--on-accent);
}
.cta a.btn.sec {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
}
.cta .btn.wait {
  border: 1px dashed var(--line);
  color: var(--muted);
}
/* device walk 2026-11-21 (the owner's call): the same footer box as the home page's — 1080 px, 32 px in (20 on a
   phone), the brand on the left and the links on the right; the reader's margins (Aa) no longer move it */
footer {
  width: 100%;
  max-width: 1080px;
  box-sizing: border-box;
  margin: 0 auto 40px;
  padding: 0 32px 56px; /* room below for the back-to-top button on phones */
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
footer a {
  color: var(--muted);
  white-space: nowrap;
}
footer > :first-child {
  margin-right: auto;
}
@media (max-width: 720px) {
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
/* touch screens: the footer links are 44 px rows (二-080) */
@media (pointer: coarse) {
  footer {
    gap: 0 14px; /* device walk 2026-11-21: 18 px wrapped 「联系我们」 to a second row on a 360 px phone; 14 as on /privacy/ */
    align-items: center;
  }
  footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
  }
}
#totop {
  position: fixed;
  right: 16px;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 4px 14px var(--sk-black-a12);
  opacity: 0;
  visibility: hidden; /* out of the Tab order while it is not shown (批 1–3 留下, 批 5c-2) */
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0s linear 0.2s;
  z-index: 2;
}
#totop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
@media (max-width: 600px) {
  body {
    font-size: 17px;
    line-height: 1.8;
  }
  main {
    margin-top: 12px;
    padding: 0 12px;
  }
  article {
    padding: 28px 18px;
    border-radius: 12px;
  }
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 19px;
    margin-top: 32px;
  }
  html {
    scroll-padding-top: 76px;
  }
  header .in {
    padding: 10px 14px;
  }
  header a.back {
    padding: 6px 12px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  #progress,
  #totop,
  #totop.show {
    transition: none;
  }
}
