:root{color-scheme:dark;--bg:#161d26;--panel:#202a35;--text:#edf3f8;--muted:#97a7b8;--line:#ffffff16;--accent:#48b6f5;--blue:#1599e7;font-family:Inter,"Segoe UI","Microsoft YaHei",Arial,sans-serif;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:var(--bg);color:var(--text)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.25;cursor:default}button,a{-webkit-user-select:none;user-select:none}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.svg-library{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.reader{height:100dvh;display:flex;flex-direction:column}.topbar{height:70px;flex:none;padding:0 36px;display:flex;align-items:center;border-bottom:1px solid var(--line);background:#151c24;gap:24px}.brand{display:flex;align-items:center;gap:10px}.brand-mark{background:var(--blue);border-radius:6px;width:36px;height:36px;display:grid;place-items:center;font-size:28px;font-weight:900;font-style:italic;position:relative}.brand-mark span{font-size:10px;position:absolute;right:3px;bottom:2px}.brand-word{font-size:19px;letter-spacing:1.7px;font-weight:750;white-space:nowrap}.brand-word small{font-size:12px;letter-spacing:2px;font-weight:500;margin-left:9px;color:#b4c0cd}.header-divider{height:24px;width:1px;background:var(--line)}.library-label{font-size:13px;color:var(--muted);letter-spacing:1px}.top-actions{margin-left:auto;display:flex;align-items:center;gap:16px}.book-select-label{display:none}select{max-width:220px;background:#273441;border:1px solid #ffffff22;border-radius:7px;padding:8px;color:var(--text)}.download-top{display:flex;align-items:center;gap:8px;padding:9px 15px;background:#2b3a49;border:1px solid #536b8155;border-radius:7px;font-size:12px}.download-top:hover{background:#364b5f}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:0;width:36px;height:36px;border-radius:7px;background:transparent}.icon-button:hover:not(:disabled){background:#ffffff12;color:var(--accent)}
.book-heading{height:100px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:13px 42px 11px}.eyebrow{font-size:10px;letter-spacing:2.7px;color:var(--accent);margin:0 0 6px;font-weight:650}h1{font-size:22px;font-weight:600;letter-spacing:1px;margin:0 0 7px}.subtitle{font-size:11px;color:var(--muted);margin:0;letter-spacing:1px}.edition{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:9px}.edition #book-total{padding-left:10px;border-left:1px solid #ffffff22}.edition-dot{width:5px;height:5px;border-radius:100%;background:#67ceb8}.workspace{display:flex;flex:1;min-height:0;position:relative}.stage{position:relative;flex:1;min-width:0;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:18px 64px 36px;background:radial-gradient(ellipse at 50% 35%,#445465 0,#2b3745 44%,#1d2733 90%)}.stage:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.14;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.38' filter='url(%23n)'/%3E%3C/svg%3E")}.book-frame{position:relative;flex:none;transition:transform .55s ease;filter:drop-shadow(0 20px 22px #050b1366);visibility:hidden}.book-frame.ready{visibility:visible}#book{width:100%;height:100%}.page{background:#fafbfc;overflow:hidden}.page img{width:100%;height:100%;display:block;object-fit:contain;pointer-events:none;user-select:none}.page:after{content:"";position:absolute;inset:0;pointer-events:none}.page.--left:after{background:linear-gradient(to left,#18232d35,transparent 4%,transparent 99%,#0000000a)}.page.--right:after{background:linear-gradient(to right,#18232d35,transparent 4%,transparent 99%,#0000000a)}.page.--hard{background:white}.edge-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:10;background:#0a142345;border:1px solid #ffffff1c;display:grid;place-items:center;width:40px;height:56px;border-radius:9px;color:#cfdeeb}.edge-arrow:hover:not(:disabled){background:#243e55;color:white;border-color:#7dcdfa66}.edge-left{left:20px}.edge-right{right:20px}.edge-arrow svg{width:24px;height:24px}.stage-caption{position:absolute;bottom:11px;left:0;right:0;display:flex;gap:12px;align-items:center;justify-content:center;font-size:10px;color:#a4b4c3;letter-spacing:.6px}.caption-divider{height:10px;width:1px;background:#ffffff25}.loading{position:absolute;inset:0;z-index:30;display:flex;flex-direction:column;gap:20px;align-items:center;justify-content:center;background:#273442;font-size:13px;color:var(--muted)}.spinner{width:30px;height:30px;border:2px solid #ffffff19;border-top-color:var(--accent);border-radius:100%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error{z-index:40;max-width:480px;text-align:center;padding:30px;background:var(--panel);border-radius:12px}.error h2{font-size:20px}.error p{color:var(--muted);font-size:14px}.error a{color:var(--accent)}
.reader-footer{flex:none;height:101px;background:#151c24;padding:0 36px}.toolbar{height:65px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px}.tools-left,.tools-right{display:flex;gap:8px;align-items:center}.tools-right{justify-content:flex-end}.tool-button{background:transparent;border:0;border-radius:7px;height:38px;padding:0 12px;display:flex;align-items:center;gap:8px;font-size:12px;color:#c2cfdb;white-space:nowrap}.tool-button:hover,.tool-button[aria-expanded=true]{background:#ffffff0b;color:var(--accent)}.pagination{display:flex;align-items:center;gap:7px}#page-form{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);margin:0 8px}#page-input{width:44px;height:31px;background:#253241;border:1px solid #ffffff18;border-radius:5px;color:white;text-align:center;appearance:textfield;-moz-appearance:textfield}#page-input::-webkit-inner-spin-button,#page-input::-webkit-outer-spin-button{-webkit-appearance:none}.progress-track{height:7px;display:flex;align-items:center}#page-slider{margin:0;width:100%;height:3px;appearance:none;border-radius:10px;background:linear-gradient(to right,var(--blue) var(--progress,0%),#ffffff17 var(--progress,0%));cursor:pointer}#page-slider::-webkit-slider-thumb{appearance:none;width:9px;height:9px;background:#75ceff;border-radius:50%;box-shadow:0 0 0 4px #1599e715}#page-slider::-moz-range-thumb{width:9px;height:9px;background:#75ceff;border:0;border-radius:50%}.footer-meta{height:26px;display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:.5px;color:#778b9f}.footer-meta span:nth-child(2){color:#a7b8c8}
.sidebar{width:290px;flex:none;background:#1b2530;border-top:1px solid var(--line);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:35;box-shadow:10px 0 30px #00000015}.sidebar-head{height:54px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 16px;font-size:14px}.tabs{display:flex;padding:0 16px;border-bottom:1px solid var(--line)}.tabs button{width:50%;height:42px;background:transparent;border:0;border-bottom:2px solid transparent;font-size:12px;color:var(--muted)}.tabs button[aria-selected=true]{color:var(--accent);border-bottom-color:var(--accent)}.toc-list{padding:13px 10px;overflow:auto;flex:1;min-height:0}.toc-list button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;padding:14px 12px;background:transparent;border:0;border-radius:6px;color:#c0cedb;font-size:12px;line-height:1.6}.toc-list button span:first-child{max-width:200px}.toc-list button span:last-child{font-variant-numeric:tabular-nums;font-size:10px;color:#6f879c}.toc-list button:hover,.toc-list button[aria-current=true]{background:#1599e718;color:var(--accent)}.thumbnail-list{padding:18px;display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:16px;overflow:auto;flex:1;min-height:0}.thumbnail-list button{border:0;padding:0;background:transparent;color:var(--muted);font-size:10px}.thumbnail-list img{display:block;width:100%;margin-bottom:7px;box-shadow:0 3px 10px #0005;border:2px solid transparent;border-radius:2px}.thumbnail-list button[aria-current=true] img{border-color:var(--accent);box-shadow:0 0 0 2px #48b6f544}.thumbnail-list button:hover img{border-color:#8cd4ff}.sidebar-foot{padding:12px;flex:none;border-top:1px solid var(--line);font-size:9px;text-align:center;color:#778b9f}
dialog{border:1px solid #ffffff20;color:var(--text);background:#1c2733;border-radius:12px;padding:0;box-shadow:0 24px 90px #0009}dialog::backdrop{background:#060d17c9;backdrop-filter:blur(6px)}.zoom-dialog{width:calc(100vw - 40px);max-width:1400px;height:calc(100dvh - 40px);max-height:none;overflow:hidden}.zoom-dialog[open]{display:flex;flex-direction:column}.zoom-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;min-height:60px;flex:none;border-bottom:1px solid var(--line)}.zoom-header strong{font-size:14px}.zoom-header span{font-size:11px;color:var(--muted);margin-left:15px}.zoom-controls{display:flex;align-items:center;gap:7px}.zoom-controls select{font-size:12px}.zoom-scroll{flex:1;min-height:0;overflow:auto;background:#344251;padding:20px;overscroll-behavior:contain}.zoom-scroll div{width:100%;min-height:100%}.zoom-scroll img{display:block;width:100%;height:auto;max-width:none;box-shadow:0 4px 20px #0005;background:white}.zoom-tip{padding:10px;text-align:center;color:var(--muted);font-size:11px;flex:none}.help-dialog{width:520px;max-width:calc(100vw - 32px);padding:36px;max-height:90dvh;overflow:auto}.help-dialog h2{font-size:22px;font-weight:550;letter-spacing:.7px}.dialog-close{position:absolute;right:12px;top:12px}.help-dialog ul{padding:0;margin:25px 0;list-style:none}.help-dialog li{display:flex;gap:20px;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.9}.help-dialog li strong{min-width:60px;color:#cbe9fb}.help-dialog li span{color:#a6b7c8}.help-note{font-size:11px;line-height:1.8;color:var(--muted)}#share-dialog>p:not(.eyebrow){font-size:12px;line-height:1.8}#share-url{width:100%;padding:12px;background:#101b26;border:1px solid #ffffff25;border-radius:7px;color:#c0dbec;font-size:12px}.primary-button{background:#1599e7;color:white;border:0;border-radius:7px;padding:11px 20px;margin-top:15px;font-size:12px}.toast{position:fixed;bottom:125px;left:50%;transform:translateX(-50%);padding:12px 20px;border:1px solid #709aba55;background:#233647;color:#e6f7ff;border-radius:8px;z-index:1000;font-size:12px;box-shadow:0 8px 30px #0005}.noscript{position:fixed;inset:0;background:#162536;z-index:1000;display:grid;place-content:center;gap:20px}
.is-embedded .topbar{height:48px;padding:0 18px}.is-embedded .brand-word{font-size:15px}.is-embedded .brand-mark{width:28px;height:28px;font-size:23px}.is-embedded .library-label,.is-embedded .brand-word small{display:none}.is-embedded .book-heading{height:67px;padding:8px 24px}.is-embedded h1{font-size:17px}.is-embedded .eyebrow{display:none}.is-embedded .reader-footer{height:89px}.is-embedded .toolbar{height:53px}
@media(max-width:1000px){.topbar{padding:0 22px;gap:16px}.book-heading{padding-left:25px;padding-right:25px}.brand-word small{display:none}.reader-footer{padding:0 18px}.toolbar{gap:8px}.tool-button{padding:0 8px}.sidebar{position:absolute;inset:0 auto 0 0;box-shadow:18px 0 35px #0006}.tools-right,.tools-left{gap:1px}.pagination{gap:2px}}
@media(max-width:640px){.topbar{height:57px;padding:0 16px;gap:12px}.brand-mark{width:30px;height:30px;font-size:25px}.brand-word{font-size:17px}.header-divider,.library-label,.edition,.top-actions #help-button{display:none}.top-actions{gap:6px}.download-top{padding:8px 10px;font-size:11px;gap:6px}.download-top svg{width:17px;height:17px}#book-select{max-width:130px;font-size:11px}.top-actions:has(#book-select:not([hidden])) .download-top span{display:none}.book-heading{height:85px;padding:12px 18px}.eyebrow{font-size:8px;margin-bottom:5px}h1{font-size:19px;margin-bottom:5px}.subtitle{font-size:10px;letter-spacing:.25px}.stage{padding:12px 22px 33px}.edge-arrow{width:27px;height:45px;background:#11223655;border-color:transparent;border-radius:5px;top:52%}.edge-left{left:3px}.edge-right{right:3px}.edge-arrow svg{width:17px}.stage-caption{font-size:9px;gap:7px}.reader-footer{height:103px;padding:0 12px}.toolbar{height:68px;grid-template-columns:1fr auto 1fr;gap:0}.tool-button{padding:0 5px;min-width:35px;gap:4px;flex-direction:column;font-size:9px;height:45px;justify-content:center}.tool-button svg{width:19px;height:19px}.tool-button span{max-width:45px;white-space:nowrap}.tools-left,.tools-right{gap:4px}.pagination .icon-button{width:27px;height:36px}.pagination .boundary{display:none}#page-form{margin:0 2px;gap:4px;font-size:10px}#page-input{width:30px;height:28px;font-size:12px}.footer-meta{font-size:8px;letter-spacing:0}.footer-meta span:last-child{display:none}.zoom-dialog{width:100vw;height:100dvh;border:0;border-radius:0}.zoom-header{padding:8px 10px}.zoom-header span{display:block;margin:4px 0 0;font-size:10px}.zoom-scroll{padding:10px}.zoom-controls{gap:2px}.zoom-controls .icon-button{width:30px}.zoom-controls select{max-width:98px;padding:7px}.zoom-tip{font-size:9px}.help-dialog{padding:28px 24px}.help-dialog h2{font-size:20px}.sidebar{width:min(300px,88vw)}.is-embedded .brand-word{font-size:14px}.is-embedded .book-heading{padding-left:18px}}
@media(max-height:620px) and (min-width:641px){.topbar{height:44px}.book-heading{height:62px}.book-heading h1{font-size:17px}.book-heading .eyebrow{display:none}.reader-footer{height:80px}.toolbar{height:46px}.stage{padding-top:8px;padding-bottom:28px}.stage-caption{bottom:7px}.brand-mark{height:28px;width:28px;font-size:23px}}
@media(prefers-reduced-motion:reduce){.book-frame{transition:none}.spinner{animation-duration:2s}}
.back-to-shelf{font-size:12px;color:#bdd5e9;white-space:nowrap;padding:8px 11px;border:1px solid #ffffff20;border-radius:5px}.back-to-shelf:hover{color:white;background:#ffffff0b}@media(max-width:640px){.back-to-shelf{font-size:10px;padding:7px 8px}.topbar{gap:10px}.brand-word{font-size:15px}.top-actions:has(#book-select:not([hidden])){gap:4px}.topbar:has(#book-select:not([hidden])) .brand-word{display:none}}
