@charset "UTF-8";
:root{--bg:#f4f1e9;--side:#ebe8df;--paper:#fffdf7;--ink:#282923;--muted:#858278;--line:#dedacf;--accent:#a94331;--soft:#e9ddd2;--serif:"Noto Serif SC","Songti SC","SimSun",serif;--sans:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;--reader-size:20px;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:14px;line-height:1.5}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.35}button{border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:4px}a{color:inherit;text-decoration:none}button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;vertical-align:middle}button:hover{color:var(--accent)}[hidden]{display:none!important}.sidebar{width:264px;position:fixed;inset:0 auto 0 0;z-index:30;background:var(--side);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:32px 23px 20px}.brand{display:flex;gap:14px;align-items:center;margin:0 0 44px 7px;width:fit-content;font-family:var(--serif);font-size:28px;letter-spacing:3px}.brand small{display:block;font-family:var(--sans);font-size:11px;font-weight:400;letter-spacing:2px;color:var(--muted);margin-top:4px}.seal{display:flex;align-items:center;justify-content:center;width:42px;height:45px;border:1px solid var(--accent);color:var(--accent);font-size:27px;box-shadow:inset 0 0 0 3px var(--side),inset 0 0 0 4px var(--accent);letter-spacing:0}.section-label{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);letter-spacing:1.5px;margin-bottom:15px}.section-label span{font-size:9px;letter-spacing:1.2px}.volumes{display:flex;flex-direction:column;gap:6px;margin:0 -7px 25px}.volume-button{display:flex;align-items:center;gap:13px;width:100%;text-align:left;padding:12px 10px;border-radius:4px}.volume-button.active{background:var(--paper);box-shadow:0 2px 6px #342e1d05}.volume-number{width:27px;height:35px;border:1px solid var(--line);border-left:3px solid var(--accent);display:grid;place-content:center;font-family:var(--serif);font-size:13px;background:var(--paper)}.volume-name{font-size:13px;font-weight:500}.volume-name small{display:block;font-size:10px;color:var(--muted);margin-top:2px;letter-spacing:.4px}.volume-button .resume-dot{margin-left:auto;color:var(--accent);font-size:14px}.side-tabs{display:flex;border-bottom:1px solid var(--line);gap:24px}.side-tabs button{padding:10px 0;font-size:12px;color:var(--muted);position:relative}.side-tabs button.active{color:var(--ink)}.side-tabs button.active:after{position:absolute;content:"";height:2px;background:var(--accent);bottom:-1px;left:0;right:0}.side-tabs span{font-size:10px;margin-left:4px;color:var(--muted)}.side-scroll{overflow:auto;flex:1;padding:13px 0 20px;scrollbar-width:thin;scrollbar-color:var(--line) transparent;min-height:80px}.toc-item{display:flex;width:100%;gap:12px;text-align:left;padding:9px 2px;font-size:11px;line-height:1.7;color:#77756b}.toc-item.active{color:var(--accent)}.toc-item span:first-child{flex:1}.toc-page{font-size:10px;opacity:.65;flex-shrink:0;padding-top:1px}.toc-item.sub{padding-left:12px}.empty-note{color:var(--muted);font-size:12px;padding:18px 0;line-height:1.9}.side-sync{display:flex;gap:10px;text-align:left;align-items:center;border-top:1px solid var(--line);padding:19px 0 12px;font-size:12px}.side-sync>span:last-child{margin-left:auto}.side-sync small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.sync-dot,.saved-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#7c8a6b;flex-shrink:0}.sync-dot{background:var(--muted)}body[data-sync="synced"] .sync-dot{background:#6a825d}body[data-sync="offline"] .sync-dot,body[data-sync="pending"] .sync-dot{background:#b58c46}.side-foot{font-size:9px;color:var(--muted);letter-spacing:1px;margin-top:9px}.main{margin-left:264px}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 44px;border-bottom:1px solid var(--line);gap:16px}.breadcrumb{display:flex;align-items:center;gap:15px;font-size:12px;white-space:nowrap}.slash{color:#bbb6aa}.breadcrumb>span:last-child{color:var(--muted)}.top-actions{display:flex;align-items:center;gap:18px}.icon-button{display:grid;place-items:center;min-width:30px;height:32px;font-size:19px}.divider{width:1px;height:17px;background:var(--line);margin-left:1px}.sync-button{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);white-space:nowrap}.mobile-menu{display:none}.reading-shell{max-width:1010px;margin:auto;padding:40px 64px 22px}.intro-row{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:29px;gap:12px}.eyebrow{font-size:8px;letter-spacing:2.2px;color:var(--muted);margin-bottom:10px}h1{font-family:var(--serif);font-size:27px;letter-spacing:2px;margin:0;font-weight:500}h1 span{font-size:17px;margin-left:12px;letter-spacing:1px;font-weight:400;color:var(--muted)}.edition{text-align:right;color:var(--muted);font-size:10px;letter-spacing:1.5px;white-space:nowrap}.edition span{display:block;font-family:var(--serif);font-size:12px;letter-spacing:1px;margin-top:9px;color:var(--ink)}.reading-meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;font-size:11px;color:var(--muted);gap:20px}.reading-meta>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.reading-meta button{display:flex;gap:6px;align-items:center;font-size:10px;white-space:nowrap}.reading-meta button svg{height:14px;width:14px}.reading-meta button.active{color:var(--accent)}.reading-meta button.active svg{fill:var(--accent)}.paper{position:relative;background:var(--paper);border:1px solid #dcd7c9;box-shadow:0 4px 25px #342e1d04;min-height:490px;padding:32px 55px 24px;border-radius:2px}.paper-head,.paper-foot{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);letter-spacing:2px}.paper-head{padding-bottom:23px;border-bottom:1px solid var(--line);margin-bottom:30px}.paper-badge{letter-spacing:1px;font-size:9px}.paper-foot{margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}.page-text{font-family:var(--serif);font-size:var(--reader-size);line-height:2.1;letter-spacing:.06em;min-height:280px;overflow-wrap:anywhere}.page-text p{margin:0 0 1em;text-indent:2em;white-space:pre-wrap}.page-text p.short{text-indent:0;text-align:center;font-size:1.07em;font-weight:600;margin:1em 0 1.4em;line-height:1.9}.page-text p.page-number{display:none}.page-text p.date{text-indent:0;text-align:center;font-size:.8em;color:var(--muted);margin-top:-.8em}.canvas-wrap{width:100%;overflow:auto;text-align:center}.canvas-wrap canvas{max-width:100%;height:auto;display:block;margin:auto}.loading{padding:100px 0;text-align:center;color:var(--muted);font-size:13px;letter-spacing:1px}.reading-bottom{display:flex;justify-content:space-between;align-items:center;margin:13px 1px 24px;font-size:10px;color:var(--muted);gap:15px}.reading-bottom>span{display:flex;align-items:center;gap:6px}.saved-dot{width:4px;height:4px}.reading-bottom button{font-size:10px;color:var(--accent)}.page-controls{display:flex;align-items:center;justify-content:space-between;gap:35px;padding:0 3px}.page-turn{display:flex;gap:12px;align-items:center;font-size:12px;white-space:nowrap;padding:12px 0;min-width:86px}.page-turn:last-child{justify-content:flex-end}.page-center{width:230px;text-align:center;flex:1;max-width:280px}.page-center label{font-size:11px;color:var(--muted)}.page-center input{appearance:textfield;-moz-appearance:textfield;width:42px;border:0;color:var(--ink);background:transparent;text-align:right;font-size:12px;padding:3px 5px}.page-center input::-webkit-inner-spin-button{display:none}.progress-line{height:2px;background:var(--line);margin-top:9px}.progress-line>div{height:100%;background:var(--accent);transition:width .25s}.reading-footer{display:flex;justify-content:space-between;margin-top:32px;font-size:9px;color:var(--muted);gap:10px}.keyboard-hint span{margin:0 7px;color:#b8b2a7}.dialog{background:var(--paper);color:var(--ink);border:1px solid var(--line);padding:30px;border-radius:9px;width:460px;max-width:calc(100vw - 28px);box-shadow:0 24px 80px #0002;max-height:85dvh;overflow:auto}.dialog::backdrop{background:#2927215c;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.dialog-head h2{font-family:var(--serif);font-size:23px;font-weight:500;margin:0}.close-dialog{font-size:25px;color:var(--muted)}.field-label{font-size:11px;margin:24px 0 12px;color:var(--muted);letter-spacing:1px}.theme-options,.mode-options,.font-size-row{display:flex;gap:10px}.theme-options>button{flex:1;padding:18px 4px;border:1px solid var(--line);border-radius:4px}.theme-options>button:nth-child(1){background:#f3eddf;color:#494331}.theme-options>button:nth-child(2){background:#fff;color:#333}.theme-options>button:nth-child(3){background:#292c29;color:#d4d3c9}.theme-options>button.active,.mode-options>button.active{outline:2px solid var(--accent);outline-offset:2px}.font-size-row{justify-content:space-between;align-items:center}.outline-button{border:1px solid var(--line);padding:8px 13px;border-radius:4px;white-space:nowrap;font-size:12px}.mode-options>button{border:1px solid var(--line);border-radius:4px;flex:1;padding:15px 8px;font-size:13px}.mode-options small{display:block;font-size:10px;margin-top:5px;color:var(--muted)}.dialog-note{color:var(--muted);font-size:11px;line-height:1.9}.dialog-description{font-size:13px;line-height:1.9;color:var(--muted)}input,textarea{border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:4px;padding:11px;max-width:100%}.code-row{display:flex;gap:8px}.code-row input{width:100%;min-width:0;font-family:monospace;font-size:11px}textarea{resize:vertical;width:100%;font-family:monospace;font-size:13px}.primary-button{background:var(--accent);color:#fff;padding:12px 18px;border-radius:4px;font-size:12px}.primary-button:hover{color:#fff;filter:brightness(1.1)}#joinBtn{width:100%;margin-top:12px}.dialog-separator{height:1px;background:var(--line);margin:25px 0}.form-message{font-size:12px;line-height:1.8;min-height:24px;margin-top:10px;color:var(--accent)}.text-button{padding:8px 0;color:var(--accent);font-size:12px}.search-dialog{width:640px}.search-form{display:flex;gap:8px}.search-form input{flex:1;min-width:0}.search-results{display:flex;flex-direction:column;gap:8px}.search-result{width:100%;text-align:left;border:1px solid var(--line);padding:13px;border-radius:4px;font-size:12px;line-height:1.8}.search-result small{display:block;color:var(--accent);font-size:10px;margin-bottom:4px}.search-result mark{background:var(--soft);color:var(--accent)}.toast{position:fixed;z-index:100;bottom:35px;left:50%;transform:translateX(-50%);max-width:90vw;background:var(--ink);color:var(--paper);padding:12px 20px;font-size:12px;border-radius:5px;box-shadow:0 4px 25px #0002}.shade{display:none}.error-copy{font-size:13px;line-height:1.9;padding:70px 0;color:var(--accent);text-align:center}
html[data-theme="white"]{--bg:#f8f9fa;--side:#f0f1f2;--paper:#fff;--ink:#25272b;--muted:#84868b;--line:#e1e3e7;--soft:#f4e1dc}
html[data-theme="night"]{--bg:#20231f;--side:#1b1e1b;--paper:#292d28;--ink:#d8dacd;--muted:#92988c;--line:#3f453c;--accent:#d3876e;--soft:#56453d;color-scheme:dark}html[data-theme="night"] .paper{border-color:var(--line)}html[data-theme="night"] .canvas-wrap{background:white}
@media(min-width:1500px){.reading-shell{padding-top:48px;max-width:1080px}.paper{padding:42px 75px 30px}.page-text{line-height:2.3}.sidebar{width:284px;padding-left:28px;padding-right:28px}.main{margin-left:284px}}
@media(max-width:1100px){.sidebar{width:236px;padding-left:18px;padding-right:18px}.main{margin-left:236px}.reading-shell{padding:30px 35px 20px}.topbar{padding:0 30px}.paper{padding:28px 36px 22px}.edition{display:none}.top-actions{gap:11px}.keyboard-hint{display:none}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s ease;width:min(290px,85vw);padding-top:26px;padding-bottom:max(20px,env(safe-area-inset-bottom))}.sidebar.open{transform:translateX(0)}.shade:not([hidden]){display:block;position:fixed;inset:0;z-index:29;background:#24251e66}.main{margin-left:0}.mobile-menu{display:grid;font-size:17px;margin-left:-7px;margin-right:1px}.topbar{height:65px;padding:0 19px;position:sticky;top:0;background:var(--bg);z-index:20;gap:5px}.breadcrumb{gap:9px;font-size:10px}.breadcrumb>span:first-of-type{font-size:11px}.top-actions{gap:7px}.icon-button{min-width:27px;font-size:17px}.top-actions svg{height:17px;width:17px}.top-actions .divider{display:none}.sync-button{font-size:0;gap:0;min-width:20px;min-height:30px;justify-content:center}.sync-button .sync-dot{width:7px;height:7px}.reading-shell{padding:26px 18px calc(110px + env(safe-area-inset-bottom))}.intro-row{margin-bottom:23px}.eyebrow{font-size:6px;letter-spacing:1.5px;margin-bottom:10px}h1{font-size:23px;letter-spacing:2px}h1 span{font-size:14px;margin-left:8px}.reading-meta{font-size:10px;margin-bottom:11px;gap:15px}.reading-meta button{font-size:9px}.paper{min-height:440px;padding:23px 22px 22px}.paper-head{font-size:8px;padding-bottom:17px;margin-bottom:24px}.paper-badge{font-size:8px}.page-text{font-size:var(--reader-size);line-height:2.05;letter-spacing:.025em}.paper-foot{font-size:8px;margin-top:20px;padding-top:15px}.reading-bottom{font-size:9px;align-items:flex-start;gap:7px;margin-bottom:20px}.reading-bottom button{font-size:9px;white-space:nowrap}.page-controls{position:fixed;bottom:0;left:0;right:0;border-top:1px solid var(--line);padding:12px 24px calc(12px + env(safe-area-inset-bottom));background:var(--bg);z-index:20;gap:20px;box-shadow:0 -6px 20px #24251e04}.page-turn{font-size:11px;min-width:62px;gap:9px;min-height:40px}.page-center{max-width:180px}.page-center input{font-size:12px}.reading-footer{margin-top:28px;font-size:8px}.dialog{padding:23px}.dialog-head h2{font-size:21px}.toast{bottom:100px}.brand{margin-bottom:29px}.volumes{margin-bottom:18px}.volume-button{padding-top:9px;padding-bottom:9px}.side-sync{padding-top:15px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.page-text p.note{font-size:.76em;line-height:1.9;color:var(--muted);text-indent:0}
.mobile-sync-label{display:none}@media(max-width:760px){.sync-button{gap:5px;min-width:38px;min-height:34px}.mobile-sync-label{display:inline;font-size:10px}.top-actions{gap:4px}}
