:root { color-scheme: light; }
a.person-home {
  display: inline-block;
  margin: 0 0 16px;
  font-family: "Avenir Next", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #8f3428;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #1c1a17;
  background: #f6f3ed;
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Palatino, "Palatino Linotype", serif;
  font-size: 18px;
  line-height: 1.85;
}
a { color: inherit; }
header.cover, header.reader {
  padding: 28px 7vw 20px;
  border-bottom: 1px solid #e3dcd2;
  background: #f6f3ed;
}
.kicker, .home, .tools {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #6f675e;
}
.home { letter-spacing: 0; }
.home a, .tools a { color: #6f675e; }
h1 {
  margin: 0;
  max-width: 18em;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
}
.en {
  margin: 10px 0 0;
  font-family: Palatino, "Iowan Old Style", Georgia, serif;
  font-size: 16px;
  color: #4d463f;
}
.meta, .note {
  max-width: 42em;
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.7;
}
.note { font-size: 14px; color: #6f675e; }
.rights {
  max-width: 42em;
  margin: 0 auto;
  padding: 12px 7vw 72px;
}
.rights h2 {
  margin: 0 0 0.6em;
  font-size: 20px;
  font-weight: 650;
}
.rights p {
  margin: 0 0 0.9em;
  font-size: 15px;
  line-height: 1.75;
  color: #3c3832;
}
.rights a { color: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
a.button,
a.download {
  display: inline-block;
  padding: 10px 16px;
  color: #f6f3ed;
  background: #1c1a17;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
}
a.download::before { content: "↓"; margin-right: 0.45em; }
header.reader a.download {
  float: right;
  margin: 0 10px 8px 0;
  padding: 6px 12px;
  font-size: 15px;
}
header.reader.is-collapsed a.download { float: none; margin: 0 0 0 12px; }
.pdf-menu { position: relative; }
.pdf-menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  padding: 10px 16px;
  color: #f6f3ed;
  background: #1c1a17;
  font-size: 16px;
  line-height: 1.3;
}
.pdf-menu > summary::-webkit-details-marker { display: none; }
.pdf-menu > summary::before { content: "↓"; margin-right: 0.45em; }
.pdf-menu > a {
  display: block;
  padding: 8px 14px;
  background: #fff;
  color: #1c1a17;
  text-decoration: none;
  border: 1px solid #d9d0c4;
  border-top: 0;
  font-size: 15px;
}
header.reader .pdf-menu { float: right; margin: 0 10px 8px 0; }
header.reader .pdf-menu > summary { padding: 6px 12px; font-size: 15px; }
header.reader.is-collapsed .pdf-menu { float: none; margin: 0 0 0 12px; }
header.reader a.lang {
  float: right;
  margin: 6px 12px 8px 0;
  color: #6f675e;
  font-size: 15px;
  line-height: 1.3;
}
header.reader.is-collapsed a.lang { float: none; margin: 0 0 0 12px; }
html[lang="en"] body {
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
}
nav.contents, article, nav.pager { max-width: 42em; }
nav.contents {
  margin: 0 auto;
  padding: 28px 7vw 64px;
}
nav.contents ol { margin: 0; padding: 0; list-style: none; }
nav.contents li { border-top: 1px solid #e3dcd2; }
nav.contents a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
}
nav.contents .num {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #6f675e;
}
header.reader { position: sticky; top: 0; z-index: 4; }
.bar-toggle, .toc-toggle {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  color: #6f675e;
  background: #f6f3ed;
  border: 1px solid #c8bfb4;
  padding: 2px 10px;
  cursor: pointer;
}
header.reader .bar-toggle { float: right; margin: 0 0 8px 16px; }
header.reader.is-collapsed { padding: 10px 7vw; }
header.reader.is-collapsed .bar-body { display: none; }
header.reader.is-collapsed .bar-toggle { float: none; margin: 0; }
main.reader-layout {
  display: grid;
  grid-template-columns: minmax(14em, 18em) minmax(0, 42em);
  justify-content: center;
  column-gap: 2.5rem;
  align-items: start;
  padding: 0 7vw;
  background: #fff;
}
main.reader-layout:has(nav.toc.is-collapsed) {
  grid-template-columns: auto minmax(0, 42em);
}
nav.chapters { display: flex; flex-wrap: wrap; gap: 8px 14px; }
nav.chapters a { font-size: 14px; text-decoration: none; color: #6f675e; }
nav.chapters a[aria-current="page"] { color: #1c1a17; border-bottom: 1px solid #1c1a17; }
.tools { margin: 12px 0 0; letter-spacing: 0; }
main { background: #fff; }
.reading { min-width: 0; }
article { margin: 0 auto; padding: 36px 7vw 12px; }
main.reader-layout article { margin: 0; padding: 36px 0 12px; max-width: none; }
article h1 { font-size: 30px; margin: 0 0 0.8em; }
article h2 { font-size: 23px; line-height: 1.45; margin: 1.6em 0 0.6em; }
article h3 { font-size: 19px; line-height: 1.5; margin: 1.4em 0 0.5em; }
article p { margin: 0.8em 0; }
article a { text-underline-offset: 0.18em; }
article strong { font-weight: 650; }
article em { font-style: italic; }
blockquote {
  margin: 1.2em 0;
  padding: 0.1em 0 0.1em 1em;
  border-left: 2px solid #c8bfb4;
}
blockquote.callout {
  padding: 0.8em 1em;
  background: #f7f4ee;
  border-left: 3px solid #1c1a17;
}
.table-scroll { overflow-x: auto; margin: 1.2em 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.92em; line-height: 1.6; }
th, td { border-bottom: 1px solid #e3dcd2; padding: 0.45em 0.7em; vertical-align: top; text-align: left; }
th { font-weight: 600; }
mjx-container[display="true"] { margin: 1em 0; overflow-x: auto; overflow-y: hidden; }
.footnotes { margin-top: 3em; font-size: 0.92em; color: #3c362f; }
.footnotes hr { border: 0; border-top: 1px solid #e3dcd2; }
sup, sub { line-height: 0; }
nav.toc {
  position: sticky;
  top: var(--reader-bar, 0px);
  z-index: 3;
  max-height: calc(100vh - var(--reader-bar, 0px) - 20px);
  margin: 28px 0 0;
  padding: 0.8em 1em;
  overflow: auto;
  background: #f7f4ee;
  font-size: 15px;
  line-height: 1.6;
}
nav.toc p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 0.4em;
  color: #6f675e;
}
nav.toc.is-collapsed { max-height: none; overflow: visible; }
nav.toc.is-collapsed ol,
nav.toc.is-collapsed p span { display: none; }
nav.toc.is-collapsed p { margin: 0; }
nav.toc ol { margin: 0; padding-left: 1.2em; }
article :is(h1, h2, h3, h4),
figure.plate { scroll-margin-top: var(--scroll-pad, 96px); }
figure.plate { margin: 1.6em 0 2em; }
figure.plate.is-loading { display: grid; }
figure.plate.is-loading > img,
figure.plate.is-loading > .figure-buffer { grid-area: 1 / 1; }
figure.plate img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid #e3dcd2;
  cursor: zoom-in;
}
figure.plate.is-loading > img {
  min-height: 18em;
  color: transparent;
  background: linear-gradient(90deg, #efeae3 25%, #f7f4ef 37%, #efeae3 63%);
  background-size: 400% 100%;
  animation: figure-buffer 1.4s ease infinite;
}
figure.plate .figure-buffer {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #6f675e;
  font-size: 14px;
  letter-spacing: 0.12em;
  pointer-events: none;
}
figure.plate.is-error > img { animation: none; background: #efeae3; }
@keyframes figure-buffer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}
figure.plate figcaption::after {
  content: " · 点击放大";
  color: #6f675e;
  font-size: 13px;
}
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: auto;
  padding: 56px 3vw 32px;
  background: rgba(28, 26, 23, 0.9);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  display: block;
  width: min(1400px, 96vw);
  height: auto;
  margin: 0 auto;
  background: #fff;
}
.lightbox p {
  max-width: 46em;
  margin: 14px auto 0;
  color: #f6f3ed;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 14px;
  right: 16px;
  padding: 6px 14px;
  color: #f6f3ed;
  background: transparent;
  border: 1px solid #f6f3ed;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
figure.plate figcaption {
  margin-top: 0.55em;
  font-size: 15px;
  line-height: 1.6;
}
figure.plate .fignum { font-weight: 650; margin-right: 0.4em; }
figure.plate .fignote {
  margin: 0.35em 0 0;
  color: #3c362f;
  font-size: 14px;
  line-height: 1.7;
}
nav.toc .toc-h3 { margin-left: 1em; }
nav.toc .toc-h4,
nav.toc .toc-fig { margin-left: 1em; }
nav.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 8px 7vw 64px;
  font-size: 15px;
}
main.reader-layout nav.pager { max-width: none; padding-left: 0; padding-right: 0; }
nav.pager a { text-decoration: none; border-bottom: 1px solid #c8bfb4; }
code { font-family: Menlo, "Source Han Mono", monospace; font-size: 0.86em; }
pre.source {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Songti SC", "Noto Serif SC", Palatino, serif;
  font-size: 16px;
  line-height: 1.75;
}
body.book { background: #f7f4ee; }
body.book header.cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12vh 8vw 0;
  border-bottom: 0;
  background: transparent;
}
body.book h1 {
  max-width: 11em;
  font-size: clamp(34px, 4.6vw, 48px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
html[lang="en"] body.book h1 {
  max-width: none;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: 0;
}
html[lang="en"] body.book h1 .line { display: block; }
html[lang="en"] body.book h1 .phone { display: none; }
body.book .en {
  max-width: 32em;
  margin-top: 18px;
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  color: #5c564e;
}
html[lang="en"] body.book .en {
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  font-style: normal;
  letter-spacing: 0.02em;
}
body.book .meta {
  margin: 36px 0 0;
  font-size: 16px;
  letter-spacing: 0.04em;
}
body.book .imprint {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #6f675e;
}
body.book .actions { justify-content: center; align-items: flex-start; margin-top: 28px; gap: 26px; }
body.book a.button,
body.book .pdf-menu > summary {
  padding: 0;
  color: #6f675e;
  background: transparent;
  letter-spacing: 0;
  font-size: 15px;
  border-bottom: 0;
}
body.book a.enter {
  color: #1c1a17;
  border-bottom: 1px solid #1c1a17;
}
body.book .pdf-menu > summary { display: block; }
body.book .pdf-menu > summary::before { content: none; }
body.book .pdf-menu > a {
  min-width: 0;
  padding: 7px 0 0;
  text-align: center;
  color: #1c1a17;
  background: transparent;
  border: 0;
}
body.book .pdf-menu > a:first-of-type { margin-top: 2px; }
body.book nav.contents {
  width: max-content;
  max-width: calc(100% - 10vw);
  padding: 8vh 0 4vh;
}
body.book nav.contents .toc-label {
  margin: 0 0 14px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: #6f675e;
}
html[lang="en"] body.book nav.contents .toc-label { letter-spacing: 0.14em; }
body.book nav.contents li { border-top: 0; }
body.book nav.contents a {
  display: grid;
  grid-template-columns: 5em max-content;
  column-gap: 1.8em;
  align-items: baseline;
  padding: 11px 0;
}
html[lang="en"] body.book nav.contents a { grid-template-columns: 7.2em max-content; }
body.book nav.contents .num { letter-spacing: 0.02em; }
body.book nav.contents .toc-extra {
  margin: 28px 0 0;
  text-align: center;
  font-size: 15px;
}
body.book nav.contents .toc-extra a { color: #6f675e; }
body.book .rights {
  max-width: 36em;
  margin-top: 2vh;
  padding: 0 6vw 14vh;
  border-top: 0;
  text-align: center;
}
body.book .rights::before {
  content: "";
  display: block;
  width: 4.5em;
  margin: 0 auto 3.2em;
  border-top: 1px solid #c8bfb4;
}
body.book .rights p {
  margin: 0 0 0.85em;
  font-size: 13px;
  line-height: 1.7;
  color: #6f675e;
}
body.book .rights a { border-bottom: 1px solid #c8bfb4; text-decoration: none; }
@media (max-width: 960px) {
  body { font-size: 17px; }
  h1, article h1 { font-size: 26px; }
  body.book header.cover { padding-top: 9vh; }
  body.book h1 { font-size: 30px; }
  html[lang="en"] body.book h1 { font-size: 28px; }
  html[lang="en"] body.book h1 .desk { display: none; }
  html[lang="en"] body.book h1 .phone { display: block; }
  body.book nav.contents { width: auto; padding-left: 6vw; padding-right: 6vw; }
  body.book nav.contents a,
  html[lang="en"] body.book nav.contents a { grid-template-columns: 5.2em minmax(0, 1fr); }
  main.reader-layout,
  main.reader-layout:has(nav.toc.is-collapsed) { grid-template-columns: 1fr; }
  nav.toc {
    max-height: min(42vh, calc(100vh - var(--reader-bar, 0px) - 12px));
    margin-top: 16px;
  }
  nav.toc.is-collapsed { max-height: none; }
  main.reader-layout article,
  main.reader-layout nav.pager { padding-left: 0; padding-right: 0; }
  .card-pane { max-height: 34vh; }
}
button.cite {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline dotted #8a8176;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
button.info {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline dotted #8a8176;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
a.footnote-ref { cursor: pointer; }
.card-dock:empty { display: none; }
.card-pane {
  position: fixed;
  z-index: 30;
  width: min(26em, calc(100vw - 24px));
  max-height: min(42vh, 24em);
  display: flex;
  flex-direction: column;
  padding: 12px 14px 14px;
  background: #fbf8f3;
  color: #1c1a17;
  border: 1px solid #d9d0c4;
  box-shadow: 0 12px 40px rgba(28, 26, 23, 0.16);
}
.card-pane.is-dragging { box-shadow: 0 18px 48px rgba(28, 26, 23, 0.22); }
.card-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: grab;
  touch-action: none;
}
.card-pane.is-dragging .card-bar { cursor: grabbing; }
.card-kicker { margin: 0; font-size: 13px; letter-spacing: 0.08em; color: #6f675e; }
.card-close {
  padding: 3px 10px;
  border: 1px solid #c8bfb4;
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.card-body { overflow: auto; margin-top: 8px; font-size: 15px; line-height: 1.65; }
.card-body h2 { margin: 0.15em 0 0.3em; font-size: 20px; line-height: 1.35; }
.card-body h3 { margin: 0.85em 0 0.2em; font-size: 13px; letter-spacing: 0.08em; color: #6f675e; }
.card-body p { margin: 0.35em 0; }
.card-en, .card-meta, .card-wait { color: #6f675e; }
.card-en { font-family: Palatino, Georgia, serif; }

/* Reading aids: unobtrusive progress, keyboard access, and local bookmarks. */
:focus-visible { outline: 2px solid #77552e; outline-offset: 4px; }
.skip-reading { position: fixed; top: 12px; left: 12px; z-index: 10000; padding: 10px 16px; background: #fff; color: #1c1a17; transform: translateY(-200%); }
.skip-reading:focus { transform: translateY(0); }
.reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 900; border: 0; appearance: none; background: transparent; pointer-events: none; }
.reading-progress::-webkit-progress-bar { background: transparent; }
.reading-progress::-webkit-progress-value { background: #77552e; }
.reading-progress::-moz-progress-bar { background: #77552e; }
.resume-reading { display: block; margin-top: 18px; font-size: 1rem; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .reading-progress, .skip-reading, .resume-reading { display: none; } }

html[lang="en"] figure.plate figcaption::after { content: " · Click to enlarge"; }
