:root{--bg:#f4f7fb;--panel:#fff;--ink:#0a1f3a;--muted:#667b95;--line:#dbe5f0;--blue:#1479f8;--cyan:#32c7f4;--soft:#edf5ff;--shadow:0 20px 70px rgba(8,30,58,.12)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink)}body{transition:background .35s,color .35s}body[data-theme=dark]{--bg:#071326;--panel:#0d203a;--ink:#edf5ff;--muted:#a4b6cb;--line:#233c59;--soft:#102a49;--shadow:0 20px 70px rgba(0,0,0,.32)}a{color:inherit;text-decoration:none}button,input{font:inherit}.topbar{height:76px;padding:0 clamp(16px,3vw,44px);display:flex;align-items:center;justify-content:space-between;gap:18px;background:var(--panel);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:10px;min-width:180px}.brandlogo{display:block;width:42px;height:42px;object-fit:contain;border-radius:9px;background:#fff}.brandmark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#0a2a50,#1479f8);color:white;font-weight:900;font-size:19px;box-shadow:0 6px 18px #1479f833}.brandmark span{color:#42d1ff;display:inline}.brandtext{display:flex;flex-direction:column;line-height:1.1}.brandtext strong{font-size:18px;letter-spacing:-.04em}.brandtext small{font-size:8px;letter-spacing:.17em;color:var(--muted);margin-top:5px}.toolbar{display:flex;align-items:center;gap:10px}.edition{font-size:10px;letter-spacing:.14em;color:var(--muted);margin-right:12px}.edition b{color:var(--blue)}.toolbtn,.iconbtn,.navbtn{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:11px;padding:10px 13px;font-size:12px;font-weight:650;cursor:pointer;transition:transform .18s,border-color .18s,background .18s}.toolbtn:hover,.iconbtn:hover,.navbtn:hover{transform:translateY(-1px);border-color:var(--blue)}.toolbtn.primary{border-color:var(--blue);background:var(--blue);color:#fff;box-shadow:0 7px 18px #1479f82c}.app-shell{display:grid;grid-template-columns:minmax(220px,260px) minmax(0,1fr);gap:0;min-height:calc(100vh - 130px)}.sidebar{background:var(--panel);border-right:1px solid var(--line);padding:28px 18px 14px;display:flex;flex-direction:column;min-height:calc(100vh - 130px)}.sidehead{display:flex;justify-content:space-between;gap:10px;align-items:end;margin:0 3px 18px}.eyebrow{display:block;font-size:9px;font-weight:800;letter-spacing:.18em;color:var(--blue);text-transform:uppercase}.sidehead h2{font-size:17px;letter-spacing:-.04em;margin:8px 0 0}.count{font-size:10px;color:var(--muted);white-space:nowrap}.search{display:flex;align-items:center;gap:9px;height:40px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);margin-bottom:15px;color:var(--muted)}.search span{font-size:20px}.search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:11px}.thumbnav{display:flex;flex-direction:column;gap:6px;overflow:auto;max-height:calc(100vh - 300px);padding-right:3px}.thumb{display:grid;grid-template-columns:65px minmax(0,1fr);gap:10px;align-items:center;width:100%;text-align:left;background:transparent;border:1px solid transparent;border-radius:11px;padding:7px;cursor:pointer;color:var(--ink);transition:background .2s,border-color .2s,transform .2s}.thumb:hover{background:var(--soft);transform:translateX(2px)}.thumb.active{background:var(--soft);border-color:#8dc2ff}.thumb img{display:block;width:65px;aspect-ratio:1.414/1;object-fit:cover;object-position:top center;background:#e8edf6;border-radius:5px;box-shadow:0 2px 8px #061a3320}.thumbmeta{min-width:0}.thumbmeta .n{display:block;color:var(--blue);font-size:9px;font-weight:800;letter-spacing:.1em;margin-bottom:3px}.thumbmeta .t{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;font-weight:650;line-height:1.35}.sidebar-note{display:flex;align-items:center;gap:8px;margin-top:auto;padding:16px 5px 2px;border-top:1px solid var(--line);font-size:10px;color:var(--muted);letter-spacing:.04em}.statusdot{width:6px;height:6px;background:#29bb8a;border-radius:50%;box-shadow:0 0 0 4px #29bb8a22}.reader{padding:clamp(12px,1.8vw,28px);min-width:0;display:flex;flex-direction:column}.reader-head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:12px}.reader-head h1{margin:9px 0 0;font-size:clamp(23px,3vw,37px);letter-spacing:-.055em;line-height:1.08}.reader-actions{display:flex;gap:7px}.iconbtn{width:39px;height:39px;padding:0;font-size:18px}.stage{position:relative;display:grid;place-items:center;min-height:calc(100vh - 245px);flex:1;padding:clamp(4px,.8vw,12px);background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);overflow:auto;isolation:isolate}.page-glow{position:absolute;width:58%;aspect-ratio:1;border-radius:50%;background:var(--cyan);filter:blur(100px);opacity:.07;z-index:-1}.stage img{display:block;width:100%;max-height:min(88vh,1200px);height:auto;object-fit:contain;aspect-ratio:1.414/1;box-shadow:0 12px 34px rgba(5,24,48,.20);border-radius:2px;filter:contrast(1.04) saturate(1.02);transition:opacity .25s,transform .25s,filter .2s;transform:translateY(0);cursor:zoom-in}.stage img.changing{opacity:0;transform:translateY(7px) scale(.995)}.stage.is-zoomed{display:block;padding:8px;cursor:zoom-out}.stage.is-zoomed img{width:150%;max-width:none;max-height:none;aspect-ratio:auto;cursor:zoom-out}.stage:fullscreen{background:#071326;border:0;border-radius:0;box-shadow:none;min-height:100vh;padding:2vh 2vw;display:grid;place-items:center}.stage:fullscreen img{width:auto;max-width:96vw;max-height:94vh;aspect-ratio:1.414/1;filter:contrast(1.06) saturate(1.03);cursor:zoom-in}.stage:fullscreen.is-zoomed{display:block;overflow:auto}.stage:fullscreen.is-zoomed img{width:150%;max-width:none;max-height:none;aspect-ratio:auto}.loading{position:absolute;bottom:14px;right:16px;color:var(--muted);background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:8px 10px;font-size:10px}.reader-footer{display:grid;grid-template-columns:auto minmax(80px,1fr) auto;gap:20px;align-items:center;margin-top:20px}.page-counter{display:flex;align-items:baseline;gap:7px;white-space:nowrap}.page-counter strong{font-size:22px;letter-spacing:-.06em}.page-counter span{font-size:11px;color:var(--muted)}.page-counter .currentTitle{margin-left:7px;color:var(--ink);font-weight:600;max-width:180px;overflow:hidden;text-overflow:ellipsis}.progress{height:3px;background:var(--line);border-radius:99px;overflow:hidden}.progress span{display:block;height:100%;width:3.2%;background:linear-gradient(90deg,var(--blue),var(--cyan));transition:width .35s}.navbuttons{display:flex;gap:8px}.navbtn{white-space:nowrap}.navbtn.next{background:var(--ink);color:var(--panel);border-color:var(--ink)}.reader-tip{font-size:10px;color:var(--muted);margin:13px 0 0}.sitefoot{display:flex;justify-content:space-between;gap:20px;padding:17px clamp(16px,3vw,44px);border-top:1px solid var(--line);background:var(--panel);font-size:10px;color:var(--muted);letter-spacing:.04em}.sitefoot span:first-child{font-weight:750;color:var(--ink)}.sitefoot a{color:var(--blue)}
@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--line);min-height:auto;padding:18px}.sidehead{margin-bottom:12px}.thumbnav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:190px}.sidebar-note{display:none}.reader{padding:20px}.stage{min-height:54vh}.stage img{max-height:78vh}.stage.is-zoomed img{width:170%}.edition{display:none}}
@media(max-width:520px){.topbar{height:auto;min-height:66px;padding:10px 12px}.brand{min-width:0}.brandtext strong{font-size:16px}.toolbar{gap:6px}.toolbtn{padding:9px}.toolbtn span{display:none}.stage:fullscreen img{max-width:98vw;max-height:90vh}.app-shell{display:flex;flex-direction:column}.thumbnav{grid-template-columns:1fr 1fr;max-height:160px}.reader{padding:16px 12px}.reader-head{align-items:center}.reader-head h1{font-size:22px}.reader-actions{display:none}.stage{padding:5px;border-radius:9px;min-height:36vh}.stage img{max-height:76vh}.stage.is-zoomed img{width:190%}.reader-footer{grid-template-columns:auto 1fr;gap:10px}.progress{grid-column:1/-1;grid-row:2}.navbuttons{justify-content:end}.page-counter .currentTitle{display:none}.navbtn{font-size:10px;padding:9px}.sitefoot{flex-wrap:wrap;justify-content:center}.reader-tip{text-align:center}}
