:root{--bg-primary:#f5f5f7;--bg-secondary:#fff;--bg-card:#fff;--bg-hover:#0000000a;--bg-active:#0000000f;--bg-input:#f2f2f7;--bg-overlay:#00000061;--blur-bg:#ffffffc7;--text-primary:#1d1d1f;--text-secondary:#6e6e73;--text-tertiary:#86868b;--text-inverse:#fff;--accent:#007aff;--accent-hover:#007aff1a;--accent-active:#007aff29;--accent-subtle:#007aff0f;--danger:#ff3b30;--warning:#ff9500;--border:#e5e5ea;--border-subtle:#00000014;--border-light:#78788014;--shadow-sm:0 1px 3px #00000014;--shadow-md:0 3px 12px #00000026;--shadow-lg:0 20px 60px #0000004d}[data-theme=sepia]{--bg-primary:#f4ecd8;--bg-secondary:#f4ecd8;--bg-card:#f4ecd8;--bg-hover:#5b46360f;--bg-active:#5b463614;--bg-input:#5b46361f;--bg-overlay:#5b463666;--blur-bg:#f4ecd8d1;--text-primary:#5b4636;--text-secondary:#5b4636b3;--text-tertiary:#5b463699;--text-inverse:#fff;--accent:#8b6914;--accent-hover:#8b69141f;--accent-active:#8b69142e;--accent-subtle:#8b691414;--danger:#c0392b;--warning:#b8860b;--border:#5b463626;--border-subtle:#5b46361f;--border-light:#5b463614;--shadow-sm:0 1px 3px #5b46361a;--shadow-md:0 3px 12px #5b463626;--shadow-lg:0 20px 60px #5b46364d}[data-theme=dark]{--bg-primary:#1c1c1e;--bg-secondary:#1c1c1e;--bg-card:#2c2c2e;--bg-hover:#ffffff0f;--bg-active:#ffffff1a;--bg-input:#ffffff14;--bg-overlay:#00000080;--blur-bg:#1c1c1ed1;--text-primary:#f5f5f7;--text-secondary:#8e8e93;--text-tertiary:#f5f5f7;--text-inverse:#000;--accent:#0a84ff;--accent-hover:#0a84ff26;--accent-active:#0a84ff40;--accent-subtle:#0a84ff1a;--danger:#ff453a;--warning:#ff9f0a;--border:#ffffff1a;--border-subtle:#ffffff14;--border-light:#ffffff0f;--shadow-sm:0 1px 3px #0000004d;--shadow-md:0 3px 12px #0006;--shadow-lg:0 20px 60px #00000080}[data-theme=custom]{--bg-primary:#f5f5f7;--bg-secondary:#fff;--bg-card:#fff;--bg-hover:#0000000a;--bg-active:#0000000f;--bg-input:#f2f2f7;--bg-overlay:#00000061;--blur-bg:#ffffffc7;--text-primary:#1d1d1f;--text-secondary:#6e6e73;--text-tertiary:#86868b;--text-inverse:#fff;--accent:#007aff;--accent-hover:#007aff1a;--accent-active:#007aff29;--accent-subtle:#007aff0f;--danger:#ff3b30;--warning:#ff9500;--border:#e5e5ea;--border-subtle:#00000014;--border-light:#78788014;--shadow-sm:0 1px 3px #00000014;--shadow-md:0 3px 12px #00000026;--shadow-lg:0 20px 60px #0000004d}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}html,body{overscroll-behavior:none;-webkit-overflow-scrolling:touch;width:100%;height:100%;margin:0;padding:0;overflow:hidden}body{background:var(--bg-primary);color:var(--text-primary);font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.6;transition:background-color .3s,color .3s}#root{flex-direction:column;width:100%;height:100dvh;display:flex;position:relative;overflow:hidden}button{cursor:pointer;color:inherit;background:0 0;border:none;padding:0;font-family:inherit}input{font-family:inherit}::-webkit-scrollbar{display:none}.about-overlay{background:var(--bg-overlay);z-index:1000;justify-content:center;align-items:center;animation:.2s fadeIn;display:flex;position:fixed;inset:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.about-modal{background:var(--bg-card);width:90%;max-width:340px;max-height:85vh;box-shadow:var(--shadow-lg);border-radius:16px;animation:.3s slideUp;overflow:hidden}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.about-header{border-bottom:1px solid var(--border);justify-content:center;align-items:center;padding:18px 20px;display:flex;position:relative}.about-header h2{color:var(--text-primary);margin:0;font-size:17px;font-weight:600}.about-close{width:28px;height:28px;color:var(--accent);border-radius:6px;justify-content:center;align-items:center;padding:0;transition:background .15s;display:flex;position:absolute;top:50%;left:16px;transform:translateY(-50%)}.about-close:active{background:var(--accent-hover)}.about-content{text-align:center;-webkit-overflow-scrolling:touch;max-height:calc(85vh - 60px);padding:24px 20px;overflow-y:auto}.about-icon{margin-bottom:16px}.about-title{color:var(--text-primary);margin:0 0 4px;font-size:28px;font-weight:700}.about-version{color:var(--text-tertiary);margin:0 0 20px;font-size:15px}.about-check-btn{background:var(--accent);color:var(--text-inverse);border-radius:20px;margin-bottom:24px;padding:8px 20px;font-size:14px;font-weight:600;transition:opacity .15s}.about-check-btn:active{opacity:.8}.about-divider{background:var(--border);height:1px;margin-bottom:24px}.about-copyright{color:var(--text-secondary);margin-bottom:16px;font-size:13px;line-height:1.5}.about-license{color:var(--text-secondary);text-align:left;font-size:12px;line-height:1.6}.about-license p{margin:0 0 12px}.about-license a{color:var(--accent);text-decoration:none}.about-license a:active{text-decoration:underline}.about-source{text-align:center;margin-top:8px}.alert-root{z-index:9999;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.alert-overlay{-webkit-backdrop-filter:blur(4px);background:#00000061;animation:.2s cubic-bezier(.22,1,.36,1) alertFadeIn;position:absolute;inset:0}.alert-overlay-sepia{background:#5b463659}.alert-overlay-dark{background:#0000008c}.alert-overlay-custom{background:#00000073}@keyframes alertFadeIn{0%{opacity:0}to{opacity:1}}@keyframes alertDialogIn{0%{opacity:0;transform:scale(.92)translateY(8px)}to{opacity:1;transform:scale(1)translateY(0)}}.alert-dialog{background:#fff;border-radius:16px;outline:none;width:min(320px,85vw);animation:.24s cubic-bezier(.22,1,.36,1) alertDialogIn;position:relative;overflow:hidden;box-shadow:0 20px 60px #00000040,0 4px 16px #0000001f}.alert-dialog-sepia{background:#f4ecd8;box-shadow:0 20px 60px #5b46364d,0 4px 16px #5b463626}.alert-dialog-dark{background:#2c2c2e;box-shadow:0 20px 60px #00000080,0 4px 16px #0000004d}.alert-dialog-custom{background:#fff;box-shadow:0 20px 60px #0000004d,0 4px 16px #00000026}.alert-header{text-align:center;padding:20px 20px 8px}.alert-header span{color:#1d1d1f;letter-spacing:.2px;font-size:17px;font-weight:600}.alert-dialog-sepia .alert-header span{color:#5b4636}.alert-dialog-dark .alert-header span{color:#f5f5f7}.alert-dialog-custom .alert-header span{color:#1d1d1f}.alert-body{text-align:center;padding:8px 20px 20px}.alert-body p{color:#6e6e73;word-break:break-word;margin:0;font-size:15px;line-height:1.5}.alert-dialog-sepia .alert-body p{color:#5b4636cc}.alert-dialog-dark .alert-body p{color:#8e8e93}.alert-dialog-custom .alert-body p{color:#6e6e73}.alert-footer{border-top:.5px solid #78788026;display:flex}.alert-dialog-sepia .alert-footer{border-top-color:#5b463626}.alert-dialog-dark .alert-footer{border-top-color:#ffffff1a}.alert-dialog-custom .alert-footer{border-top-color:#00000014}.alert-btn{color:#007aff;letter-spacing:.2px;background:0 0;flex:1;padding:16px;font-size:16px;font-weight:600;transition:background .14s,transform 80ms}.alert-btn:active{background:#007aff1a;transform:scale(.98)}.alert-btn-sepia{color:#8b6914}.alert-btn-sepia:active{background:#8b69141f}.alert-btn-dark{color:#0a84ff}.alert-btn-dark:active{background:#0a84ff26}.alert-btn-custom{color:#007aff}.alert-btn-custom:active{background:#007aff1a}.alert-btn-cancel{color:#6e6e73;letter-spacing:.2px;background:0 0;border-right:.5px solid #78788026;flex:1;padding:16px;font-size:16px;font-weight:500;transition:background .14s,transform 80ms}.alert-btn-cancel:active{background:#0000000d;transform:scale(.98)}.alert-dialog-sepia .alert-btn-cancel{color:#5b4636b3;border-right-color:#5b463626}.alert-dialog-sepia .alert-btn-cancel:active{background:#8b691414}.alert-dialog-dark .alert-btn-cancel{color:#8e8e93;border-right-color:#ffffff1a}.alert-dialog-dark .alert-btn-cancel:active{background:#ffffff0f}.alert-dialog-custom .alert-btn-cancel{color:#6e6e73;border-right-color:#00000014}.alert-dialog-custom .alert-btn-cancel:active{background:#0000000d}.alert-btn-danger{font-weight:600;color:#ff3b30!important}.alert-btn-danger:active{background:#ff3b301f!important}.alert-dialog-sepia .alert-btn-danger{color:#c0392b!important}.alert-dialog-sepia .alert-btn-danger:active{background:#c0392b1f!important}.alert-dialog-dark .alert-btn-danger{color:#ff453a!important}.alert-dialog-dark .alert-btn-danger:active{background:#ff453a26!important}.alert-footer-confirm{display:flex}.alert-footer-confirm .alert-btn{flex:1}.bookshelf{background:var(--bg-primary);flex-direction:column;width:100%;height:100%;display:flex}.shelf-header{padding:16px 20px;padding-top:calc(16px + env(safe-area-inset-top));background:var(--blur-bg);-webkit-backdrop-filter:saturate(180%)blur(24px);border-bottom:.5px solid var(--border);z-index:10;flex-shrink:0;justify-content:space-between;align-items:center;display:flex;position:sticky;top:0}.shelf-header h1{color:var(--text-primary);margin:0;font-size:20px;font-weight:600}.shelf-header .icon-btn{width:40px;height:40px;color:var(--text-primary);border-radius:8px;justify-content:center;align-items:center;transition:background .15s;display:flex}.shelf-header .icon-btn:active{background:var(--accent-hover)}.shelf-content{-webkit-overflow-scrolling:touch;padding:16px;padding-bottom:calc(16px + env(safe-area-inset-bottom));flex:1;overflow-y:auto}.shelf-loading{color:var(--text-secondary);flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:80px 20px;display:flex}.shelf-loading .spinner{border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:36px;height:36px;animation:.8s linear infinite spin}.shelf-loading p{margin:0;font-size:14px}@keyframes spin{to{transform:rotate(360deg)}}.empty-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:80px 20px;display:flex}.empty-icon{margin-bottom:16px;font-size:64px}.empty-state p{color:var(--text-secondary);margin:4px 0}.empty-hint{font-size:14px;margin-top:8px!important}.empty-import-btn{background:var(--accent);color:var(--text-inverse);border-radius:24px;align-items:center;gap:8px;margin-top:28px;padding:12px 24px;font-size:15px;font-weight:600;transition:opacity .15s,transform .15s;display:inline-flex}.empty-import-btn:active{opacity:.85;transform:scale(.97)}@media (width>=768px){.empty-import-btn:hover{opacity:.9}}.book-grid{grid-template-columns:repeat(3,1fr);gap:20px 16px;display:grid}@media (width>=768px){.book-grid{grid-template-columns:repeat(4,1fr);gap:24px 20px}}@media (width>=1024px){.shelf-content{padding:24px 32px;padding-bottom:calc(24px + env(safe-area-inset-bottom))}.book-grid{grid-template-columns:repeat(6,1fr);gap:28px 24px}}@media (width>=1440px){.shelf-content{padding:32px 48px;padding-bottom:calc(32px + env(safe-area-inset-bottom))}.book-grid{grid-template-columns:repeat(8,1fr);gap:32px 28px}}.book-card{cursor:pointer;flex-direction:column;gap:8px;display:flex;position:relative}.book-card:active .book-card-cover{transform:scale(.96)}.book-card-cover{aspect-ratio:2/3;box-shadow:var(--shadow-md);background:var(--bg-card);border-radius:8px;justify-content:center;align-items:center;transition:transform .15s;display:flex;overflow:hidden}.book-card-cover-img{object-fit:cover;width:100%;height:100%;display:block}.book-card-text{color:#fff;text-shadow:0 1px 3px #0000004d;letter-spacing:1px;text-align:center;word-break:break-all;padding:0 8px;font-size:22px;font-weight:600}@media (width>=768px){.book-card:hover .book-card-cover{transform:scale(1.02)}}.book-card-add .book-card-cover{background:var(--bg-card);border:2px dashed var(--border);box-shadow:none}.book-card-add-icon{color:var(--text-tertiary);font-size:36px;font-weight:300}.book-card-info{flex-direction:column;gap:4px;display:flex}.book-card-title{color:var(--text-primary);text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;font-weight:500;line-height:1.3;display:-webkit-box;overflow:hidden}.book-card-progress{align-items:center;gap:6px;display:flex}.book-card-progress-track{background:var(--border);border-radius:2px;flex:1;height:3px;overflow:hidden}.book-card-progress-bar{background:var(--accent);border-radius:2px;height:100%;transition:width .3s}.book-card-progress span{color:var(--text-tertiary);text-align:right;min-width:28px;font-size:11px}.book-card-delete{width:22px;height:22px;color:var(--text-tertiary);background:var(--bg-card);border-radius:50%;justify-content:center;align-items:center;font-size:12px;font-weight:600;line-height:1;transition:background .15s,color .15s;display:flex;position:absolute;top:-4px;right:-4px;box-shadow:0 1px 4px #0000001f}.book-card-delete:active{background:var(--danger);color:#fff}@media (width>=768px){.book-card-delete:hover{background:var(--danger);color:#fff}}.reader{color:#1d1d1f;background:#fff;width:100%;height:100%;position:relative;overflow:hidden}.reader-theme-sepia{color:#5b4636;background:#f4ecd8}.reader-theme-dark{color:#f5f5f7;background:#1c1c1e}.reader-theme-custom{background-color:rgba(var(--custom-bg-rgb,244, 236, 216), .9);color:var(--custom-text-color,#1d1d1f)}.reader-viewer-wrap{z-index:1;box-sizing:border-box;position:absolute;inset:0}.reader-viewer{width:100%;height:100%;position:relative;overflow:hidden}.reader-viewer iframe{border:0;display:block;background:0 0!important}.reader-viewer>div{transition:transform .32s cubic-bezier(.22,1,.36,1)!important}.page-turn-overlay{z-index:5;pointer-events:none;background:#ffffff14;animation:.35s ease-out forwards pageTurnFade;position:absolute;inset:0}.reader-theme-sepia .page-turn-overlay{background:#5b46360f}.reader-theme-dark .page-turn-overlay{background:#ffffff0d}@keyframes pageTurnFade{0%{opacity:0}15%{opacity:1}85%{opacity:1}to{opacity:0}}.reader-viewer.transitioning iframe{animation:.35s cubic-bezier(.22,1,.36,1) pageTurnScale}@keyframes pageTurnScale{0%{opacity:.7;filter:blur(1px)}30%{opacity:.9;filter:blur(.5px)}to{opacity:1;filter:blur()}}.reader-tap-overlay{z-index:10;cursor:pointer;background:0 0;position:absolute;inset:0}.reader-flash{z-index:9;opacity:0;pointer-events:none;width:50%;transition:opacity .22s ease-out;position:absolute;top:0;bottom:0}.reader-flash-left{left:0}.reader-flash-right{left:auto;right:0}.reader-flash.active{opacity:1}.reader-progress-line{z-index:60;pointer-events:none;background:#7878801f;height:2px;position:absolute;top:0;left:0;right:0;overflow:hidden}.reader-theme-sepia .reader-progress-line{background:#5b46361f}.reader-theme-dark .reader-progress-line{background:#ffffff14}.reader-progress-line-inner{background:#007aff;height:100%;transition:width .28s cubic-bezier(.22,1,.36,1)}.reader-theme-sepia .reader-progress-line-inner{background:#8b6914}.reader-theme-dark .reader-progress-line-inner{background:#0a84ff}.reader-loading{background:#fff;flex-direction:column;justify-content:center;align-items:center;gap:16px;width:100%;height:100%;display:flex}.reader-loading-overlay{z-index:999;background:#fff;position:absolute;inset:0}.reader-theme-sepia .reader-loading-overlay{background:#f4ecd8}.reader-theme-dark .reader-loading-overlay{background:#1c1c1e}.spinner{border:3px solid #78788033;border-top-color:#007aff;border-radius:50%;width:32px;height:32px;animation:.8s linear infinite spin}.reader-loading p{color:#86868b;margin:0;font-size:14px}.reader-header-hint,.reader-footer-hint{z-index:40;pointer-events:none;opacity:1;justify-content:center;align-items:center;transition:opacity .22s,transform .22s;display:flex;position:absolute;left:0;right:0}.reader-header-hint{top:calc(0px + env(safe-area-inset-top))}.reader-footer-hint{bottom:calc(0px + env(safe-area-inset-bottom))}.reader-header-hint.hidden{opacity:0;transform:translateY(-8px)}.reader-footer-hint.hidden{opacity:0;transform:translateY(8px)}.header-hint-text{color:#0006;white-space:nowrap;text-overflow:ellipsis;letter-spacing:.3px;max-width:70%;font-size:12px;font-weight:500;overflow:hidden}.footer-hint-text{color:#00000059;font-variant-numeric:tabular-nums;letter-spacing:.5px;font-size:11px;font-weight:500}.reader-theme-sepia .header-hint-text{color:#5b463673}.reader-theme-dark .header-hint-text{color:#fff6}.reader-theme-sepia .footer-hint-text{color:#5b463666}.reader-theme-dark .footer-hint-text{color:#ffffff59}.reader-topbar,.reader-bottombar{z-index:50;pointer-events:none;opacity:0;transition:transform .3s cubic-bezier(.22,1,.36,1),opacity .25s;position:absolute;left:0;right:0}.reader-topbar.show,.reader-bottombar.show{opacity:1;pointer-events:auto}.reader-topbar{top:0;transform:translateY(-100%)}.reader-topbar.show{transform:translateY(0)}.topbar-bg{-webkit-backdrop-filter:saturate(180%)blur(24px);background:#ffffffc7;border-bottom:.5px solid #00000014;position:absolute;inset:0}.reader-theme-sepia .topbar-bg{background:#f4ecd8d1;border-bottom-color:#5b46361f}.reader-theme-dark .topbar-bg{background:#1c1c1ed1;border-bottom-color:#ffffff14}.topbar-content{padding:8px;padding-top:calc(8px + env(safe-area-inset-top));align-items:center;gap:4px;min-height:52px;display:flex;position:relative}.icon-btn{color:#1d1d1f;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:42px;height:42px;transition:background .14s,transform 80ms;display:flex}.icon-btn:active{background:#0000000f;transform:scale(.96)}.reader-theme-sepia .icon-btn{color:#5b4636}.reader-theme-sepia .icon-btn:active{background:#5b463614}.reader-theme-dark .icon-btn{color:#f5f5f7}.reader-theme-dark .icon-btn:active{background:#ffffff1a}.topbar-title{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;min-width:0;padding:0 4px;display:flex}.chapter-title{color:#1d1d1f;white-space:nowrap;text-overflow:ellipsis;letter-spacing:.2px;max-width:100%;font-size:15px;font-weight:600;line-height:1.3;overflow:hidden}.reader-theme-sepia .chapter-title{color:#5b4636}.reader-theme-dark .chapter-title{color:#f5f5f7}.reader-bottombar{bottom:0;transform:translateY(100%)}.reader-bottombar.show{transform:translateY(0)}.bottombar-bg{-webkit-backdrop-filter:saturate(180%)blur(24px);background:#ffffffc7;border-top:.5px solid #00000014;position:absolute;inset:0}.reader-theme-sepia .bottombar-bg{background:#f4ecd8d1;border-top-color:#5b46361f}.reader-theme-dark .bottombar-bg{background:#1c1c1ed1;border-top-color:#ffffff14}.bottombar-content{padding:10px 14px 14px;padding-bottom:calc(14px + env(safe-area-inset-bottom));flex-direction:column;gap:8px;display:flex;position:relative}.bottombar-progress{justify-content:center;align-items:center;display:flex}.page-indicator{color:#86868b;font-variant-numeric:tabular-nums;letter-spacing:.3px;font-size:13px;font-weight:500}.reader-theme-sepia .page-indicator{color:#5b4636a6}.reader-theme-dark .page-indicator{color:#8e8e93}.page-indicator-loading{opacity:.7;font-size:12px}.bottom-actions{justify-content:space-between;align-items:center;gap:12px;display:flex}.bookmark-btn,.settings-btn{color:#007aff;border-radius:12px;justify-content:center;align-items:center;width:48px;height:48px;transition:background .14s,transform 80ms,color .14s;display:flex}.bookmark-btn:active,.settings-btn:active{background:#007aff29;transform:scale(.98)}.bookmark-btn.active{color:#ff9500}.reader-theme-sepia .bookmark-btn.active{color:#b8860b}.reader-theme-dark .bookmark-btn.active{color:#ffb347}.reader-theme-sepia .bookmark-btn,.reader-theme-sepia .settings-btn{color:#8b6914}.reader-theme-sepia .bookmark-btn:active,.reader-theme-sepia .settings-btn:active{background:#8b691426}.reader-theme-dark .bookmark-btn,.reader-theme-dark .settings-btn{color:#0a84ff}.reader-theme-dark .bookmark-btn:active,.reader-theme-dark .settings-btn:active{background:#0a84ff26}.topbar-right{align-items:center;gap:2px;display:flex}.bookmark-panel{z-index:180;background:#fff;flex-direction:column;width:300px;max-width:85vw;transition:transform .3s cubic-bezier(.22,1,.36,1);display:flex;position:absolute;top:0;bottom:0;left:0;transform:translate(-100%);box-shadow:2px 0 20px #0000001a}.bookmark-panel.show{transform:translate(0)}.reader-theme-sepia .bookmark-panel{background:#f4ecd8}.reader-theme-dark .bookmark-panel{background:#1c1c1e}.bookmark-header{padding:16px;padding-top:calc(16px + env(safe-area-inset-top));border-bottom:.5px solid #00000014;justify-content:space-between;align-items:center;display:flex}.reader-theme-sepia .bookmark-header{border-bottom-color:#5b463626}.reader-theme-dark .bookmark-header{border-bottom-color:#ffffff1a}.bookmark-header span{color:#1d1d1f;font-size:17px;font-weight:600}.reader-theme-sepia .bookmark-header span{color:#5b4636}.reader-theme-dark .bookmark-header span{color:#f5f5f7}.bookmark-list{-webkit-overflow-scrolling:touch;flex:1;padding:8px;overflow-y:auto}.bookmark-item{align-items:stretch;width:100%;margin-bottom:4px;display:flex}.bookmark-info{text-align:left;background:#007aff0f;border-radius:10px;flex:1;padding:12px 14px;transition:background .14s}.bookmark-info:active{background:#007aff1f}.reader-theme-sepia .bookmark-info{background:#5b463614}.reader-theme-sepia .bookmark-info:active{background:#5b463624}.reader-theme-dark .bookmark-info{background:#0a84ff1a}.reader-theme-dark .bookmark-info:active{background:#0a84ff2e}.bookmark-chapter{color:#1d1d1f;white-space:nowrap;text-overflow:ellipsis;margin-bottom:4px;font-size:14px;font-weight:600;overflow:hidden}.reader-theme-sepia .bookmark-chapter{color:#5b4636}.reader-theme-dark .bookmark-chapter{color:#f5f5f7}.bookmark-meta{color:#86868b;justify-content:space-between;font-size:11px;display:flex}.reader-theme-sepia .bookmark-meta{color:#5b463699}.reader-theme-dark .bookmark-meta{color:#8e8e93}.bookmark-delete{color:#8e8e93;border-radius:8px;justify-content:center;align-items:center;width:36px;margin-left:4px;transition:background .14s,color .14s;display:flex}.bookmark-delete:active{color:#ff3b30;background:#ff3b3026}.reader-theme-dark .bookmark-delete:active{color:#ff453a}.bookmark-empty{text-align:center;color:#86868b;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:40px 20px;display:flex}.bookmark-empty p{color:#1d1d1f;margin:0;font-size:15px;font-weight:500}.reader-theme-sepia .bookmark-empty p{color:#5b4636}.reader-theme-dark .bookmark-empty p{color:#f5f5f7}.bookmark-empty span{font-size:13px}.reader-page-indicator{padding:6px 14px;padding-bottom:calc(6px + env(safe-area-inset-bottom));z-index:5;background:linear-gradient(#fff0 0%,#ffffff8c 60%,#fffc 100%);justify-content:space-between;align-items:center;gap:12px;transition:opacity .2s;display:flex;position:absolute;bottom:0;left:0;right:0}.reader-theme-sepia .reader-page-indicator{background:linear-gradient(#f4ecd800 0%,#f4ecd88c 60%,#f4ecd8d9 100%)}.reader-theme-dark .reader-page-indicator{background:linear-gradient(#1c1c1e00 0%,#1c1c1e8c 60%,#1c1c1ed9 100%)}.reader-topbar.show~.reader-page-indicator,.reader-bottombar.show~.reader-page-indicator{opacity:.4}.page-slider{appearance:none;cursor:pointer;pointer-events:auto;touch-action:none;background:0 0;flex:auto;min-width:0;height:20px}.page-slider:disabled{opacity:.35;cursor:not-allowed}.page-slider::-webkit-slider-runnable-track{background:#78788038;border-radius:999px;height:3px}.reader-theme-sepia .page-slider::-webkit-slider-runnable-track{background:#5b463633}.reader-theme-dark .page-slider::-webkit-slider-runnable-track{background:#ffffff29}.page-slider::-moz-range-track{background:#78788038;border:0;border-radius:999px;height:3px}.reader-theme-sepia .page-slider::-moz-range-track{background:#5b463633}.reader-theme-dark .page-slider::-moz-range-track{background:#ffffff29}.page-slider::-moz-range-progress{background:#007aff;border:0;border-radius:999px;height:3px}.reader-theme-sepia .page-slider::-moz-range-progress{background:#8b6914}.reader-theme-dark .page-slider::-moz-range-progress{background:#0a84ff}.page-slider::-webkit-slider-thumb{appearance:none;background:#007aff;border:1.5px solid #fff;border-radius:50%;width:14px;height:14px;margin-top:-5.5px;transition:transform .12s,box-shadow .12s;box-shadow:0 1px 2px #0003,0 0 0 3px #007aff2e}.page-slider::-webkit-slider-thumb:active{transform:scale(1.18);box-shadow:0 1px 2px #00000040,0 0 0 5px #007aff2e}.reader-theme-sepia .page-slider::-webkit-slider-thumb{background:#8b6914;border-color:#f5efd8;box-shadow:0 1px 2px #5b46364d,0 0 0 3px #8b691438}.reader-theme-sepia .page-slider::-webkit-slider-thumb:active{box-shadow:0 1px 2px #5b463659,0 0 0 5px #8b691438}.reader-theme-dark .page-slider::-webkit-slider-thumb{background:#0a84ff;border-color:#1c1c1e;box-shadow:0 1px 2px #00000073,0 0 0 3px #0a84ff40}.reader-theme-dark .page-slider::-webkit-slider-thumb:active{box-shadow:0 1px 2px #0000008c,0 0 0 5px #0a84ff40}.page-slider::-moz-range-thumb{background:#007aff;border:1.5px solid #fff;border-radius:50%;width:14px;height:14px;transition:transform .12s,box-shadow .12s;box-shadow:0 1px 2px #0003,0 0 0 3px #007aff2e}.page-slider::-moz-range-thumb:active{transform:scale(1.18);box-shadow:0 1px 2px #00000040,0 0 0 5px #007aff2e}.reader-theme-sepia .page-slider::-moz-range-thumb{background:#8b6914;border-color:#f5efd8;box-shadow:0 1px 2px #5b46364d,0 0 0 3px #8b691438}.reader-theme-dark .page-slider::-moz-range-thumb{background:#0a84ff;border-color:#1c1c1e;box-shadow:0 1px 2px #00000073,0 0 0 3px #0a84ff40}.page-count{text-align:right;color:#3c3c4399;letter-spacing:.2px;font-variant-numeric:tabular-nums;pointer-events:none;flex:none;min-width:68px;font-size:11px;font-weight:500;line-height:1.4}.reader-theme-sepia .page-count{color:#5b4636b8}.reader-theme-dark .page-count{color:#c8c8cde0}.toc-panel,.settings-panel{z-index:200;background:#fff;border-left:.5px solid #0000000f;flex-direction:column;width:min(320px,85%);max-width:85%;transition:transform .32s cubic-bezier(.22,1,.36,1);display:flex;position:absolute;top:0;bottom:0;right:0;transform:translate(100%);box-shadow:-8px 0 32px #00000024}.toc-panel.show,.settings-panel.show{transform:translate(0)}.reader-theme-sepia .toc-panel,.reader-theme-sepia .settings-panel{background:#f4ecd8;border-left-color:#5b463626;box-shadow:-8px 0 32px #5b46361f}.reader-theme-dark .toc-panel,.reader-theme-dark .settings-panel{background:#1c1c1e;border-left-color:#ffffff14;box-shadow:-8px 0 32px #0006}.toc-header,.settings-header{padding:16px 14px 14px;padding-top:calc(16px + env(safe-area-inset-top));color:#1d1d1f;letter-spacing:.2px;border-bottom:.5px solid #e5e5ea;flex-shrink:0;justify-content:space-between;align-items:center;font-size:16px;font-weight:600;display:flex}.reader-theme-sepia .toc-header,.reader-theme-sepia .settings-header{color:#5b4636;border-bottom-color:#5b463626}.reader-theme-dark .toc-header,.reader-theme-dark .settings-header{color:#f5f5f7;border-bottom-color:#ffffff1a}.toc-list{-webkit-overflow-scrolling:touch;padding:6px 0 calc(16px + env(safe-area-inset-bottom));flex:1;overflow-y:auto}.toc-item{text-align:left;color:#1d1d1f;white-space:nowrap;text-overflow:ellipsis;border-bottom:.5px solid #78788014;width:100%;padding:13px 18px;font-size:15px;line-height:1.4;transition:background .14s;display:block;overflow:hidden}.reader-theme-sepia .toc-item{color:#5b4636;border-bottom-color:#5b463614}.reader-theme-dark .toc-item{color:#f5f5f7;border-bottom-color:#ffffff14}.toc-item:active{background:#f2f2f7}.reader-theme-sepia .toc-item:active{background:#5b463614}.reader-theme-dark .toc-item:active{background:#ffffff14}.toc-item.active{color:#007aff;background:#007aff0f;font-weight:500}.reader-theme-sepia .toc-item.active{color:#8b6914;background:#8b69141f}.reader-theme-dark .toc-item.active{color:#0a84ff;background:#0a84ff24}.toc-empty{text-align:center;color:#86868b;padding:60px 20px;font-size:14px}.reader-theme-sepia .toc-empty{color:#5b463699}.reader-theme-dark .toc-empty{color:#8e8e93}.settings-list{-webkit-overflow-scrolling:touch;padding:4px 18px calc(18px + env(safe-area-inset-bottom));flex:1;overflow-y:auto}.setting-row{border-bottom:.5px solid #7878801a;flex-direction:column;gap:10px;padding:16px 0 18px;display:flex}.setting-row:last-child{border-bottom:none}.reader-theme-sepia .setting-row{border-bottom-color:#5b46361f}.reader-theme-dark .setting-row{border-bottom-color:#ffffff1a}.setting-row-header{justify-content:space-between;align-items:center;display:flex}.setting-label{color:#1d1d1f;letter-spacing:.2px;font-size:14px;font-weight:500}.reader-theme-sepia .setting-label{color:#5b4636}.reader-theme-dark .setting-label{color:#f5f5f7}.setting-value{color:#86868b;font-variant-numeric:tabular-nums;font-size:13px;font-weight:500}.reader-theme-sepia .setting-value{color:#5b4636b3}.reader-theme-dark .setting-value{color:#8e8e93}.theme-options{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.theme-btn{letter-spacing:.2px;border:1.5px solid #0000;border-radius:11px;padding:12px 10px;font-size:13px;font-weight:600;transition:border-color .14s,transform 80ms}.theme-btn.active{border-color:#007aff;box-shadow:0 0 0 1px #007aff0f}.theme-btn:active{transform:scale(.97)}.font-dropdown{width:100%;position:relative}.font-dropdown-trigger{color:#1d1d1f;background:#f2f2f7;border-radius:10px;justify-content:space-between;align-items:center;width:100%;padding:12px 14px;font-size:14px;font-weight:500;transition:background .14s,transform 80ms;display:flex}.reader-theme-sepia .font-dropdown-trigger{color:#5b4636;background:#5b46361f}.reader-theme-dark .font-dropdown-trigger{color:#f5f5f7;background:#ffffff14}.font-dropdown-trigger:active{opacity:.9;transform:scale(.98)}.font-dropdown-label{text-align:left;flex:1}.font-dropdown-arrow{color:#8e8e93;transition:transform .2s}.font-dropdown-arrow.open{transform:rotate(180deg)}.reader-theme-dark .font-dropdown-arrow{color:#8e8e93}.font-dropdown-menu{z-index:10;background:#fff;border-radius:12px;padding:6px;animation:.18s cubic-bezier(.22,1,.36,1) dropdownFadeIn;position:absolute;top:calc(100% + 6px);left:0;right:0;overflow:hidden;box-shadow:0 8px 32px #0000001f,0 2px 8px #0000000f}.reader-theme-sepia .font-dropdown-menu{background:#f4ecd8;box-shadow:0 8px 32px #5b463626,0 2px 8px #5b463614}.reader-theme-dark .font-dropdown-menu{background:#2c2c2e;box-shadow:0 8px 32px #0006,0 2px 8px #0003}@keyframes dropdownFadeIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.font-dropdown-option{color:#1d1d1f;background:0 0;border-radius:8px;justify-content:space-between;align-items:center;width:100%;padding:12px 14px;font-size:14px;font-weight:500;transition:background .12s;display:flex}.reader-theme-sepia .font-dropdown-option{color:#5b4636}.reader-theme-dark .font-dropdown-option{color:#f5f5f7}.font-dropdown-option:hover{background:#007aff14}.reader-theme-sepia .font-dropdown-option:hover{background:#8b69141f}.reader-theme-dark .font-dropdown-option:hover{background:#ffffff14}.font-dropdown-option.active{color:#007aff;background:#007aff0f}.reader-theme-sepia .font-dropdown-option.active{color:#8b6914;background:#8b69141f}.reader-theme-dark .font-dropdown-option.active{color:#0a84ff;background:#0a84ff26}.settings-list input[type=range]{accent-color:#007aff;width:100%;height:28px;margin:0}.reader-theme-sepia .settings-list input[type=range]{accent-color:#8b6914}.reader-theme-dark .settings-list input[type=range]{accent-color:#0a84ff}.panel-overlay{z-index:150;-webkit-backdrop-filter:blur(4px);background:#00000061;animation:.26s cubic-bezier(.22,1,.36,1) fadeIn;position:absolute;inset:0}.reader-theme-sepia .panel-overlay{background:#5b463659}.reader-theme-dark .panel-overlay{background:#0000008c}@media (width>=1024px){.reader-viewer-wrap,.reader-theme-sepia .reader-viewer-wrap,.reader-theme-dark .reader-viewer-wrap{padding:20px 80px}.reader-page-indicator{padding:8px 100px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}.toc-panel,.settings-panel{width:320px}.reader-topbar.show,.reader-bottombar.show{padding-left:60px;padding-right:60px}.reader-tap-overlay{grid-template-columns:25% 50% 25%;display:grid}}@media (width>=1440px){.reader-viewer-wrap,.reader-theme-sepia .reader-viewer-wrap,.reader-theme-dark .reader-viewer-wrap,.reader-theme-custom .reader-viewer-wrap{padding:30px 120px}.reader-page-indicator{padding:10px 140px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}.reader-topbar.show,.reader-bottombar.show{padding-left:100px;padding-right:100px}}.reader-theme-custom .topbar-bg{background:rgba(var(--custom-bg-rgb,244, 236, 216), .82);border-bottom-color:#00000014}.reader-theme-custom .bottombar-bg{background:rgba(var(--custom-bg-rgb,244, 236, 216), .82);border-top-color:#00000014}.reader-theme-custom .bookmark-panel,.reader-theme-custom .toc-panel,.reader-theme-custom .settings-panel{background:rgba(var(--custom-bg-rgb,244, 236, 216), .95)}.reader-theme-custom .bookmark-header,.reader-theme-custom .toc-header,.reader-theme-custom .settings-header{color:var(--custom-text-color,#1d1d1f);border-bottom-color:#0000001a}.reader-theme-custom .bookmark-header span,.reader-theme-custom .toc-header span,.reader-theme-custom .settings-header span{color:var(--custom-text-color,#1d1d1f)}.reader-theme-custom .bookmark-info{background:#0000000f}.reader-theme-custom .bookmark-info:active{background:#0000001f}.reader-theme-custom .bookmark-chapter,.reader-theme-custom .toc-item,.reader-theme-custom .setting-label{color:var(--custom-text-color,#1d1d1f)}.reader-theme-custom .bookmark-meta,.reader-theme-custom .toc-empty{color:#00000080}.reader-theme-custom .toc-item:active{background:#0000000f}.reader-theme-custom .icon-btn{color:var(--custom-text-color,#1d1d1f)}.reader-theme-custom .icon-btn:active{background:#0000000f}.reader-theme-custom .chapter-title{color:var(--custom-text-color,#1d1d1f)}.reader-theme-custom .header-hint-text{color:#0006}.reader-theme-custom .footer-hint-text{color:#00000059}.reader-theme-custom .page-indicator{color:#00000080}.reader-theme-custom .panel-overlay{background:#00000073}.reader-theme-custom .page-turn-overlay{background:#ffffff14}.reader-theme-custom .reader-loading-overlay{background:rgba(var(--custom-bg-rgb,244, 236, 216), .4)}.reader-theme-custom .theme-btn.active{border-color:#007aff}.reader-theme-custom .font-dropdown-trigger,.reader-theme-custom .font-btn{color:var(--custom-text-color,#1d1d1f);background:#0000000f}.reader-theme-custom .font-dropdown-menu{background:rgba(var(--custom-bg-rgb,244, 236, 216), .98)}.reader-theme-custom .font-dropdown-option{color:var(--custom-text-color,#1d1d1f)}.reader-theme-custom .setting-row{border-bottom-color:#00000014}.reader-theme-custom .setting-value{color:#00000080}.color-picker-wrapper{border-top:.5px solid #78788026;margin-top:12px;padding-top:12px}.color-picker-label{color:#86868b;margin-bottom:10px;font-size:13px;font-weight:500;display:block}.reader-theme-sepia .color-picker-label{color:#5b4636b3}.reader-theme-dark .color-picker-label{color:#8e8e93}.color-picker-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.color-preset-list{flex-wrap:wrap;flex:1;gap:8px;display:flex}.color-preset-btn{border:2px solid #0000;border-radius:50%;width:28px;height:28px;transition:border-color .14s,transform 80ms;box-shadow:0 1px 3px #00000026}.color-preset-btn:active{transform:scale(.92)}.color-preset-btn.active{border-color:#007aff;box-shadow:0 0 0 2px #007aff33,0 1px 3px #00000026}.reader-theme-sepia .color-preset-btn.active{border-color:#8b6914;box-shadow:0 0 0 2px #8b691440,0 1px 3px #00000026}.reader-theme-dark .color-preset-btn.active{border-color:#0a84ff;box-shadow:0 0 0 2px #0a84ff4d,0 1px 3px #0000004d}.color-picker-custom{flex-direction:column;flex-shrink:0;align-items:center;gap:4px;display:flex}.color-input-label{color:#86868b;font-size:11px;font-weight:500}.reader-theme-sepia .color-input-label{color:#5b4636b3}.reader-theme-dark .color-input-label{color:#8e8e93}.color-input{cursor:pointer;background:0 0;border:2px solid #e5e5ea;border-radius:8px;width:28px;height:28px;padding:2px;transition:border-color .14s}.reader-theme-sepia .color-input{border-color:#5b46364d}.reader-theme-dark .color-input{border-color:#ffffff26}.color-input:hover{border-color:#007aff}.reader-theme-sepia .color-input:hover{border-color:#8b6914}.reader-theme-dark .color-input:hover{border-color:#0a84ff}.color-input::-webkit-color-swatch-wrapper{padding:0}.color-input::-webkit-color-swatch{border:none;border-radius:4px}@media (width>=1024px){.reader-theme-custom .reader-viewer-wrap{padding:20px 80px}}.app-container{width:100%;height:100%;position:relative;overflow:hidden}.app-shelf-layer{z-index:1;position:absolute;inset:0}.app-reader-overlay{z-index:10;will-change:transform, opacity;transition:transform .32s cubic-bezier(.32,.72,0,1),opacity .28s cubic-bezier(.4,0,.2,1);position:absolute;inset:0}.app-reader-overlay.app-reader-hidden{opacity:0;pointer-events:none;transform:translate(100%)}.app-reader-overlay.app-reader-visible{opacity:1;pointer-events:auto;transform:translate(0)}@keyframes readerEnter{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@keyframes readerExit{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(100%)}}
