@charset "UTF-8";
:root {
  --bg: #faf9f6; --surface: #fff; --text: #242424; --muted: #787875;
  --line: #e9e7e2; --accent: #db522c; --accent-soft: #faeae1;
  --page: #faf7f0; --page-text: #33312e;
  --serif: "New York", "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  --reading-size: 21px; --reading-line: 2.05; --reading-width: 740px; --reading-font: var(--serif);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
button:disabled { opacity: .35; cursor: default; }
a { color: inherit; text-decoration: none; }
svg { width: 21px; height: 21px; vertical-align: middle; flex-shrink: 0; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
button, a { transition: background .18s, color .18s, box-shadow .18s, transform .18s; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 12px 20px; background: var(--surface); z-index: 100; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 25; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.header-inner { max-width: 1240px; margin: auto; height: 78px; padding: 0 40px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 650; letter-spacing: -1px; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent); }
.brand-mark svg { width: 29px; height: 29px; stroke-width: 1.8; }
.main-nav { display: flex; gap: 33px; height: 100%; margin-left: 76px; }
.main-nav a { display: flex; align-items: center; position: relative; color: var(--muted); font-size: 13px; }
.main-nav a.active, .main-nav a:hover { color: var(--text); }
.main-nav a.active { font-weight: 600; }
.main-nav a.active:after { content: ""; position: absolute; bottom: 15px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.library-label { font-size: 11px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 18px; margin-left: 12px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); }
.icon-button:hover { background: var(--accent-soft); color: var(--accent); }
.icon-button svg { width: 18px; height: 18px; }
.shelf-main { max-width: 1240px; padding: 45px 40px 80px; margin: auto; min-height: calc(100svh - 200px); }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 1px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 510px; border-radius: 22px; overflow: hidden; background: #efede6; }
.hero-copy { padding: 49px 22px 45px 48px; display: flex; align-items: flex-start; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.hero .eyebrow { color: #736454; font-size: 11px; }
.hero .eyebrow>span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero h1 { font-size: clamp(30px, 3.3vw, 45px); line-height: 1.28; letter-spacing: -1.6px; font-weight: 650; margin: 24px 0 19px; max-width: 510px; text-wrap: balance; }
.hero h1>span { display: block; }
.hero h1>.hero-title-lead { font-size: .78em; margin-bottom: 5px; letter-spacing: -1px; }
.hero-description { color: #777369; font-size: 14px; line-height: 1.9; max-width: 420px; margin: 0; }
.hero-meta { display: flex; align-items: center; gap: 12px; font-size: 11px; color: #837c71; margin-top: 23px; }
.hero-meta i { width: 2px; height: 2px; background: currentColor; border-radius: 50%; }
.hero-actions { display: flex; align-items: center; gap: 23px; margin-top: 30px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 45px; border-radius: 100px; padding: 12px 23px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.primary-button { background: var(--text); color: var(--bg); }
.primary-button:hover { background: var(--accent); color: white; transform: translateY(-1px); }
.primary-button svg, .secondary-button svg { width: 17px; height: 17px; }
.secondary-button { border: 1px solid var(--line); background: var(--surface); }
.secondary-button:hover { border-color: var(--accent); color: var(--accent); }
.text-button { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); padding: 9px 0; }
.text-button svg { width: 15px; height: 15px; }
.text-button:hover { gap: 10px; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 55% 60%,#d5b79c5c,transparent 65%); }
.floating-book { width: 220px; position: relative; z-index: 2; transform: perspective(1200px) rotateY(-17deg) rotateZ(7deg); filter: drop-shadow(22px 32px 22px #44301d40); margin-bottom: 25px; }
.floating-book:after { content: ""; position: absolute; width: 9px; right: -8px; top: 4px; bottom: 3px; background: repeating-linear-gradient(90deg,#dfd8cb 0 1px,#f8f4e9 1px 2px); transform: skewY(-20deg); transform-origin: left; border-radius: 0 3px 3px 0; }
.hero-art:hover .floating-book { transform: perspective(1200px) rotateY(-10deg) rotateZ(4deg) translateY(-5px); }
.floating-book { transition: transform .5s; }
.book-cover { display: block; width: 100%; height: auto; aspect-ratio: 560/760; object-fit: cover; border-radius: 4px 8px 8px 4px; }
.orbit { position: absolute; width: 450px; height: 450px; border: 1px solid #b7a89144; border-radius: 50%; z-index: -1; }
.orbit-two { width: 350px; height: 350px; }
.art-caption { position: absolute; bottom: 27px; left: 0; width: 100%; text-align: center; color: #9a8a75; font: 9px var(--sans); letter-spacing: 2.8px; }
.art-caption span { display: block; letter-spacing: 1px; font-size: 10px; margin-top: 9px; color: #8a7e6d; }
.hero-progress { width: 100%; max-width: 280px; font-size: 10px; color: var(--muted); margin-top: 25px; }
.hero-progress .progress-track { margin-top: 8px; }
.progress-track { height: 3px; background: var(--line); border-radius: 10px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.continue-strip { display: flex; width: 100%; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; margin-top: 18px; padding: 16px 22px; text-align: left; }
.continue-strip:hover { border-color: #d1b8a4; }
.continue-icon { display: grid; place-items: center; color: var(--accent); width: 38px; height: 38px; background: var(--accent-soft); border-radius: 50%; }
.continue-strip small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 2px; }
.continue-strip strong { display: block; font-size: 12px; font-weight: 500; }
.continue-chapter { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.continue-strip>svg { width: 16px; }
.catalog-section, .updates-section { margin-top: 62px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-heading h2 { font-size: 27px; line-height: 1.3; letter-spacing: -.8px; font-weight: 600; margin: 8px 0 0; }
.section-heading h2>span, .page-heading h1>span { font-size: 12px; vertical-align: middle; margin-left: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); padding: 3px 8px; border: 1px solid var(--line); border-radius: 20px; }
.book-search { display: flex; align-items: center; gap: 8px; background: color-mix(in srgb,var(--text) 4%,transparent); color: var(--muted); border-radius: 100px; padding: 10px 16px; width: 224px; }
.book-search svg { width: 16px; height: 16px; }
.book-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.book-search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.book-search input:focus-visible { outline: none; }
.filter-bar { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 19px; margin-bottom: 26px; }
.filter-bar button { min-height: 34px; font-size: 12px; padding: 7px 17px; border-radius: 20px; color: var(--muted); }
.filter-bar button.selected { color: var(--bg); background: var(--text); }
.filter-bar button:not(.selected):hover { background: var(--accent-soft); color: var(--accent); }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.library-card { display: flex; gap: 24px; min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.library-card:hover { box-shadow: 0 12px 35px #2b251209; border-color: #d9d3c8; }
.card-cover { width: 124px; flex-shrink: 0; align-self: flex-start; border-radius: 4px; box-shadow: 0 9px 15px #28211518; }
.card-cover:hover { transform: translateY(-3px); }
.card-info { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.card-category { font-size: 10px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-category>span { color: var(--muted); }
.card-info h3 { font-size: 18px; letter-spacing: -.3px; line-height: 1.5; font-weight: 600; margin: 9px 0 8px; text-wrap: pretty; }
.card-description { font-size: 12px; line-height: 1.85; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 13px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags>span { font-size: 10px; color: var(--muted); border: 1px solid var(--line); padding: 2px 7px; border-radius: 5px; }
.card-bottom { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-bottom>span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.card-bottom .text-button { padding: 0; font-weight: 500; }
.updates-list { border-top: 1px solid var(--line); }
.update-row { width: 100%; display: flex; align-items: center; text-align: left; padding: 22px 4px; border-bottom: 1px solid var(--line); gap: 25px; }
.update-row:hover { background: var(--surface); }
.update-number { font-size: 17px; color: #a5a29a; font-weight: 300; width: 34px; }
.update-row strong { font-size: 14px; font-weight: 500; }
.update-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.update-length { font-size: 11px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.update-row>svg { width: 15px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); max-width: 1160px; margin: auto; padding: 25px 0 30px; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: 11px; color: var(--muted); }
.site-footer>a:first-child { font-size: 15px; color: var(--text); font-weight: 600; }
.site-footer>a:first-child span { color: var(--muted); font-size: 11px; margin-left: 18px; font-weight: 400; }
.site-footer svg { width: 13px; height: 13px; }
.page-heading { margin: 28px 0 42px; }
.page-heading h1 { font-size: 40px; letter-spacing: -1px; font-weight: 650; margin: 12px 0; }
.page-heading p { font-size: 13px; color: var(--muted); }
.empty-state { grid-column: 1/-1; padding: 70px 30px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; }
.empty-state>svg { width: 44px; height: 44px; color: var(--accent); margin-bottom: 15px; }
.empty-state h2 { font-size: 25px; font-weight: 550; }
.empty-state p { color: var(--muted); }
.empty-state .primary-button { margin-top: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 35px; }
.back-link svg { width: 15px; }
.book-detail { display: grid; grid-template-columns: 210px 1fr; gap: 54px; align-items: center; padding-bottom: 45px; border-bottom: 1px solid var(--line); }
.detail-cover { box-shadow: 0 24px 35px -18px #31231177; border-radius: 8px; }
.detail-info h1 { font-size: 36px; line-height: 1.4; letter-spacing: -1px; margin: 14px 0; max-width: 710px; text-wrap: balance; }
.detail-author { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.detail-author span { margin: 0 10px; }
.detail-stats { display: flex; gap: 45px; margin-top: 28px; }
.detail-stats>div { display: flex; flex-direction: column; }
.detail-stats strong { font-size: 24px; font-weight: 550; }
.detail-stats small { font-size: 12px; margin-left: 3px; }
.detail-stats span { font-size: 11px; color: var(--muted); margin-top: 3px; }
.synopsis-section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.synopsis-section h2 { font-size: 18px; font-weight: 600; }
.synopsis-section p { line-height: 2.1; color: var(--muted); max-width: 840px; font-size: 14px; }
.full-directory { margin-top: 40px; }
.section-subtitle { font-size: 11px; color: var(--muted); margin: 10px 0 0; }
.detail-chapters { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.detail-chapter { display: flex; gap: 14px; text-align: left; padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.detail-chapter>span { font-size: 11px; color: var(--muted); padding-top: 2px; }
.detail-chapter strong { font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
.detail-chapter svg { width: 13px; margin-left: auto; color: var(--muted); }
.detail-chapter:hover, .detail-chapter.current { color: var(--accent); }
.history-list { display: grid; gap: 18px; }
.history-card { display: flex; align-items: center; gap: 25px; padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.mini-cover { width: 86px; height: auto; aspect-ratio: 560/760; object-fit: cover; border-radius: 4px; }
.history-info { flex: 1; min-width: 0; }
.history-info h2 { font-size: 19px; font-weight: 550; margin: 8px 0; }
.history-info p, .history-info small { font-size: 11px; color: var(--muted); }
.history-info .progress-track { max-width: 320px; margin: 12px 0 8px; }
.device-note { text-align: center; font-size: 11px; color: var(--muted); margin-top: 30px; }
.cover-placeholder { aspect-ratio: 560/760; display: grid; place-content: center; background: #333b42; color: #f4e9d5; padding: 18px; font: 24px/1.6 var(--serif); }
/* 阅读时把界面退到文字之外。 */
body.reading { background: color-mix(in srgb,var(--page) 65%,var(--bg)); color: var(--page-text); }
.reader-header { position: sticky; top: 0; height: 66px; display: flex; align-items: center; gap: 27px; padding: 0 32px; border-bottom: 1px solid var(--line); background: color-mix(in srgb,var(--page) 88%,transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 25; }
.reader-header .brand { font-size: 20px; }
.reader-header .brand-mark { width: 26px; }
.reader-header .brand-mark svg { width: 25px; }
.back-to-shelf { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.back-to-shelf svg { width: 14px; }
.reader-header-center { margin: auto; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.reader-header-center strong { font-weight: 400; color: var(--page-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }
.volume-header { white-space: nowrap; font-size: 10px; }
.reader-header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.reading-status { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reader-bar { position: absolute; left: 0; bottom: -1px; height: 2px; max-width: 100%; background: var(--accent); }
.reading-rail { position: fixed; top: 112px; left: max(25px,calc((100vw - 1430px)/2)); width: 185px; color: var(--muted); }
.reading-rail>a { font-size: 11px; display: flex; align-items: center; gap: 5px; }
.reading-rail>a svg { width: 13px; }
.reading-rail h2 { color: var(--page-text); font-size: 14px; line-height: 1.65; font-weight: 550; margin: 23px 0 10px; }
.rail-label { font-size: 10px; margin-bottom: 22px; }
.reading-rail nav { display: flex; flex-direction: column; gap: 5px; }
.reading-rail nav button { display: flex; gap: 8px; padding: 11px; text-align: left; font-size: 11px; line-height: 1.6; border-radius: 8px; }
.reading-rail nav button span { opacity: .6; font-size: 10px; }
.reading-rail nav button.current { background: var(--accent-soft); color: var(--accent); }
.reading-rail>.text-button { margin-top: 20px; }
.reader-main { max-width: calc(var(--reading-width) + 112px); margin: 30px auto; padding: 52px 56px 0; border-radius: 12px; background: var(--page); border: 1px solid color-mix(in srgb,var(--page-text) 7%,transparent); min-height: calc(100svh - 130px); }
.chapter-kicker { font-size: 10px; letter-spacing: 1px; color: var(--muted); margin: 0 0 26px; }
.chapter-kicker>span { opacity: .65; }
.chapter-title { font-family: var(--sans); font-size: 30px; font-weight: 600; line-height: 1.5; letter-spacing: -.5px; margin: 0 0 16px; text-wrap: pretty; }
.chapter-meta { display: flex; gap: 22px; color: var(--muted); font-size: 10px; padding-bottom: 28px; margin-bottom: 33px; border-bottom: 1px solid color-mix(in srgb,var(--page-text) 9%,transparent); }
.chapter-meta span { display: flex; align-items: center; gap: 5px; }
.chapter-meta svg { width: 12px; height: 12px; }
.chapter-text { font: var(--reading-size)/var(--reading-line) var(--reading-font); color: var(--page-text); letter-spacing: .025em; overflow-wrap: anywhere; }
.chapter-text p { text-indent: 2em; margin: 0 0 1em; white-space: pre-line; }
.chapter-end { padding: 30px 0; text-align: center; font-size: 11px; color: var(--muted); letter-spacing: 2px; }
.chapter-navigation { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid var(--line); padding: 28px 0; margin-top: 15px; }
.chapter-navigation button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; font-size: 12px; border-radius: 30px; border: 1px solid var(--line); }
.chapter-navigation button svg { width: 15px; height: 15px; }
.chapter-navigation .nav-next { background: var(--page-text); color: var(--page); border-color: transparent; }
.chapter-navigation button:hover:not(:disabled) { color: var(--accent); }
.chapter-navigation .nav-next:hover { background: var(--accent); color: white; }
.reader-fineprint { text-align: center; font-size: 10px; color: var(--muted); padding: 0 0 30px; }
.reader-toolbar { position: fixed; top: 155px; right: max(22px,calc((100vw - var(--reading-width))/2 - 140px)); display: flex; flex-direction: column; gap: 4px; padding: 6px; background: var(--page); border: 1px solid var(--line); border-radius: 16px; z-index: 20; }
.tool-button { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 58px; gap: 5px; font-size: 9px; color: var(--muted); border-radius: 10px; }
.tool-button svg { width: 19px; height: 19px; }
.tool-button:hover, .tool-button.is-active { background: var(--accent-soft); color: var(--accent); }
/* 目录与设置抽屉。 */
dialog { position: fixed; inset: 0; margin: 0 0 0 auto; width: 420px; max-width: 100vw; height: 100%; max-height: 100%; padding: 30px; border: 0; background: var(--surface); color: var(--text); box-shadow: -20px 0 80px #0001; overflow-y: auto; }
dialog::backdrop { background: #17171740; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
dialog[open] { animation: panel-in .2s ease-out; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.panel-header h2 { font-size: 20px; font-weight: 600; margin: 0; }
.panel-book-title { font-size: 24px; font-weight: 550; line-height: 1.5; margin: 0 0 12px; letter-spacing: -.5px; }
.panel-subtitle { font-size: 11px; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.panel-tabs { display: flex; gap: 25px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.panel-tabs button { font-size: 12px; color: var(--muted); padding: 12px 0; }
.panel-tabs .selected { color: var(--accent); border-bottom: 2px solid var(--accent); }
.chapter-search { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 15px; color: var(--text); font-size: 12px; margin-bottom: 15px; }
.toc-list { display: flex; flex-direction: column; gap: 4px; }
.toc-item { display: flex; align-items: center; text-align: left; width: 100%; gap: 12px; padding: 15px 12px; font-size: 12px; line-height: 1.7; border-radius: 10px; }
.toc-item>span:first-child { color: var(--muted); font-size: 10px; min-width: 20px; }
.toc-item:hover, .toc-item.current { background: var(--accent-soft); color: var(--accent); }
.toc-item small { font-size: 9px; margin-left: auto; white-space: nowrap; }
.bookmark-row { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.bookmark-row .toc-item { flex: 1; }
.bookmark-row .icon-button { flex-shrink: 0; }
.no-results { text-align: center; padding: 30px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.setting-group { padding: 23px 0; border-bottom: 1px solid var(--line); }
.setting-label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 18px; }
.setting-label output { color: var(--muted); font-size: 11px; }
.setting-control { display: flex; align-items: center; gap: 10px; }
.setting-control button { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 11px; font-size: 12px; background: var(--bg); }
.setting-control button.selected { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.setting-control input { width: 100%; min-width: 0; accent-color: var(--accent); }
.theme-options { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.theme-choice { padding: 0; font-size: 10px; color: var(--muted); }
.theme-dot { display: block; height: 46px; border: 1px solid #0001; border-radius: 10px; margin-bottom: 10px; background: var(--sample); }
.theme-choice.selected .theme-dot { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-choice.selected { color: var(--accent); }
.settings-hint { text-align: center; font-size: 11px; color: var(--muted); margin: 28px 0 12px; }
.reset-button { display: block; font-size: 11px; text-decoration: underline; text-underline-offset: 5px; color: var(--muted); margin: auto; }
#toast { position: fixed; left: 50%; bottom: 35px; transform: translate(-50%,15px); z-index: 100; border-radius: 50px; padding: 14px 24px; background: #252525; box-shadow: 0 8px 30px #0002; color: white; max-width: 90vw; width: max-content; font-size: 12px; line-height: 1.7; text-align: center; opacity: 0; pointer-events: none; transition: transform .2s,opacity .2s; }
#toast.visible { opacity: 1; transform: translate(-50%,0); }
[data-theme="white"] { --page: #fff; }
[data-theme="mint"] { --page: #edf3ed; --page-text: #303d32; }
[data-theme="night"] { --bg: #151516; --surface: #202022; --text: #eeece7; --muted: #999996; --line: #343435; --accent: #f4916c; --accent-soft: #382b25; --page: #19191b; --page-text: #d1ceca; color-scheme: dark; }
[data-theme="night"] .hero { background: #282725; }
[data-theme="night"] .hero h1 { color: #f1eae1; }
[data-theme="night"] .hero-description, [data-theme="night"] .hero-meta, [data-theme="night"] .hero .eyebrow { color: #b7aea1; }
[data-theme="night"] .hero-art { background: radial-gradient(ellipse at 55% 60%,#b18b6029,transparent 65%); }
[data-theme="night"] .orbit { border-color: #99826922; }
[data-theme="night"] .card-cover { box-shadow: 0 9px 20px #0004; }
@keyframes panel-in { from { transform: translateX(25px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }
@media(min-width: 1600px) { .shelf-main { padding-top: 60px; } .hero { min-height: 550px; } .hero h1 { font-size: 47px; } .floating-book { width: 245px; } }
@media(max-width: 1390px) { .reading-rail { display: none; } .reader-toolbar { right: 22px; } .reader-main { max-width: min(calc(var(--reading-width) + 100px),calc(100% - 170px)); } .site-footer { margin: 0 40px; } }
@media(max-width: 1000px) { .hero { min-height: 450px; } .hero-copy { padding: 35px 15px 35px 32px; } .hero h1 { font-size: 34px; } .floating-book { width: 185px; } .orbit { width: 340px; height: 340px; } .orbit-two { width: 270px; height: 270px; } .library-card { gap: 17px; padding: 20px; } .card-cover { width: 95px; } .card-info h3 { font-size: 16px; } .card-bottom { flex-wrap: wrap; } .library-label { display: none; } .main-nav { margin-left: 55px; } }
@media(max-width: 760px) {
  .header-inner { height: 66px; padding: 0 22px; } .brand { font-size: 21px; gap: 5px; }
  .brand-mark { width: 29px; } .main-nav { margin-left: 35px; gap: 24px; } .main-nav a { font-size: 12px; }
  .main-nav a.active:after { bottom: 10px; } .header-tools { gap: 0; } .icon-button { width: 35px; height: 38px; }
  .shelf-main { padding: 26px 24px 50px; } .hero { min-height: 395px; grid-template-columns: 1.1fr .9fr; border-radius: 17px; }
  .hero-copy { padding: 30px 0 30px 26px; } .hero h1 { font-size: 30px; letter-spacing: -1px; margin-top: 17px; }
  .hero-description { font-size: 12px; } .hero-meta { gap: 8px; font-size: 10px; margin-top: 18px; }
  .floating-book { width: 150px; } .art-caption { font-size: 8px; bottom: 22px; } .art-caption span { font-size: 9px; }
  .hero-actions { gap: 15px; margin-top: 24px; } .primary-button { padding: 11px 18px; font-size: 12px; gap: 12px; }
  .hero-actions .text-button { font-size: 11px; } .orbit { width: 290px; height: 290px; } .orbit-two { width: 210px; height: 210px; }
  .catalog-section, .updates-section { margin-top: 43px; } .section-heading h2 { font-size: 24px; } .book-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-cover { width: 110px; } .card-info h3 { font-size: 19px; } .library-card { padding: 22px; gap: 25px; } .card-bottom { flex-wrap: nowrap; }
  .card-description { -webkit-line-clamp: 2; } .book-search { width: 185px; } .site-footer { margin: 0 24px; flex-wrap: wrap; font-size: 10px; }
  .book-detail { grid-template-columns: 160px 1fr; gap: 30px; } .detail-info h1 { font-size: 27px; } .detail-stats { gap: 25px; margin-top: 20px; }
  .detail-stats strong { font-size: 22px; } .detail-stats span { font-size: 10px; } .detail-info .hero-actions { gap: 10px; } .secondary-button { font-size: 12px; padding: 11px 16px; gap: 8px; }
  .detail-chapters { grid-template-columns: repeat(2,1fr); } .reader-header { height: 58px; padding: 0 20px; gap: 13px; }
  .reader-header .brand { display: none; } .reader-header-center { margin-left: 0; overflow: hidden; } .volume-header { display: none; }
  .reader-main { border: 0; border-radius: 0; max-width: 100%; margin: 0; padding: 36px 35px 85px; min-height: calc(100svh - 58px); }
  body.reading { background: var(--page); } .reader-toolbar { left: 15px; right: 15px; top: auto; bottom: max(12px,env(safe-area-inset-bottom)); flex-direction: row; justify-content: space-around; padding: 4px 9px; border-radius: 22px; box-shadow: 0 5px 25px #00000012; background: color-mix(in srgb,var(--page) 88%,transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .tool-button { width: 54px; height: 49px; gap: 3px; } .tool-button:last-child { display: none; }
  .chapter-title { font-size: 26px; } .chapter-kicker { margin-bottom: 23px; } .reading-status { display: none; }
  .chapter-meta { padding-bottom: 25px; margin-bottom: 27px; } .chapter-navigation { gap: 8px; }
  #toast { bottom: 90px; } dialog { width: 400px; padding: 26px; }
}
@media(max-width: 520px) {
  .header-inner { height: 62px; padding: 0 17px; } .brand { font-size: 20px; } .brand-mark svg { width: 25px; }
  .main-nav { margin-left: auto; gap: 18px; } .main-nav a { font-size: 11px; } .header-tools { margin-left: 14px; }
  .header-tools .icon-button { width: 30px; height: 35px; } .header-tools .icon-button svg { width: 16px; }
  .shelf-main { padding: 20px 20px 45px; } .hero { position: relative; grid-template-columns: 1fr; min-height: 0; border-radius: 17px; }
  .hero-copy { padding: 29px 27px 22px; } .hero .eyebrow { font-size: 10px; } .hero h1 { font-size: 33px; line-height: 1.3; max-width: 310px; margin: 17px 0 14px; letter-spacing: -1.2px; }
  .hero-description { font-size: 12px; line-height: 1.9; } .hero-meta { font-size: 10px; gap: 10px; margin-top: 16px; }
  .hero-actions { gap: 21px; margin-top: 22px; } .hero-art { height: 255px; background: radial-gradient(ellipse at 50% 60%,#c9a67f44,transparent 70%); }
  .floating-book { width: 138px; margin-bottom: 24px; transform: perspective(1200px) rotateY(-17deg) rotateZ(8deg); }
  .art-caption { left: auto; right: 20px; bottom: 26px; width: 68px; text-align: left; line-height: 1.8; font-size: 7px; letter-spacing: 1px; }
  .art-caption span { font-size: 9px; margin-top: 8px; letter-spacing: .2px; }
  .orbit { width: 310px; height: 310px; bottom: -80px; } .orbit-two { width: 215px; height: 215px; bottom: -33px; }
  .hero-progress { margin-top: 19px; } .hero-progress+.hero-art { height: 240px; }
  .continue-strip { padding: 14px; gap: 11px; } .continue-strip strong { max-width: 195px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .continue-strip .continue-chapter { display: none; } .continue-strip>svg { margin-left: auto; }
  .continue-icon { width: 33px; height: 33px; } .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 17px; margin-bottom: 20px; }
  .section-heading h2 { font-size: 23px; } .section-heading .eyebrow { font-size: 10px; }
  .catalog-section .book-search { width: 100%; padding: 11px 15px; } .filter-bar { gap: 6px; padding-bottom: 15px; margin-bottom: 20px; }
  .filter-bar button { font-size: 11px; padding: 6px 14px; min-height: 34px; }
  .library-card { padding: 18px; gap: 18px; border-radius: 13px; } .card-cover { width: 90px; }
  .card-info h3 { font-size: 16px; line-height: 1.5; margin: 7px 0; } .card-category { font-size: 9px; }
  .card-description { font-size: 11px; margin-bottom: 9px; } .tags { gap: 5px; } .tags>span { font-size: 9px; padding: 1px 5px; }
  .card-bottom { padding-top: 11px; gap: 6px; } .card-bottom .text-button { font-size: 11px; } .card-bottom>span { font-size: 9px; }
  .update-row { padding: 19px 0; gap: 15px; } .update-number { width: 25px; font-size: 15px; }
  .update-row strong { font-size: 12px; } .update-row small { font-size: 10px; } .update-length { display: none; }
  .update-row>svg { margin-left: auto; flex-shrink: 0; } .site-footer { margin: 0 20px; gap: 12px; padding: 23px 0; }
  .site-footer>a:first-child { width: 100%; font-size: 14px; } .site-footer>a:first-child span { font-size: 10px; }
  .page-heading { margin: 15px 0 30px; } .page-heading h1 { font-size: 33px; } .page-heading p { font-size: 12px; }
  .back-link { margin-bottom: 25px; } .book-detail { grid-template-columns: 100px 1fr; gap: 22px; align-items: start; padding-bottom: 30px; }
  .detail-info { min-width: 0; } .detail-info .eyebrow { font-size: 9px; } .detail-info h1 { font-size: 22px; line-height: 1.4; margin: 10px 0 12px; letter-spacing: -.6px; }
  .detail-author { font-size: 10px; line-height: 1.8; margin: 0 0 12px; } .detail-author span { margin: 0 5px; }
  .detail-info .tags { display: none; } .detail-stats { gap: 18px; margin-top: 18px; }
  .detail-stats strong { font-size: 19px; } .detail-stats span { font-size: 9px; } .detail-stats small { font-size: 9px; }
  .detail-info .hero-actions { flex-wrap: wrap; gap: 10px; margin-left: -122px; margin-top: 28px; }
  .detail-info .hero-actions .primary-button { flex: 1; } .detail-info .hero-actions .secondary-button { flex: 1; }
  .synopsis-section { padding: 23px 0; } .synopsis-section h2 { font-size: 17px; } .synopsis-section p { font-size: 13px; }
  .full-directory { margin-top: 28px; } .full-directory .book-search { width: 100%; }
  .detail-chapters { grid-template-columns: 1fr; } .detail-chapter { padding: 18px 0; gap: 15px; }
  .history-card { padding: 18px; gap: 18px; flex-wrap: wrap; } .history-card .mini-cover { width: 67px; }
  .history-info h2 { font-size: 16px; line-height: 1.5; } .history-info p { font-size: 10px; }
  .history-card>.secondary-button { margin-left: auto; padding: 10px 16px; }
  .reader-header { padding: 0 15px; gap: 12px; } .back-to-shelf { font-size: 10px; }
  .reader-header-center strong { font-size: 10px; max-width: 210px; } .reader-header-right { gap: 0; }
  .reader-main { padding: 29px 24px 85px; } .chapter-title { font-size: 24px; line-height: 1.5; letter-spacing: -.5px; }
  .chapter-meta { gap: 16px; font-size: 9px; } .chapter-kicker { font-size: 9px; letter-spacing: .3px; }
  .chapter-navigation button { padding: 11px 14px; font-size: 11px; gap: 5px; }
  .chapter-navigation .nav-directory { border: 0; padding: 11px 5px; } .chapter-text { letter-spacing: .01em; }
  dialog { width: 100%; padding: 23px; border-radius: 0; } .panel-book-title { font-size: 23px; }
}
@media(max-width: 370px) { .main-nav { gap: 12px; } .header-tools { margin-left: 6px; } .hero h1 { font-size: 29px; } .card-cover { width: 76px; } .library-card { gap: 14px; padding: 15px; } .card-category>span { display: none; } .card-bottom>span { display: none; } .shelf-main { padding-left: 16px; padding-right: 16px; } }
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* 随机账号沿用阅读设置的抽屉，不打断正文。 */
.account-button { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.account-intro { display: flex; align-items: center; gap: 15px; margin: 12px 0 20px; }
.account-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.account-avatar svg { width: 25px; height: 25px; }
.account-intro h3 { font-size: 20px; margin: 0 0 5px; }
.account-intro p, .account-status, .account-id, .account-section p, .account-confirm p { font-size: 12px; line-height: 1.9; color: var(--muted); }
.account-id { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.account-id span { font-family: ui-monospace,monospace; letter-spacing: .4px; }
.account-status { color: var(--accent); }
.account-section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.account-section h3 { font-size: 15px; margin: 0 0 9px; }
.account-section p { margin: 0 0 15px; }
.account-section label { display: block; color: var(--muted); font-size: 11px; margin: 15px 0 8px; }
.account-section textarea { display: block; resize: vertical; min-height: 84px; width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); padding: 13px; font: 13px/1.8 ui-monospace,monospace; overflow-wrap: anywhere; margin: 0 0 14px; }
.account-bottom { display: flex; justify-content: space-between; gap: 20px; margin: 23px 0; }
.account-error { color: #c84930; font-size: 12px; line-height: 1.8; }
.account-confirm { padding: 15px; border-radius: 12px; background: var(--bg); }
.account-settings-link { margin: 20px auto; justify-content: center; }
@media(max-width: 1100px) { .library-label { display: none; } }
@media(max-width: 520px) { .header-tools [data-action="refresh"] { display: none; } .reader-header-right .icon-button { width: 27px; } .reader-header-center { min-width: 0; } }
.footer-tools { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-tools .text-button { font-size: 11px; }
