:root{color-scheme:light;--cream:#fff6df;--ink:#26372d;--rpx:.5px;--page-vh:1vh;--page-vw:1vw;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:#142b23}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #f1b952;outline-offset:2px}
.layout{display:flex;align-items:center;justify-content:center;gap:clamp(64px,10vw,196px);height:100vh;height:100dvh;padding:22px 24px;background:radial-gradient(ellipse at 77% 48%,#52614a 0,transparent 40%),radial-gradient(ellipse at 0 95%,#334d3d 0,transparent 55%),#142d24;overflow:hidden}
.side{align-self:center;display:flex;flex-direction:column;gap:clamp(32px,7vh,80px);width:min(35vw,460px);color:#f9edcd}.wordmark{font-size:20px;font-weight:750;display:flex;align-items:center;gap:.55em;letter-spacing:.035em;margin:0 0 2.4rem}.wordmark img{width:41px;height:32px;object-fit:contain}.wordmark span{margin-left:.35rem;padding-left:.9rem;border-left:1px solid #8f9c84;color:#d0d3ad;font-size:14px;font-weight:500}.side h1{font-family:"Songti SC","STSong","Noto Serif CJK SC",Georgia,serif;font-weight:700;font-size:clamp(50px,5.3vw,83px);line-height:1.15;letter-spacing:-.075em;margin:0}.intro{color:#e7e3ca;line-height:1.85;margin:1.35rem 0 1.55rem;font-size:17px}
.desk-start{border:0;border-radius:40px;background:#ffc561;color:#332c20;font-weight:700;padding:.85rem 1.5rem;font-size:16px}.desk-start:hover{background:#ffd595}.book-link{display:flex;align-items:center;align-self:flex-start;gap:16px;border:0;border-top:1px solid #74836c55;border-radius:0;background:none;color:#f4e9c8;padding:1.15rem 0 0;font-size:15px}.portraits{display:flex}.portraits img{width:42px;height:42px;background:#eee0bb;border-radius:50%;padding:2px;border:2px solid #314b3a;margin-left:-5px}.portraits img:first-child{margin:0}
.device{display:flex;flex-direction:column;position:relative;isolation:isolate;overflow:hidden;width:min(446px,calc((100dvh - 44px)*.575));max-width:100%;height:100%;max-height:900px;background:#faf8ee;border:1px solid #95846977;border-radius:28px;box-shadow:0 25px 65px #07160f52;--safe-bottom:env(safe-area-inset-bottom,0px)}
.web-bar{display:flex;align-items:center;justify-content:space-between;padding:0 20px;min-height:43px;flex:0 0 auto;background:#fff9ed;color:#354634;border-bottom:1px solid #c7bb9a66;position:relative;z-index:2}.web-bar strong{font-size:16px}.web-bar span{font-size:13px;opacity:.8}.device[data-active=home] .web-bar{background:#45251c;color:#fae5bd;border-color:#7c5548}.web-bar button{background:transparent;border:0;padding:0 10px 3px 0;color:inherit;font-size:32px;line-height:1}.web-bar button:not([hidden])+strong{margin-right:auto}
#stage{position:relative;isolation:isolate;transform:translateZ(0);overflow:hidden;flex:1;min-height:0;width:100%}#screen{height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;-webkit-tap-highlight-color:transparent}#screen[data-page=home]{overflow:hidden}
#tabs{flex:none;display:flex;justify-content:space-evenly;background:#fffaf0;border-top:1px solid #ded2bc;border-radius:0;padding:5px 0 max(6px,env(safe-area-inset-bottom));z-index:3}#tabs[hidden]{display:none}#tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:3px;flex-direction:column;border:0;background:transparent;color:#696e60;font-size:13px;line-height:1.15;padding:2px 0 0;border-radius:0;font-weight:500}#tabs button[aria-current=page]{color:#285944;font-weight:700}#tabs img{width:25px;height:25px;object-fit:contain}
#toast{position:absolute;z-index:60;bottom:20%;left:50%;transform:translateX(-50%);max-width:86%;width:max-content;padding:10px 16px;border-radius:12px;background:#30271ee8;color:#fff9e8;font-size:14px;pointer-events:none}
#confirm-box{width:min(340px,85vw);border:1px solid #dbcca9;background:#fff9e9;color:#3b382b;border-radius:22px;padding:21px}#confirm-box::backdrop{background:#191d19a8}#confirm-box h2{margin:0;font-size:21px}#confirm-box p{font-size:15px;line-height:1.6}#confirm-box input{width:100%;border-radius:9px;border:1px solid #b7b9a8;padding:9px}#confirm-box form>div{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}#confirm-box button{border-radius:20px;border:0;padding:8px 18px;background:#e9e4d5}#confirm-box button[value=ok]{background:#2d6046;color:white}
@media(max-width:760px){.layout{padding:0;display:block;background:#faf8ee}.side{display:none}.device{width:100%;height:100%;max-height:none;max-width:none;border:0;border-radius:0;box-shadow:none}.web-bar{min-height:40px;padding-left:max(15px,env(safe-area-inset-left));padding-right:max(15px,env(safe-area-inset-right));padding-top:env(safe-area-inset-top)}}
@media(max-height:580px) and (min-width:761px){.layout{padding:0}.device{width:min(520px,55vw);border-radius:0}.side{gap:18px}.side h1{font-size:44px}.wordmark{margin-bottom:1.1rem}.intro{margin:.7rem 0}.web-bar{min-height:31px}#tabs img{width:19px;height:19px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
