.article-reader {
  --surface:#20221e;
  --text:#edeee8;
  --secondary:#bec0b7;
  --muted:#aaada1;
  --display:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --column:min(960px,calc(100vw - 150px));
  color:var(--text);color-scheme:dark;padding:48px 0 64px;
}
.article-intro,.article-end,.article-reader .rl-prose {width:var(--column);margin-inline:auto}
.article-intro {border-bottom:1px solid var(--line);padding-bottom:28px;margin-bottom:30px}
.article-back,.article-end a {display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--secondary);font-size:14px}
.article-intro h1 {font:700 clamp(32px,3.2vw,44px)/1.3 var(--display);margin:16px 0 20px;overflow-wrap:anywhere;text-wrap:pretty}
.article-intro .rl-deck {font:400 20px/1.65 var(--display);margin:0 0 24px;color:var(--secondary);white-space:pre-line}
.rl-byline {display:flex;align-items:center;gap:12px}
.rl-byline .rl-author-avatar {width:44px;height:44px;object-fit:cover;object-position:center 35%;border-radius:50%;flex:none}
.rl-author-initial {display:grid;place-items:center;background:var(--surface)}
.rl-author-details {display:grid;gap:4px;font:600 15px/1.5 var(--display)}
.rl-author-details time {color:var(--secondary);font-size:13px;font-weight:400;font-variant-numeric:tabular-nums}
.article-end {display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:48px;padding-top:12px}
.reading-layout {display:flow-root}
.chapter-nav {
  position:fixed;top:50%;left:16px;transform:translateY(-50%);
  width:48px;color:#aaada1;
}
.chapter-toggle {display:none}
.edition-mast .chapter-nav .chapter-links {
  display:flex;flex-flow:column;align-items:stretch;gap:0;width:100%;max-height:68dvh;
  overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#565850 transparent;
  padding:4px 8px;background:transparent;
}
.edition-mast .chapter-links a {
  display:flex;align-items:center;gap:16px;min-height:32px;flex:none;color:inherit;
  white-space:normal;font:13px/1.6 "PingFang SC",sans-serif;text-decoration:none;
}
.chapter-rule {width:22px;height:1px;margin-inline:4px;flex:none;background:currentColor}
.chapter-links a:is([data-depth="3"],[data-depth="4"],[data-depth="5"],[data-depth="6"]) .chapter-rule {width:14px;margin-left:12px}
.chapter-label {display:none;overflow-wrap:anywhere;padding-block:4px}
.edition-mast .chapter-links a:is(:hover,:focus-visible,[aria-current]) {color:#edeee8;text-decoration:none}
.chapter-links a[aria-current] .chapter-rule {height:2px}
.edition-mast .chapter-links a:focus-visible {outline-offset:-2px}
@media(min-width:701px) and (hover:hover) and (pointer:fine) {
  .chapter-nav {
    --chapter-ease:cubic-bezier(.22,.65,.28,1);
    transition:width 420ms var(--chapter-ease);
  }
  .chapter-nav::before {
    content:"";position:absolute;z-index:-1;pointer-events:none;inset:-16px -28px -16px -16px;
    background:#121311;mask-image:linear-gradient(to right,#000 80%,transparent),linear-gradient(to bottom,transparent,#000 16px calc(100% - 16px),transparent);
    mask-composite:intersect;opacity:0;transition:opacity 300ms ease;
  }
  .chapter-nav:is(:hover,:focus-within) {width:286px}
  .chapter-nav:is(:hover,:focus-within)::before {opacity:1}
  .chapter-nav .chapter-label {
    display:block;flex:0 0 212px;max-height:0;padding:0;overflow:hidden;opacity:0;
    transform:translateX(-5px);transition:opacity 290ms ease,transform 420ms var(--chapter-ease),max-height 420ms var(--chapter-ease);
  }
  .chapter-nav:is(:hover,:focus-within) .chapter-label {max-height:68dvh;opacity:1;transform:none}
  .edition-mast .chapter-nav a {transition:min-height 420ms var(--chapter-ease)}
  .edition-mast .chapter-nav:is(:hover,:focus-within) a {min-height:44px}
}
.article-reader .rl-prose {min-width:0;font:20px/1.85 "Songti SC","STSong","Noto Serif CJK SC",Georgia,serif;letter-spacing:.01em;overflow-wrap:anywhere}
.rl-prose p {margin:0 0 28px}
.rl-prose :is(h2,h3,h4,h5,h6) {font:600 21px/1.5 var(--display);margin:36px 0 16px;letter-spacing:0}
.rl-prose h2 {font-size:28px;margin:48px 0 20px}
.rl-prose h3 {font-size:23px;margin:40px 0 18px}
.rl-prose > :first-child {margin-top:0}
.rl-prose [id], .reader .prose [id^="section-"] {scroll-margin-top:32px}
.rl-prose blockquote {border-left:1px solid var(--muted);padding-left:24px;margin:32px 0;color:var(--secondary)}
.rl-prose :is(ol,ul) {padding-left:28px;margin:24px 0}
.rl-prose li {padding-left:4px;margin:10px 0}
.rl-prose li :is(ol,ul) {margin:8px 0}
.rl-prose a {text-decoration:underline;text-underline-offset:4px}
.rl-prose img {max-width:100%;height:auto}
.rl-prose figure,.rl-prose .reading-related {margin:28px 0}
.rl-prose figcaption,.rl-prose .footnotes {font-size:.85em;color:var(--secondary)}
.rl-prose hr {height:1px;border:0;background:var(--muted);opacity:.65;margin:40px 0}
.rl-prose pre,.rl-prose .markdown-table,.rl-prose .markdown-math {max-width:100%;overflow-x:auto;margin:24px 0}
.rl-prose .katex {display:inline-block;max-width:100%;overflow-x:auto;vertical-align:middle}
.rl-prose pre {padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:6px;line-height:1.7;tab-size:2}
.rl-prose code,.rl-prose kbd {font:.85em/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.rl-prose pre code {white-space:pre;overflow-wrap:normal}
.rl-prose mark,.rl-prose :not(pre)>code {background:var(--surface);color:inherit}
.rl-prose :is(sub,sup) {font-size:.75em}
.rl-prose table {border-collapse:collapse;min-width:100%;line-height:1.7}
.rl-prose th,.rl-prose td {padding:10px 14px;border:1px solid var(--line);min-width:90px;text-align:left;vertical-align:top}
.rl-prose th {background:var(--surface)}
.rl-prose [data-align=center] {text-align:center}
.rl-prose [data-align=right] {text-align:right}
.rl-prose .markdown-task {list-style:none;position:relative}
.rl-prose .markdown-task input {position:absolute;left:-23px;top:.55em;width:14px;height:14px;accent-color:var(--text)}
@media(max-width:700px),(hover:none),(pointer:coarse) {
  .article-reader {--column:min(100%,960px)}
  .edition-mast .chapter-nav {
    position:fixed;inset:auto max(16px,env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) auto;
    width:auto;transform:none;
  }
  .edition-mast:has(.mobile-menu[open]) .chapter-nav {visibility:hidden}
  .chapter-toggle {
    position:relative;isolation:isolate;display:grid;place-items:center;
    width:44px;height:44px;padding:0;border:0;border-radius:22px;
    appearance:none;background:transparent;color:#e7e7e0;cursor:pointer;
    font:inherit;-webkit-tap-highlight-color:transparent;
    transition:width 340ms cubic-bezier(.2,.7,.25,1);
  }
  .chapter-toggle::before {
    content:"";position:absolute;inset:7px;z-index:-1;border-radius:99px;
    background:#383a37;transition:inset 340ms cubic-bezier(.2,.7,.25,1),background-color 260ms ease;
  }
  .chapter-toggle-label {
    font-size:12px;line-height:1.4;font-weight:450;white-space:nowrap;
    letter-spacing:.2em;text-indent:.2em;opacity:0;transform:scale(.92);
    transition:opacity 180ms ease,transform 260ms ease;
  }
  .chapter-toggle[data-ready] {width:66px}
  .chapter-toggle[data-ready]::before {inset:5px 3px;background:#323430}
  .chapter-toggle[data-ready] .chapter-toggle-label {opacity:1;transform:none;transition-delay:60ms}
  .chapter-nav > .chapter-links {visibility:hidden}
  html:has(.chapter-sheet[open]) {overflow:hidden}
  .chapter-sheet {
    position:fixed;box-sizing:border-box;inset:auto 0 0;margin:0 auto;
    width:100%;max-width:100%;height:48vh;height:48dvh;max-height:100dvh;
    padding:0 max(20px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(20px,env(safe-area-inset-left));
    border:0;border-radius:14px 14px 0 0;background:#1a1c19;color:#eeeee7;
    flex-direction:column;overflow:hidden;color-scheme:dark;
    transform:translateY(100%);opacity:0;
    transition:transform 340ms cubic-bezier(.22,.7,.25,1),opacity 240ms ease,display 340ms allow-discrete,overlay 340ms allow-discrete;
  }
  .chapter-sheet[open] {display:flex;transform:none;opacity:1}
  .chapter-sheet::backdrop {
    background:rgb(0 0 0 / 0);
    transition:background-color 280ms ease,overlay 340ms allow-discrete,display 340ms allow-discrete;
  }
  .chapter-sheet[open]::backdrop {background:rgb(0 0 0 / .44)}
  @starting-style {
    .chapter-sheet[open] {transform:translateY(100%);opacity:0}
    .chapter-sheet[open]::backdrop {background:rgb(0 0 0 / 0)}
  }
  .chapter-sheet-head {
    display:flex;align-items:center;justify-content:space-between;flex:none;
    min-height:52px;border-bottom:1px solid #383a34;
  }
  .chapter-sheet-head h2 {margin:0;outline:none;letter-spacing:.06em;font:500 17px/1.45 "Songti SC",STSong,Georgia,serif}
  .chapter-dismiss {
    width:44px;height:44px;margin-right:-10px;position:relative;
    appearance:none;-webkit-appearance:none;border:0;padding:0;box-shadow:none;
    background:none;color:#c7c9bf;cursor:pointer;-webkit-tap-highlight-color:transparent;
  }
  .chapter-dismiss::before,.chapter-dismiss::after {
    content:"";position:absolute;top:50%;left:50%;width:14px;height:1px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg);
  }
  .chapter-dismiss::after {transform:translate(-50%,-50%) rotate(-45deg)}
  .edition-mast .chapter-nav .chapter-sheet .chapter-links {
    flex:1;min-height:0;max-height:none;padding:6px 0 14px;overflow-y:auto;
    overscroll-behavior:contain;touch-action:pan-y;
  }
  .edition-mast .chapter-sheet .chapter-links a {
    min-height:44px;gap:9px;padding:8px 0;color:#bdc0b7;
    font:400 14px/1.65 "PingFang SC","Microsoft YaHei",sans-serif;text-align:left;
    white-space:normal;overflow-wrap:anywhere;
  }
  .chapter-sheet .chapter-rule {width:12px;margin:0;opacity:0}
  .chapter-sheet .chapter-links a:is([data-depth="3"],[data-depth="4"],[data-depth="5"],[data-depth="6"]) .chapter-rule {width:12px;margin-left:12px}
  .chapter-sheet .chapter-links a[aria-current] {color:#f5f5ef;font-weight:600}
  .chapter-sheet .chapter-links a[aria-current] .chapter-rule {opacity:1;height:1px}
  .chapter-sheet .chapter-label {display:block;padding:0}
  .chapter-nav :focus-visible {outline:1px solid #dadccf;outline-offset:-2px}
  .chapter-nav .chapter-sheet-head :focus {outline:none}
  .chapter-nav .chapter-dismiss:focus-visible {
    color:#fff;background:radial-gradient(circle,#42453e 0 10px,transparent 11px);
  }
}
@media(max-width:700px) {
  .article-reader {padding:20px 0 44px}
  .article-intro {padding-bottom:22px;margin-bottom:16px}
  .article-intro h1 {font-size:30px;line-height:1.4;margin-top:12px}
  .article-intro .rl-deck {font-size:18px}
  .rl-byline .rl-author-avatar {width:40px;height:40px}
  .article-reader .rl-prose {font-size:18px;line-height:1.9}
  .rl-prose h2 {font-size:25px;margin-top:40px}
  .rl-prose h3 {font-size:21px}
}

@media(prefers-reduced-motion:reduce) {
  .edition-mast .chapter-nav,.edition-mast .chapter-nav::before,.edition-mast .chapter-nav :is(.chapter-toggle,.chapter-toggle-label,.chapter-label,.chapter-links,.chapter-sheet,a),.chapter-toggle::before,.chapter-sheet::backdrop {transition:none}
}
