:root{font-family:Tahoma,"Segoe UI",sans-serif;color:#261843;background:#fbf7ff}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 10% 10%,#f1dcff,transparent 28%),#fbf7ff}a{color:inherit;text-decoration:none}button{font:inherit}header{height:72px;padding:0 max(4%,calc((100vw - 1180px)/2));display:flex;align-items:center;gap:18px;background:#fff;border-bottom:1px solid #e6d8f2;position:sticky;top:0;z-index:2}header a{padding:10px 14px;background:#f0e7fa;border-radius:13px}header span{margin-inline-start:auto;color:#6d5389}main{max-width:1180px;margin:auto;padding:28px 22px 70px}.hero{min-height:360px;border-radius:32px;padding:46px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(130deg,#5b2b86,#8a4eb4);color:#fff;overflow:hidden}.hero span,.heading span{color:#ffd66b;font-weight:900}.hero h1{font-size:clamp(2.5rem,6vw,5rem);margin:12px 0}.hero p{max-width:650px;line-height:1.9}.book-scene{font-size:8rem;position:relative}.book-scene i{font-size:2rem;position:absolute;right:-10px}.notice{margin:20px 0 45px;padding:18px 22px;background:#fff3ce;border:1px solid #ebd175;border-radius:18px}.notice p{margin:7px 0 0;line-height:1.7}.heading h2{font-size:2rem;margin:7px 0 20px}.shelf{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.book{border:0;background:transparent;text-align:start;cursor:pointer}.cover{aspect-ratio:.74;padding:25px;border-radius:9px 22px 22px 9px;background:var(--cover);color:white;display:flex;flex-direction:column;box-shadow:inset 12px 0 rgba(0,0,0,.12),0 18px 28px rgba(58,29,90,.18);transform:perspective(900px) rotateY(-7deg);transition:.2s}.book:hover .cover,.book:focus-visible .cover{transform:perspective(900px) rotateY(0) translateY(-5px)}.cover small{opacity:.8}.cover b{font-size:2.5rem;margin:auto;text-align:center}.cover h3{font-size:1.25rem;margin:0 0 8px}.cover span{opacity:.8}.cover mark{align-self:flex-start;margin-top:12px;padding:6px 9px;border-radius:999px;background:#fff;color:#43225f;font-size:.72rem;font-weight:900}.book p{margin:14px 4px 6px;color:#6b5b7d}.book em{font-style:normal;color:#7438a2;font-weight:800}dialog{width:min(1280px,calc(100% - 18px));height:min(96vh,980px);border:1px solid #caa9e1;border-radius:25px;padding:18px;color:#34204c;overflow:hidden;background:#f8f2fc}dialog:fullscreen{width:100%;height:100%;max-width:none;max-height:none;border-radius:0}dialog::backdrop{background:#1c0b30ee}.reader-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.reader-head h2{margin:2px 0}.reader-head p{margin:4px 0 0;color:#6c5b79}.reader-head button{border:0;border-radius:50%;width:42px;height:42px;flex:0 0 auto;font-size:1.5rem;background:#eadcf4;cursor:pointer}.reader-tools{display:flex;align-items:center;gap:8px;margin:10px 0}.reader-tools button,.reader-tools a{border:0;padding:8px 12px;border-radius:10px;background:#eadff2;color:#4f276c;font-weight:900;cursor:pointer}.reader-tools a{margin-inline-start:auto;background:#6f35a0;color:#fff}.book-stage{height:calc(100% - 190px);min-height:390px;display:grid;grid-template-columns:54px minmax(0,1fr) 54px;align-items:center;gap:10px;padding:12px;border-radius:20px;background:radial-gradient(circle at 50% 20%,#9d78b8,#3f2355 72%);box-shadow:inset 0 0 60px #1f0e2d88}.page-arrow{width:48px;height:70px;border:0;border-radius:18px;background:#fff;color:#65318c;font-size:2.2rem;box-shadow:0 8px 22px #17082455;cursor:pointer;z-index:2}.page-arrow:disabled{opacity:.3;cursor:not-allowed}.open-book{height:100%;min-height:365px;display:grid;grid-template-columns:1fr 16px 1fr;direction:ltr;perspective:1800px;position:relative;filter:drop-shadow(0 22px 24px #1b0b2766)}.paper{background:#fffdf7;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center}.left-paper{border-radius:18px 3px 3px 18px;box-shadow:inset -18px 0 24px #917d6a24}.right-paper{border-radius:3px 18px 18px 3px;box-shadow:inset 18px 0 24px #917d6a24}.paper canvas{max-width:none;transition:opacity .15s}.paper>span{position:absolute;bottom:5px;color:#776b7f;font-size:.78rem}.left-paper>span{left:14px}.right-paper>span{right:14px}.book-spine{background:linear-gradient(90deg,#7c6550,#e8dcc9 45%,#fff7e9 52%,#755f4b);box-shadow:inset 0 0 8px #2c160f88;z-index:2}.open-book.turning .right-paper{animation:pageTurn .24s ease}.reader-loading{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;background:#fffaf2ee;color:#5f337c;text-align:center;border-radius:18px}.reader-loading[hidden]{display:none}.reader-loading i{width:38px;height:38px;border:4px solid #dbc6e8;border-top-color:#7139a0;border-radius:50%;animation:spin .8s linear infinite}.reader-loading small{color:#796a83}.page-control{display:grid;grid-template-columns:auto minmax(160px,1fr) auto;align-items:center;gap:12px;margin-top:9px}.page-control input{accent-color:#70379d}.reader-note{font-size:.78rem;color:#6c5b79;margin:5px 0 0;text-align:center}@keyframes spin{to{transform:rotate(1turn)}}@keyframes pageTurn{50%{transform:rotateY(-7deg);filter:brightness(.9)}}@media(max-width:850px){.shelf{grid-template-columns:repeat(2,1fr)}.hero{padding:30px}.book-scene{font-size:5rem}.book-stage{grid-template-columns:42px minmax(0,1fr) 42px}.page-arrow{width:40px}}
@media(max-width:700px){dialog{height:98vh;padding:12px}.reader-head p{font-size:.72rem}.reader-tools{overflow-x:auto}.reader-tools button,.reader-tools a{white-space:nowrap;padding:7px 9px}.book-stage{height:calc(100% - 205px);min-height:340px;grid-template-columns:36px minmax(0,1fr) 36px;padding:7px;gap:5px}.page-arrow{width:34px;height:58px}.open-book{grid-template-columns:0 0 1fr;min-height:320px}.left-paper,.book-spine{display:none}.right-paper{border-radius:14px;box-shadow:inset 0 0 18px #806b5622}.reader-note{display:none}}
@media(max-width:500px){header span{display:none}.hero{align-items:flex-start;flex-direction:column}.shelf{grid-template-columns:1fr 1fr;gap:12px}.cover{padding:16px}.cover h3{font-size:1rem}.cover mark{font-size:.62rem;padding:5px 7px}.reader-head h2{font-size:1.1rem}.reader-head button{width:36px;height:36px}.page-control{font-size:.8rem}}
