@charset "UTF-8";
:root{color-scheme:light;--ink:#364739;--muted:#6e786b;--green:#536956;--gold:#cbb98d;--paper:#faf7ee;--background:#e9ede3;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}body{margin:0;background:#e8e5dc;color:var(--ink);transition:background 1.1s ease;min-width:280px}body[data-state="open"],body[data-state="turning"]{background:var(--background)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:wait;opacity:.45}button:focus-visible,a:focus-visible{outline:2px solid #536956;outline-offset:6px}button{touch-action:manipulation}button svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}button[hidden],[hidden]{display:none!important}.topbar{position:absolute;inset:0 0 auto;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:26px 38px;pointer-events:none}.topbar>*{pointer-events:auto}.wordmark{display:flex;align-items:center;gap:12px;font-family:"Songti SC","STSong",serif;font-size:17px;letter-spacing:.12em;color:#4e604f}.wordmark>svg{width:22px;height:34px;stroke:#78856e;stroke-width:1;fill:none}.wordmark small{display:block;font-family:-apple-system,"PingFang SC",sans-serif;letter-spacing:.13em;font-size:10px;font-weight:400;color:#778171;margin-top:5px}.tools{display:flex;align-items:center;gap:18px}.tool-button{display:flex;align-items:center;gap:7px;background:none;border:0;font-size:12px;letter-spacing:.12em;min-height:44px;padding:8px}.tool-button svg{width:18px;height:18px}.music-button{width:48px;min-width:48px;height:48px;position:relative;display:grid;place-items:center;background:rgba(255,253,247,.64);border:1px solid #82907766;border-radius:50%;padding:5px;transition:background .2s,box-shadow .2s}
.music-button:hover{background:#fffdf7;box-shadow:0 3px 12px #314d3812}
.music-button>.record{display:block;flex:none;width:36px;height:36px;animation:record-spin 8s linear infinite;animation-play-state:paused;transform-origin:50% 50%}
.record .record-disc{fill:#405b47;stroke:#344e3b;stroke-width:1}
.record .record-groove{fill:none;stroke:#d8c594;stroke-width:1.3;opacity:.5}
.record .music-note-stem{fill:none;stroke:#fff9e8;stroke-width:2.1}
.record .music-note-head{fill:#fff9e8;stroke:none}
.music-button.is-playing>.record{animation-play-state:running}
.music-slash{position:absolute;left:5px;top:5px;width:36px;height:36px;stroke:#fff9e8;stroke-width:2.2!important;filter:drop-shadow(0 1px #2c4332) drop-shadow(0 -1px #2c4332);opacity:1;transition:opacity .15s;pointer-events:none}
.music-button.is-playing .music-slash{opacity:0}
@keyframes record-spin{to{transform:rotate(360deg)}}

.page-loading{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);z-index:3;display:flex;align-items:center;justify-content:center;gap:12px;width:max-content;max-width:calc(100% - 32px);padding:14px 20px;border:1px solid #82907766;border-radius:28px;background:var(--paper);box-shadow:0 5px 24px #314d3820;color:var(--ink);font-size:14px;line-height:1.5;pointer-events:none}
.page-loading-spinner{flex:none;width:18px;height:18px;border:2px solid #53695633;border-top-color:var(--green);border-radius:50%;animation:record-spin 1s linear infinite}
@media(max-width:680px){.page-loading{bottom:16px;padding:12px 16px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.page-loading-spinner{animation:none}}

#album{min-height:100svh;display:flex;flex-direction:column;overflow:hidden}.stage{height:calc(100svh - 112px);min-height:360px;position:relative;flex:none}.book-scene{position:absolute;inset:0;touch-action:pan-y;cursor:grab}.book-scene:active{cursor:grabbing}.book-scene canvas{display:block;width:100%;height:100%;outline:0}#particles{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.stage-label{display:flex;align-items:center;justify-content:center;gap:15px;position:absolute;bottom:2px;left:0;right:0;font-family:"Songti SC","STSong",serif;font-size:13px;color:#67715e;letter-spacing:.25em;transition:opacity .4s;pointer-events:none}.little-line{width:26px;height:1px;background:#9eab905e}body[data-state="open"] .stage-label,body[data-state="turning"] .stage-label{opacity:0}.loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#e8e5dc;z-index:2;font-family:"Songti SC","STSong",serif;font-size:15px;letter-spacing:.08em}.loading-line{width:50px;height:1px;background:#71806c;animation:breathe 1.8s ease-in-out infinite}@keyframes breathe{50%{opacity:.2;transform:scaleX(.5)}}.book-controls{height:112px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;z-index:2;padding:8px 24px 6px}.closed-controls{text-align:center}.open-button{border:0;border-bottom:1px solid #75856b70;background:none;display:inline-flex;align-items:center;gap:27px;padding:8px 1px 12px;font-family:"Songti SC","STSong",serif;letter-spacing:.16em;font-size:17px}.open-button svg{height:20px;width:20px;transition:transform .2s}.open-button:hover svg{transform:translateX(4px)}.closed-controls>p{font-size:11px;color:#7a8273;letter-spacing:.12em;margin:13px 0 0}.open-controls{display:flex;align-items:center;justify-content:center;gap:30px;width:min(580px,100%)}.page-button{display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #667a5b30;border-radius:50px;background:rgba(255,255,255,.32);min-height:46px;padding:0 17px;font-size:12px;letter-spacing:.1em;transition:background .2s,border-color .2s;white-space:nowrap}.page-button:hover{background:#f9faf4;border-color:#71856a80}.page-button svg{width:16px;height:16px}.reading-position{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:132px;text-align:center}#chapter-label{font-family:"Songti SC","STSong",serif;font-size:15px;letter-spacing:.1em}#page-label{font-size:10px;color:#78816f;letter-spacing:.16em;font-variant-numeric:tabular-nums}.reading-extras{display:flex;align-items:center;justify-content:space-between;width:min(580px,100%);margin-top:16px;gap:12px}.reading-extras button{border:0;background:none;font-size:11px;padding:9px 5px;min-height:36px;color:#6c7765;white-space:nowrap}.gesture-hint{margin:0;font-size:10px;letter-spacing:.08em;color:#6e7c65}kbd{font:inherit;display:inline-block;margin:0 2px}body[data-state="opening"] .closed-controls{opacity:.3;pointer-events:none}
.paper-dialog{background:var(--paper);color:var(--ink);border:1px solid #dedfcf;border-radius:4px;box-shadow:0 30px 100px #26322230;width:min(700px,calc(100vw - 32px));max-height:min(82svh,850px);padding:30px;overscroll-behavior:contain}.paper-dialog::backdrop{background:#2f3b3154;backdrop-filter:blur(5px)}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:.16em;color:#7b866d}.dialog-heading h2{font-family:"Songti SC","STSong",serif;font-weight:400;font-size:27px;margin:11px 0 0;letter-spacing:.06em}.icon-button{background:none;border:0;display:grid;place-items:center;min-width:44px;min-height:44px;margin:-7px -8px 0 0}.icon-button svg{width:22px;height:22px}.chapter-list{display:grid;grid-template-columns:1fr 1fr;gap:0 28px}.chapter-item{border:0;border-bottom:1px solid #77856c26;background:none;padding:17px 3px;text-align:left;display:flex;align-items:center;gap:12px;font-family:"Songti SC","STSong",serif;font-size:14px;line-height:1.5;transition:background .2s}.chapter-item:hover,.chapter-item[aria-current="page"]{background:#e7ecdf}.chapter-item .number{font-size:11px;color:#7b8e73;font-family:Georgia,serif}.dialog-footer{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-top:25px;color:#7a846f;font-size:11px}.dialog-footer button{border:0;border-bottom:1px solid #8d9b8055;padding:8px 0;background:none;color:#536956;font-size:11px}.text-dialog{width:min(560px,calc(100vw - 32px))}.text-dialog article{font-family:"Songti SC","STSong",serif;line-height:1.95;font-size:18px}.text-dialog h2{font-weight:400;font-size:27px;margin:0 0 22px}.text-dialog .period{font-family:-apple-system,sans-serif;font-size:12px;color:#7b846e;letter-spacing:.08em}.text-dialog p{margin:18px 0}.text-dialog .footprints{display:flex;flex-wrap:wrap;gap:7px 14px;font-size:14px;list-style:none;padding:0}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10;background:#3c503f;color:#faf7ee;border-radius:3px;padding:12px 20px;font-size:12px;max-width:calc(100vw - 32px);box-shadow:0 6px 24px #22382422;text-align:center;line-height:1.6}.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}.skip-link{position:fixed;top:12px;left:12px;z-index:20;transform:translateY(-150%);background:var(--paper);padding:12px;color:var(--green)}.skip-link:focus{transform:none}.no-script{position:fixed;inset:40% 20px auto;text-align:center;background:var(--paper);padding:30px;z-index:5}.error-card{position:absolute;inset:25% 24px auto;text-align:center;font-family:"Songti SC",serif;font-size:18px;line-height:1.8}.error-card a{display:inline-block;color:var(--green);padding:12px;font-family:inherit;font-size:15px}
.book-scene{inset:0 0 8px}
body[data-state="opening"]{background:var(--background)}
body[data-state="opening"] .stage-label{opacity:0}
@media(min-width:1600px){.topbar{padding:32px 50px}}
@media(max-width:680px){.topbar{padding:18px 20px}.wordmark{font-size:14px;gap:8px}.wordmark>svg{width:17px;height:29px}.wordmark small{font-size:9px}.tools{gap:8px}.tool-button span{display:none}.tool-button{padding:8px}.music-button{width:44px;min-width:44px;height:44px;padding:4px}.music-button>.record{width:34px;height:34px}.music-slash{left:4px;top:4px;width:34px;height:34px}.book-scene{inset:32px 0 8px}.stage{height:calc(100svh - 150px);min-height:340px}.book-controls{height:150px;padding:12px 19px 14px}.open-controls{gap:14px}.page-button{padding:0 11px;min-width:48px;font-size:11px;gap:5px}.reading-position{min-width:116px}#chapter-label{font-size:14px}.reading-extras{margin-top:10px}.gesture-hint{font-size:9px;letter-spacing:0}.gesture-hint kbd{display:none}.gesture-hint{font-size:0}.gesture-hint::after{content:"左右滑动书页，也可以点箭头";font-size:10px}.paper-dialog{padding:24px 20px}.chapter-list{grid-template-columns:1fr}.chapter-item{font-size:15px;padding:14px 3px}.stage-label{font-size:11px;bottom:0}.text-dialog article{font-size:18px}.text-dialog h2{font-size:25px}.open-button{font-size:16px}}
@media(max-height:550px) and (orientation:landscape){.topbar{padding:12px 20px}.wordmark{font-size:12px}.wordmark small{display:none}.stage{height:calc(100svh - 86px);min-height:220px}.book-controls{height:86px;padding:4px 20px}.reading-extras{margin-top:2px}.page-button{min-height:36px}.closed-controls>p{display:none}.open-button{font-size:14px;padding:5px 0}.stage-label{display:none}.reading-position{gap:4px}}
@media(max-height:550px) and (orientation:landscape){.book-scene{inset:52px 0 5px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.music-button>.record{animation-duration:20s!important;animation-iteration-count:infinite!important}.loading-line{animation:none}}
