:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#273e36;background:#f6f5ef;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--bg: #f6f5ef;--surface: #fffefb;--text: #273e36;--muted: #7e857a;--line: #e3e6dc;--accent: #35685b;--soft: #e8eee5;--paper: #f5efdf;color-scheme:light}:root[data-theme=white]{--bg: #fafbfc;--surface: #fff;--text: #293b3b;--line: #e6e9ea;--soft: #eef3f1;--paper: #fff}:root[data-theme=night]{--bg: #192321;--surface: #222f2b;--text: #d5e0d4;--muted: #9ca99e;--line: #39453e;--accent: #a1cbb5;--soft: #2d4036;--paper: #24312b;color-scheme:dark;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--bg);color:var(--text)}button,a,input{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button,.button{font:inherit;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;border:1px solid transparent;border-radius:9px;background:var(--accent);color:var(--bg);padding:11px 18px;min-height:44px;font-size:14px;font-weight:550;line-height:1.4;text-align:center}button:hover,.button:hover{filter:brightness(.96)}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #c3a96a;outline-offset:4px}.secondary{background:transparent;border:1px solid var(--line);color:var(--text)}h1,h2,h3,p{margin-top:0}h2{font-size:19px;font-weight:650;letter-spacing:.01em}h3{font-size:15px}p{line-height:1.8}svg{flex-shrink:0}.muted{color:var(--muted);font-size:13px}.small{font-size:12px}.topbar{max-width:1000px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:25px 28px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:11px;align-items:center;font-size:23px;font-family:Songti SC,SimSun,serif;letter-spacing:3px}.brand small{display:block;font:10px sans-serif;color:var(--muted);letter-spacing:1px;margin-top:3px}.brand-icon{display:flex;width:42px;height:42px;border-radius:13px;background:var(--accent);color:var(--bg);align-items:center;justify-content:center}.icon-button{background:transparent;color:var(--text);padding:8px;border:1px solid var(--line);border-radius:50%;width:44px;height:44px}.page{max-width:920px;margin:auto;padding:0 28px 130px;min-height:75vh}.eyebrow{font-size:10px;letter-spacing:2.2px;font-weight:600;color:var(--muted);line-height:1.8}.home-intro{padding:48px 0 30px}.home-intro h1{font-family:Songti SC,SimSun,serif;font-weight:500;line-height:1.65;font-size:38px;letter-spacing:2px;margin:14px 0 10px}.home-intro h1 span{color:#aa9670}.home-intro>p:not(.eyebrow){color:var(--muted);font-size:14px;margin-bottom:22px}.connection-pill{display:inline-flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:30px;font-size:11px;padding:8px 12px;color:var(--muted)}.status-dot{height:6px;width:6px;border-radius:50%;background:#629478}.status-dot.offline{background:#bd965a}.continue-card{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:24px 28px;background:var(--soft);border-radius:15px;margin:0 0 35px;border:1px solid var(--line)}.continue-card>div{min-width:0}.continue-card h2{font-family:serif;font-size:21px;margin-bottom:8px}.continue-card p:not(.eyebrow){font-size:12px;color:var(--muted);margin-bottom:12px}.continue-card .eyebrow{font-size:10px;letter-spacing:1px;margin-bottom:12px}.continue-card>img{width:77px;aspect-ratio:12/17;object-fit:cover;transform:rotate(5deg);border-radius:3px;box-shadow:3px 6px 12px #273e3617}.continue-link{font-size:13px;font-weight:600;color:var(--accent)}.continue-link span{margin-left:25px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.section-heading h2,.section-heading h3{margin-bottom:0}.section-heading>a{font-size:12px;color:var(--accent)}.count{font-family:sans-serif;font-size:12px;margin-left:6px;color:var(--muted);font-weight:400}.book-section{margin:32px 0}.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}.book-card{min-width:0}.cover-link{position:relative;display:block;margin-bottom:14px}.book-cover{width:100%;aspect-ratio:12/17;object-fit:cover;border-radius:5px 9px 9px 5px;box-shadow:0 5px 14px #203e3510;border:1px solid #273e360b}.cover-label{position:absolute;bottom:10px;left:10px;color:#f8f5ea;background:#294638b0;font-size:9px;letter-spacing:1px;padding:4px 7px;border-radius:4px}.book-title{display:block;font-size:15px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}.book-author{font-size:11px;color:var(--muted);margin:5px 0 7px}.card-meta{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:10px;gap:4px;flex-wrap:wrap}.card-meta button{font-size:11px;color:var(--muted);background:transparent;padding:2px 4px;min-height:34px}.shelf-empty{display:flex;align-items:center;gap:15px;background:var(--surface);border:1px dashed var(--line);padding:25px;border-radius:12px;color:var(--muted);margin:15px 0 30px}.shelf-empty h3{color:var(--text);margin-bottom:5px;font-weight:500}.shelf-empty p{font-size:12px;margin-bottom:0}.footnote{color:var(--muted);text-align:center;font-size:11px;line-height:2;margin:40px 0 0}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:1000px;background:var(--surface);border-top:1px solid var(--line);display:flex;justify-content:center;gap:100px;padding:11px 15px calc(11px + env(safe-area-inset-bottom));z-index:20}.bottom-nav a{display:flex;align-items:center;gap:9px;font-size:13px;min-height:40px;color:var(--muted);padding:0 15px}.bottom-nav .active{color:var(--accent)}.back-link{display:inline-block;font-size:13px;color:var(--muted);padding:25px 0}.book-detail{display:flex;gap:30px;margin:10px 0 35px;align-items:center}.detail-cover{width:155px;aspect-ratio:12/17;object-fit:cover;border-radius:5px;box-shadow:0 6px 15px #203e3515}.book-detail h1{font-size:28px;font-family:serif;line-height:1.6;font-weight:550;margin-bottom:15px}.book-detail p{font-size:13px;color:var(--muted);margin-bottom:12px}.tags{display:flex;gap:6px;flex-wrap:wrap}.tags span{font-size:10px;padding:4px 7px;background:var(--soft);border-radius:4px;color:var(--muted)}.description{margin:35px 0 22px}.description p{color:var(--muted);font-size:14px;line-height:2}.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:40px}.catalog-section{padding-top:15px}.volume{margin:27px 0;border-top:1px solid var(--line);padding-top:15px}.volume .section-heading{margin-bottom:8px}.volume h3{font-weight:500;color:var(--muted);font-size:13px}.text-button{padding:5px 9px;min-width:40px;min-height:44px;background:transparent;color:var(--accent);font-size:12px}.chapter-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:10px 0;font-size:14px}.chapter-row>a{flex:1;min-height:44px;display:flex;flex-direction:column;justify-content:center;gap:6px;line-height:1.7}.chapter-row small{font-size:10px;color:var(--muted)}.chapter-row small.saved{color:var(--accent)}.page-title{font-size:30px;font-family:serif;margin:12px 0}.page>.eyebrow{margin-top:35px}.storage-card{padding:25px;background:var(--soft);border-radius:15px;margin:28px 0 18px}.storage-card .section-heading{font-size:13px;color:var(--muted);margin-bottom:15px}.storage-card strong{font-size:34px;font-weight:500;letter-spacing:-1px}.storage-card p{font-size:12px;color:var(--muted);margin:7px 0}.storage-divider{height:1px;background:var(--line);margin:18px 0}.storage-card small{display:block;font-size:11px;line-height:1.9;color:var(--muted)}.storage-card button{margin-top:18px}.notice{font-size:12px;color:var(--muted);padding:15px;background:var(--surface);border:1px solid var(--line);border-radius:9px;line-height:1.8}.offline-book{margin:30px 0}.offline-heading{display:flex;gap:18px;align-items:center;margin-bottom:15px}.offline-heading>img{width:65px;aspect-ratio:12/17;border-radius:4px}.offline-heading h2{font-size:17px;margin-bottom:5px}.offline-heading p,.offline-heading a{font-size:12px;color:var(--muted);margin-bottom:5px}.offline-heading a:last-child{color:var(--accent)}.jobs,.cleanup{border-top:1px solid var(--line);padding-top:25px;margin-top:30px}.job{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line)}.job strong{font-size:13px}.job p{font-size:12px;margin:5px 0;color:var(--muted)}.cleanup p{font-size:12px;color:var(--muted)}.actions{display:flex;gap:10px;flex-wrap:wrap}.danger{color:#ba6852!important}.danger-button{background:#a64c3b;color:#fff}.toast{position:fixed;top:12px;left:50%;transform:translate(-50%);width:calc(100% - 24px);max-width:570px;z-index:90;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 5px 22px #0002;padding:12px 10px 12px 18px;display:flex;align-items:center;justify-content:space-between;font-size:13px;line-height:1.7}.toast button{background:transparent;color:var(--muted);padding:4px;min-width:38px;font-size:24px}.error{color:#b45d46}.empty-state{text-align:center;line-height:1.9;padding:55px 15px;color:var(--muted)}.empty-state h1,.empty-state h2{font-size:19px;color:var(--text)}.empty-state a{display:block;font-size:13px;margin-top:18px}.download-indicator{position:fixed;bottom:90px;left:50%;transform:translate(-50%);z-index:60;display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--accent);color:var(--bg);padding:10px 12px 10px 22px;border-radius:12px;font-size:12px;max-width:calc(100% - 24px);width:420px;box-shadow:0 5px 20px #0002}.download-indicator button{background:var(--bg);color:var(--accent);padding:6px 12px}.reader-toolbar{position:sticky;top:0;z-index:30;background:var(--bg);display:flex;align-items:center;justify-content:space-between;padding:9px 20px;border-bottom:1px solid var(--line);gap:15px;height:65px}.reader-toolbar>a:first-child{font-size:21px;white-space:nowrap;min-height:44px;display:flex;align-items:center;gap:7px}.reader-toolbar>a:first-child span{font-size:12px}.reader-book-title{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reader-toolbar button{background:transparent;color:var(--text);font-size:18px;padding:5px 10px}.reader-content{max-width:740px;margin:auto;padding:50px 32px 70px;overflow-wrap:anywhere}.reader-content>h1{font-size:25px;line-height:1.6;font-family:serif;font-weight:550;margin:15px 0}.chapter-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);margin-bottom:40px}.chapter-meta button{color:var(--accent);background:transparent;font-size:11px;padding:4px 8px}.reader-content>p[data-block]{font-family:"Noto Serif CJK SC",Songti SC,SimSun,serif;font-size:var(--font-size);line-height:var(--line-height);text-indent:2em;letter-spacing:.025em;margin-bottom:1.3em;text-align:justify}.reader-content figure{margin:30px 0 55px;width:100%;position:relative}.reader-content figure img,.reader-content figure .image-placeholder{display:block;width:100%;height:100%;object-fit:contain;border-radius:6px}.reader-content figcaption{font:10px/1.6 sans-serif;color:var(--muted);text-align:center;margin-top:10px}.image-placeholder{background:var(--soft);display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:11px}.reader-content .eyebrow{font-family:inherit;font-size:10px;letter-spacing:1px}.chapter-nav{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:center;text-align:center;margin-top:45px;font-size:13px}.chapter-nav a.button{padding:10px;font-size:12px}.reader-footer{text-align:center;font-size:11px;color:var(--muted);margin:45px 0 0}.settings-panel{position:fixed;top:76px;right:max(12px,calc((100vw - 740px)/2));width:330px;max-width:calc(100% - 24px);z-index:50;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:13px;box-shadow:0 8px 35px #0002}.settings-panel h2{font-size:16px}.settings-panel .section-heading button{background:transparent;color:var(--accent);padding:4px 0}.settings-panel label{display:block;font-size:13px;margin-bottom:18px}.settings-panel output{float:right;color:var(--muted)}.settings-panel input{display:block;width:100%;margin:15px 0;accent-color:var(--accent)}.theme-options{display:flex;gap:10px}.swatch{flex:1;font-size:12px;border:1px solid var(--line)}.swatch.paper{background:#f5efdf;color:#3f4638}.swatch.white{background:#fff;color:#34443d}.swatch.night{background:#24312b;color:#d5e0d4}.swatch[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px}@media(max-width:650px){.topbar{padding:20px 22px}.page{padding:0 22px 115px}.home-intro{padding:34px 0 25px}.home-intro h1{font-size:31px}.eyebrow{font-size:9px;letter-spacing:1.7px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.section-heading{margin-bottom:18px}.section-heading h2{font-size:18px}.section-heading .muted{font-size:10px}.book-section{margin:28px 0 34px}.continue-card{padding:20px;gap:12px;margin-bottom:30px}.continue-card h2{font-size:19px}.continue-card>img{width:65px}.continue-card p:not(.eyebrow){font-size:10px}.book-cover{max-height:300px}.book-title{font-size:14px}.bottom-nav{gap:65px;padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}.bottom-nav a{font-size:11px;gap:7px}.book-detail{gap:20px;margin-top:3px}.detail-cover{width:112px}.book-detail h1{font-size:23px;margin-bottom:10px}.book-detail .eyebrow{font-size:8px}.book-detail p{font-size:11px}.tags span{font-size:9px}.description h2{font-size:17px}.description p{font-size:13px}.detail-actions{gap:8px}.detail-actions button,.detail-actions .button{flex:1;padding:11px 10px;white-space:nowrap}.reader-content{padding:35px 22px 60px}.reader-content>h1{font-size:23px}.reader-content>p[data-block]{letter-spacing:0}.reader-toolbar{padding:8px 16px}.chapter-nav{gap:12px}.storage-card{padding:22px}.storage-card strong{font-size:31px}.shelf-empty{padding:20px}.shelf-empty p{font-size:11px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}.toast{top:auto;bottom:100px;pointer-events:none}.toast button{pointer-events:auto}
