@charset "UTF-8";
:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --ink: #292d2a;
  --muted: #69706a;
  --line: #d8dacf;
  --accent: #8b3a32;
  --soft: #eeece3;
  --elixir-red: #a03e3a;
  --elixir-blue: #3c6f9a;
  --elixir-green: #42745d;
  --elixir-violet: #805ba1;
  --elixir-orange: #9a5a28;
  --elixir-yellow: #876f25;
  --reading-size: 21px;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1b211f;
    --ink: #dadcd1;
    --muted: #a4ada2;
    --line: #39433b;
    --accent: #dcaa91;
    --soft: #263029;
    --elixir-red: #ef9c91;
    --elixir-blue: #91bde3;
    --elixir-green: #99c3a8;
    --elixir-violet: #c3a6e3;
    --elixir-orange: #eab182;
    --elixir-yellow: #daca81;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1b211f;
  --ink: #dadcd1;
  --muted: #a4ada2;
  --line: #39433b;
  --accent: #dcaa91;
  --soft: #263029;
  --elixir-red: #ef9c91;
  --elixir-blue: #91bde3;
  --elixir-green: #99c3a8;
  --elixir-violet: #c3a6e3;
  --elixir-orange: #eab182;
  --elixir-yellow: #daca81;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
html:not(.js) .js-only { display: none; }
.js .js-only { display: block; }
.js span.js-only { display: inline; }
.js .icon-button { display: inline-flex; }
.js .font-controls { display: flex; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 20; padding: 8px 14px; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { min-height: 84px; max-width: 1080px; margin: 0 auto; padding: 22px 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { font: 600 19px/1.5 var(--serif); letter-spacing: .14em; text-decoration: none; white-space: nowrap; }
.header-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.header-nav > a { text-decoration: none; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; }
.icon-button:hover { background: var(--soft); }
.icon-button svg { width: 20px; height: 20px; }
.moon { display: block; }
.sun { display: none; }
[data-theme="dark"] .moon { display: none; }
[data-theme="dark"] .sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .moon { display: none; }
  :root:not([data-theme="light"]) .sun { display: block; }
}
.home { max-width: 1008px; margin: 0 auto; padding: 0 36px; }
.book-intro { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 84px; padding: 62px 0 68px; border-bottom: 1px solid var(--line); align-items: center; }
.book-intro h1 { font: 500 clamp(40px, 5vw, 58px)/1.4 var(--serif); letter-spacing: .15em; margin: 0 0 10px; }
.english-title { font: italic 22px/1.5 Georgia, serif; color: var(--muted); margin: 0 0 23px; letter-spacing: .02em; }
.author { margin: 0 0 25px; font-size: 14px; color: var(--muted); }
.book-description { font: 18px/1.9 var(--serif); max-width: 32em; margin: 0 0 25px; }
.edition-status { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.edition-status strong { color: var(--ink); font-weight: 500; }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 26px; background: var(--ink); color: var(--paper); text-decoration: none; border: 1px solid var(--ink); }
.primary-link:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.secondary-link { font-size: 14px; }
.cover { margin: 0; }
.cover img { width: 100%; height: auto; display: block; box-shadow: 6px 13px 26px #0002; }
.cover figcaption { margin-top: 15px; font-size: 11px; color: var(--muted); text-align: center; letter-spacing: .12em; }
.reading-resume { margin: 25px 0 0; font-size: 13px; color: var(--muted); }
.contents { padding: 50px 0 40px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 25px; margin-bottom: 20px; }
.section-heading h2, .about h2 { font: 500 26px/1.5 var(--serif); letter-spacing: .1em; margin: 0; }
.section-heading > span { font-size: 13px; color: var(--muted); }
.chapter-search { width: 100%; padding: 12px 0 12px 2px; margin: 0 0 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline-offset: 2px; background: transparent; font-size: 14px; }
.chapter-search::placeholder { color: var(--muted); opacity: 1; }
.chapter-group { border-bottom: 1px solid var(--line); }
.chapter-group > summary { cursor: pointer; padding: 18px 1px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 14px; }
.chapter-group > summary::-webkit-details-marker { display: none; }
.group-label { display: inline-flex; gap: 15px; align-items: center; }
.group-label svg { width: 14px; height: 14px; transition: transform 150ms; }
.chapter-group[open] .group-label svg { transform: rotate(90deg); }
.group-status { color: var(--muted); font-size: 12px; }
.chapter-list { list-style: none; margin: 0; padding: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 42px; }
.chapter-row { min-width: 0; }
.chapter-row > a, .chapter-row > .unavailable { display: flex; gap: 15px; align-items: baseline; padding: 14px 4px; border-top: 1px solid var(--line); text-decoration: none; min-height: 53px; }
.chapter-row > a:hover { background: var(--soft); }
.chapter-number { font: 13px/1.6 Georgia, serif; color: var(--muted); font-variant-numeric: tabular-nums; flex: 0 0 25px; }
.chapter-name { font: 16px/1.7 var(--serif); flex: 1; overflow-wrap: anywhere; }
.chapter-status { font-size: 11px; color: var(--muted); white-space: nowrap; }
.unavailable .chapter-name { color: var(--muted); }
.empty-result { color: var(--muted); font-size: 14px; padding: 12px 0 30px; }
.about { padding: 32px 0 42px; border-bottom: 1px solid var(--line); }
.about p { color: var(--muted); font-size: 14px; max-width: 58em; }
.site-footer { max-width: 1008px; margin: 0 auto; padding: 25px 36px 40px; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); }
.site-footer a { white-space: nowrap; }
.reader-header { max-width: none; position: sticky; top: 0; z-index: 5; min-height: 74px; border-bottom: 1px solid var(--line); background: var(--paper); padding: 13px max(24px, calc((100vw - 1040px) / 2)); }
.reader-controls { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.reader-controls > a { text-decoration: none; white-space: nowrap; }
.font-controls { display: flex; align-items: center; gap: 3px; }
.font-controls button { width: 36px; height: 40px; border: 0; background: transparent; padding: 0; font: 17px/1 Georgia, serif; }
.font-controls button:hover { background: var(--soft); }
.font-controls button:disabled { color: var(--muted); opacity: .45; cursor: default; }
.font-size { display: inline-block; text-align: center; width: 27px; font-size: 11px; color: var(--muted); }
.reading-progress { position: fixed; z-index: 10; top: 0; left: 0; width: 100%; height: 2px; pointer-events: none; background: transparent; }
.reading-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--accent); }
.reader { max-width: 780px; margin: 0 auto; padding: 57px 34px 0; }
.chapter-heading { margin: 0 0 42px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.chapter-heading .chapter-label { margin: 0 0 18px; color: var(--muted); font-size: 13px; letter-spacing: .14em; }
.chapter-heading h1 { font: 500 clamp(29px, 4vw, 38px)/1.5 var(--serif); letter-spacing: .06em; margin: 0 0 16px; overflow-wrap: anywhere; }
.chapter-meta { color: var(--muted); font-size: 12px; margin: 0; }
.chapter-meta a { color: inherit; }
.chapter-body { font: 400 var(--reading-size)/1.95 var(--serif); overflow-wrap: break-word; text-align: justify; text-justify: inter-ideograph; }
.chapter-body > :first-child { margin-top: 0; }
.chapter-body p { margin: 0 0 1em; text-indent: 2em; }
.chapter-body em { font-style: italic; }
.chapter-body strong { font-weight: 700; }
.chapter-body hr { border: 0; height: auto; text-align: center; margin: 2.5em 0; overflow: visible; }
.chapter-body hr::after { content: "·  ·  ·"; color: var(--muted); font-family: Georgia, serif; letter-spacing: .35em; }
.chapter-body blockquote { margin: 1.7em 0; padding: .15em 1.2em; border-left: 2px solid var(--line); color: var(--muted); }
.chapter-body blockquote p { text-indent: 0; }
.chapter-body blockquote p:last-child { margin-bottom: 0; }
.chapter-body ul, .chapter-body ol { padding-inline-start: 1.6em; }
.chapter-body .endmark { text-align: center; text-indent: 0; margin: 2em 0; }
.elixir-red { color: var(--elixir-red); }
.elixir-blue { color: var(--elixir-blue); }
.elixir-green { color: var(--elixir-green); }
.elixir-violet { color: var(--elixir-violet); }
.elixir-orange { color: var(--elixir-orange); }
.elixir-yellow { color: var(--elixir-yellow); }
.chapter-end { margin: 55px 0 40px; text-align: center; color: var(--muted); font: 13px/1.8 var(--sans); }
.chapter-navigation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 27px; }
.chapter-navigation > a, .chapter-navigation > div { text-align: left; text-decoration: none; min-width: 0; }
.chapter-navigation .next { text-align: right; }
.nav-direction { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.nav-title { display: block; font: 17px/1.65 var(--serif); overflow-wrap: anywhere; }
.nav-pending { font-size: 13px; color: var(--muted); }
.reader .site-footer { padding: 38px 0 32px; }
.storage-note { font-size: 12px; color: var(--muted); text-align: center; }
.error-page { min-height: 65vh; padding: 100px 30px; max-width: 780px; margin: auto; }
.error-page h1 { font: 500 34px/1.6 var(--serif); }
.error-page p { color: var(--muted); margin-bottom: 28px; }
@media (max-width: 720px) {
  .site-header { padding: 17px 24px; min-height: 74px; }
  .header-nav { gap: 20px; }
  .home { padding: 0 26px; }
  .book-intro { grid-template-columns: minmax(0, 1fr) 134px; gap: 28px; padding: 40px 0 42px; align-items: start; }
  .book-intro h1 { font-size: 36px; letter-spacing: .08em; }
  .english-title { font-size: 17px; margin-bottom: 16px; }
  .author { font-size: 12px; margin-bottom: 20px; }
  .book-description { font-size: 16px; }
  .cover { margin-top: 9px; }
  .cover figcaption { letter-spacing: 0; font-size: 10px; }
  .contents { padding-top: 35px; }
  .chapter-list { grid-template-columns: 1fr; }
  .chapter-row > a, .chapter-row > .unavailable { padding-block: 15px; }
  .site-footer { padding-inline: 26px; }
  .reader-header { padding-inline: 22px; }
  .reader-controls { gap: 14px; }
  .reader { padding: 38px 26px 0; }
  .chapter-heading { margin-bottom: 32px; padding-bottom: 25px; }
  .chapter-body { line-height: 1.95; }
}
@media (max-width: 480px) {
  .site-header { padding-inline: 21px; }
  .brand { font-size: 17px; }
  .header-nav { gap: 16px; font-size: 13px; }
  .home { padding-inline: 23px; }
  .book-intro { display: block; position: relative; padding-top: 34px; }
  .book-intro h1 { font-size: 38px; padding-right: 95px; }
  .english-title { padding-right: 85px; margin-bottom: 14px; }
  .author { max-width: calc(100% - 90px); min-height: 42px; }
  .cover { position: absolute; width: 83px; right: 0; top: 27px; }
  .cover figcaption { display: none; }
  .book-description { margin-top: 24px; }
  .section-heading { gap: 12px; }
  .section-heading h2, .about h2 { font-size: 24px; }
  .section-heading > span { font-size: 12px; }
  .site-footer { flex-direction: column; gap: 7px; }
  .reader-header { min-height: 67px; gap: 8px; padding: 10px 17px; }
  .reader-header .brand { font-size: 16px; letter-spacing: .05em; }
  .reader-controls { gap: 10px; font-size: 13px; }
  .font-controls { gap: 0; }
  .font-controls button { width: 31px; }
  .font-size { width: 23px; }
  .reader-header .icon-button { width: 34px; }
  .reader { padding-inline: 23px; }
  .chapter-heading h1 { font-size: 30px; }
  .chapter-body { font-size: var(--reading-size); }
  .chapter-navigation { gap: 18px; }
  .nav-title { font-size: 16px; }
}
@media (max-width: 360px) {
  .reader-header { flex-wrap: wrap; }
  .reader-controls { margin-left: auto; }
  .book-intro h1 { font-size: 33px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  :root { --paper: white; --ink: black; --muted: #555; --line: #ccc; }
  .reader-header, .reading-progress, .chapter-navigation, .site-footer, .js-only, .skip-link { display: none !important; }
  .reader { max-width: none; padding: 0; }
  .chapter-body { font-size: 12pt; }
  .chapter-heading { margin-bottom: 20pt; }
  .chapter-body p { orphans: 3; widows: 3; }
}
