:root{--paper:#f5f3eb;--surface:#fffef9;--ink:#2d4038;--muted:#788178;--line:#dedfd4;--accent:#b66e51;--green:#355547;--sage:#e4e9de;--shadow:0 14px 48px #24392c0b;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-size:15px;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button,a,input{ -webkit-tap-highlight-color:transparent}button{color:inherit}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #bd7755;outline-offset:4px}button{border:0;background:none}a{color:inherit}p{line-height:1.95}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:"Songti SC","STSong","Noto Serif CJK SC",serif;font-weight:500}.serif{font-family:"Songti SC","STSong",serif}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);font-weight:600}.small{font-size:12px}.skip{position:fixed;left:20px;top:-80px;z-index:100;background:white;padding:12px}.skip:focus{top:10px}.icon{display:inline-block;width:20px;height:20px;vertical-align:middle;flex-shrink:0}.brand-icon{width:36px;height:44px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;border-radius:7px;padding:12px 22px;font-size:13px;font-weight:500;transition:background .2s,transform .2s}.btn:hover{transform:translateY(-1px)}.btn.primary{color:#fffdf3;background:var(--ink)}.btn.primary:hover{background:#3f5b4b}.btn.secondary{border:1px solid var(--line);background:#ffffff50}.btn.small{min-height:38px;padding:8px 14px}.btn.text{padding:8px 0;min-height:38px;color:var(--muted)}.stamp{display:inline-flex;align-items:center;gap:8px;border:1px solid #bfc6b7;padding:7px 11px;border-radius:4px;font-size:10px;letter-spacing:.12em}.stamp:before{content:"";width:5px;height:5px;border-radius:50%;background:#bb805e}.brand{display:flex;align-items:center;gap:12px;text-decoration:none}.brand strong{display:block;font-family:"Songti SC","STSong",serif;letter-spacing:.1em;font-weight:600;font-size:19px}.brand span{display:block;font-size:8px;letter-spacing:.14em;color:var(--muted);margin-top:5px}.cover{min-height:100svh;padding:34px 6vw 22px;display:flex;flex-direction:column}.cover-header{display:flex;align-items:center;justify-content:space-between;max-width:1360px;width:100%;margin:0 auto}.cover-header .chapter-meta{font-size:11px;color:var(--muted);display:flex;gap:22px}.cover-main{display:grid;grid-template-columns:.85fr 1.15fr;gap:7vw;align-items:center;max-width:1240px;width:100%;margin:auto;padding:50px 0}.cover-copy .stamp{margin-bottom:28px}.cover-copy h1{font-size:clamp(56px,6.7vw,91px);line-height:1.25;letter-spacing:.04em;margin:0 0 12px;white-space:nowrap}.cover-copy h1 em{display:block;font-style:normal;color:var(--accent);padding-left:1.12em}.cover-subtitle{font-size:10px;letter-spacing:.24em;color:var(--muted);margin:20px 0 28px}.cover-copy .intro{font-size:14px;line-height:2.2;max-width:360px;margin-bottom:25px;color:#687268}.cover-actions{display:flex;gap:10px;flex-wrap:wrap}.cover-note{margin:17px 0 0;color:var(--muted);font-size:10px}.cover-visual{position:relative;padding:0 0 24px 0}.photo{height:clamp(360px,44vw,570px);border-radius:130px 130px 5px 5px;overflow:hidden;position:relative;box-shadow:var(--shadow)}.photo img{width:100%;height:100%;object-fit:cover;object-position:52% center;filter:saturate(.86)}.photo:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 70%,#243c3b55)}.photo-label{position:absolute;bottom:28px;left:30px;color:#fff6df;z-index:1;font-size:11px;letter-spacing:.16em}.vertical-label{position:absolute;right:-27px;top:110px;writing-mode:vertical-rl;font-size:9px;letter-spacing:.19em;color:var(--muted)}.postcard{position:absolute;bottom:0;left:-35px;transform:rotate(-4deg);width:230px;background:#fffdf5;padding:19px 22px;box-shadow:0 8px 24px #23372a12;border:1px solid #e8e4d5}.postcard .tag{font-size:8px;letter-spacing:.2em;color:#a1846d}.postcard p{font-family:"Songti SC",serif;font-size:17px;line-height:1.8;margin:10px 0 5px}.postcard .sign{font-size:10px;text-align:right;color:var(--muted)}.cover-footer{max-width:1360px;width:100%;margin:0 auto;display:flex;justify-content:space-between;font-size:9px;letter-spacing:.06em;color:var(--muted);border-top:1px solid var(--line);padding-top:18px}.cover-footer span+span{text-align:right}.app-shell{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:100svh;max-width:1500px;margin:auto}.sidebar{padding:36px 24px 20px 30px;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100svh}.sidebar .brand{gap:9px}.sidebar .brand strong{font-size:17px}.chapter-side{margin:43px 0 31px}.chapter-side .eyebrow{font-size:8px}.chapter-side h2{font-size:25px;line-height:1.5;margin:10px 0 14px}.progress-track{height:3px;background:#dce0d3;margin:10px 0}.progress-track span{display:block;height:100%;background:#718675;transition:width .3s}.progress-caption{display:flex;justify-content:space-between;font-size:9px;color:var(--muted)}.nav-list{display:flex;flex-direction:column;gap:7px}.nav-button{display:flex;align-items:center;gap:12px;text-align:left;padding:13px 14px;border-radius:6px;color:var(--muted);font-size:13px;position:relative}.nav-button.active{background:#e5e9df;color:var(--ink)}.nav-button .count{margin-left:auto;font-size:10px}.nav-button:hover{background:#e9ece4}.side-bottom{margin-top:auto;padding-top:24px}.save-status{font-size:9px;color:var(--muted);display:flex;align-items:center;gap:6px;margin-bottom:12px}.save-status:before{content:"";display:block;width:5px;height:5px;background:#779279;border-radius:50%}.save-status.error{color:#a15b44}.side-controls{display:flex;gap:14px}.side-controls button{padding:6px 0;font-size:11px;color:var(--muted)}.side-quote{font-family:"Songti SC",serif;font-size:12px;color:#8c9487;line-height:2;border-top:1px solid var(--line);padding-top:20px;margin-top:22px}.main{min-width:0;padding:27px 43px 35px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px;height:30px;gap:14px}.breadcrumb{font-size:10px;letter-spacing:.05em;color:var(--muted)}.breadcrumb b{font-weight:400;color:var(--ink)}.top-tools{display:flex;gap:12px;align-items:center}.top-tools button{font-size:11px;display:flex;align-items:center;gap:6px;color:var(--muted)}.top-tools .icon{width:16px;height:16px}.scene-banner{height:220px;position:relative;overflow:hidden;border-radius:8px;margin-bottom:26px;background:#6a7e71}.scene-banner img{width:100%;height:100%;object-fit:cover;object-position:center 57%;filter:saturate(.7) brightness(.87)}.scene-banner:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#213a37a0,transparent 90%)}.scene-label{position:absolute;left:30px;bottom:26px;color:#fff8e8;z-index:1}.scene-label .eyebrow{color:#d5ddcf;font-size:9px}.scene-label h1{font-size:29px;margin:12px 0 0;letter-spacing:.08em}.scene-coordinate{position:absolute;right:24px;top:20px;color:#f3f1de;z-index:1;font-size:9px;letter-spacing:.15em}.scene-banner.night img{filter:saturate(.65) brightness(.66)}.scene-banner.indoor img{filter:saturate(.45) brightness(.95)}.story-area{max-width:740px;margin:0 auto}.scene-heading{display:flex;align-items:center;gap:15px;margin:0 0 25px}.scene-heading .line{height:1px;background:var(--line);flex:1}.scene-heading span{font-size:10px;color:var(--muted);white-space:nowrap}.transcript{padding:0 10px 10px;min-height:100px}.narration{font-family:"Songti SC","STSong",serif;font-size:17px;line-height:2.1;color:#4a584e;letter-spacing:.025em;margin:0 0 20px;animation:arrive .25s ease-out}.speech{display:flex;align-items:flex-start;gap:10px;margin:0 0 17px;animation:arrive .25s ease-out}.avatar{width:31px;height:31px;border-radius:50%;background:#e2e8dc;display:grid;place-items:center;flex-shrink:0;color:#62745f;font-size:12px;font-family:serif}.speech.you{flex-direction:row-reverse}.speech.you .avatar{background:#eae4d6;color:#8a785b}.speaker-name{font-size:9px;color:var(--muted);margin:0 0 6px 3px}.speech.you .speaker-name{text-align:right;margin-right:3px}.speech-content{max-width:min(85%,570px)}.bubble{font-size:14px;line-height:1.9;padding:12px 17px;background:#fffef8;border:1px solid #e3e5da;border-radius:2px 13px 13px 13px;box-shadow:0 2px 5px #20362702;white-space:pre-wrap}.you .bubble{background:#e3e9dc;border-color:#d8e0d0;border-radius:13px 2px 13px 13px}.attachment{width:220px;margin:0 0 25px 41px;border:1px solid #dedbc9;background:#f1eddb;padding:14px;transform:rotate(-2deg)}.attachment svg{display:block;width:100%;height:100px}.attachment .small{font-size:10px;color:#8d8878;border-top:1px dashed #ccc6af;padding-top:8px}.reading-actions{border-top:1px solid var(--line);margin-top:15px;padding:19px 0 4px;display:flex;align-items:center;justify-content:space-between;gap:15px}.reading-hint{font-size:10px;color:var(--muted)}.choices{display:grid;gap:9px;padding:6px 0 10px}.choice-header{font-size:10px;color:var(--accent);letter-spacing:.08em;margin:12px 0}.choice{display:flex;align-items:center;gap:15px;border:1px solid #d8dfd1;background:#fffef860;text-align:left;padding:15px 17px;border-radius:6px;font-size:13px;line-height:1.8;transition:background .2s,border-color .2s}.choice:hover{background:#e6ebdf;border-color:#a8b7a2}.choice-number{font-size:10px;color:#9b9f8f;min-width:15px}.choice-arrow{margin-left:auto;flex-shrink:0;color:#8a9b85}.route-options .choice{padding:20px 17px}.page-title{margin:18px 0 27px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.page-title h1{font-size:36px;margin:0 0 9px}.page-title p{font-size:12px;color:var(--muted);margin:0}.empty{border:1px dashed #ccd4c5;padding:42px 22px;text-align:center;border-radius:8px;color:var(--muted);line-height:2;font-size:13px}.map-canvas{position:relative;height:320px;background:#e7eadf;border:1px solid #dce1d3;border-radius:8px;overflow:hidden;margin-bottom:25px}.map-canvas svg{width:100%;height:100%}.map-pin{position:absolute;min-width:92px;padding:8px 12px;border:1px solid #bcc9b5;border-radius:6px;background:#f8f7ee;color:#73806a;font-size:11px;text-align:center}.map-pin.done{background:var(--ink);border-color:var(--ink);color:#fff6e2}.map-pin button{color:inherit;padding:0;width:100%;font-size:inherit}.map-pin:nth-of-type(1){left:9%;top:18%}.map-pin:nth-of-type(2){right:13%;top:22%}.map-pin:nth-of-type(3){left:32%;top:47%}.map-pin:nth-of-type(4){right:7%;top:64%}.map-pin:nth-of-type(5){left:7%;top:71%}.map-pin:nth-of-type(6){left:49%;top:79%}.map-key{font-size:10px;color:var(--muted);margin-top:-12px;margin-bottom:25px}.route-card{background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:25px;position:relative}.route-card .eyebrow{color:var(--accent)}.route-card h2{font-size:27px;margin:12px 0}.route-card p{font-size:13px;color:#6c7668;line-height:1.9}.route-details{display:flex;gap:10px;margin-bottom:15px}.pill{font-size:9px;background:#e8ecdf;padding:6px 9px;border-radius:3px;color:#6b7b61}.memory-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.memory-card{background:var(--surface);border:1px solid #e0e2d7;padding:24px;border-radius:5px;position:relative}.memory-card:before{content:"";position:absolute;top:0;left:24px;width:28px;height:3px;background:#c59b7e}.memory-card .eyebrow{font-size:8px}.memory-card h2{font-size:22px;margin:15px 0 12px}.memory-card p{font-size:12px;color:#77816f;line-height:1.9;margin:0}.message-log{max-width:740px;margin:auto}.log-place{font-size:10px;text-align:center;color:var(--muted);margin:25px 0 18px}.chapter-end{border:1px solid #b9c4b0;background:#e9eddf;padding:35px;border-radius:6px;margin-top:25px;text-align:center}.chapter-end h2{font-size:32px;margin:15px 0 20px}.chapter-end p{font-size:13px;color:#6a7864}.end-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:24px 0 0}.mobile-head{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(15px);padding:12px 20px;border-radius:6px;background:#2d4038;color:#fff8e7;box-shadow:var(--shadow);font-size:12px;z-index:30;max-width:90vw;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}dialog{border:1px solid #c9d0bf;border-radius:10px;padding:30px;max-width:460px;width:calc(100% - 36px);background:var(--paper);color:var(--ink);max-height:85svh;overflow:auto}dialog::backdrop{background:#192b2490;backdrop-filter:blur(3px)}dialog h2{font-size:29px;margin-bottom:15px}dialog p{font-size:13px;color:#78816f}dialog label{font-size:12px;display:block;margin-bottom:10px}dialog input[type=text]{display:block;width:100%;padding:13px;border:1px solid #c8d0be;border-radius:5px;background:#fffdf6;color:var(--ink);margin-bottom:20px}dialog .dialog-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.settings-grid .btn{font-size:12px;padding:10px}.settings-row{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:17px 0;margin-top:15px}.settings-row label{margin:0}.settings-row input{accent-color:var(--green);width:18px;height:18px}.settings-info{font-size:10px;line-height:1.9;margin-top:20px}.large-text .narration{font-size:20px}.large-text .bubble,.large-text .choice{font-size:16px}.ending-summary{margin:18px auto 0;font-family:"Songti SC",serif;line-height:1.9;font-size:15px;max-width:460px;color:#56664f}.fade-in{animation:arrive .4s ease-out}@keyframes arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@media(min-width:1500px){.app-shell{border-left:1px solid var(--line);border-right:1px solid var(--line)}}@media(max-width:1050px){.app-shell{grid-template-columns:208px 1fr}.sidebar{padding:28px 19px}.main{padding:24px 28px}.sidebar .brand strong{font-size:15px}.sidebar .brand .brand-icon{width:30px}.scene-banner{height:190px}.cover-main{gap:5vw}.cover-copy h1{font-size:65px}.photo{height:470px}.postcard{left:-15px;width:200px}.postcard p{font-size:15px}}@media(max-width:720px){.cover{padding:24px 24px 21px}.cover-header .brand strong{font-size:17px}.cover-header .chapter-meta{font-size:9px}.cover-header .chapter-meta span:first-child{display:none}.cover-main{display:flex;flex-direction:column-reverse;gap:26px;padding:30px 0}.cover-visual{width:100%;padding-bottom:13px}.photo{height:clamp(240px,58vw,350px);border-radius:85px 85px 5px 5px}.photo img{object-position:center 52%}.photo-label{font-size:9px;left:20px;bottom:22px}.vertical-label{right:-16px;top:65px;font-size:7px}.postcard{left:auto;right:-5px;bottom:-2px;width:165px;padding:12px 15px;transform:rotate(4deg)}.postcard .tag{font-size:6px}.postcard p{font-size:13px;margin:5px 0}.postcard .sign{font-size:8px}.cover-copy{width:100%;padding:0 3px}.cover-copy .stamp{font-size:8px;margin-bottom:14px;padding:5px 8px}.cover-copy h1{font-size:55px;line-height:1.2;display:flex;gap:7px;white-space:normal;letter-spacing:0}.cover-copy h1 em{padding:0;display:inline}.cover-subtitle{font-size:8px;letter-spacing:.15em;margin:12px 0 17px}.cover-copy .intro{font-size:12px;line-height:2;margin-bottom:18px;max-width:none}.cover-actions .btn{min-height:45px;padding:11px 17px;font-size:12px}.cover-note{font-size:9px;margin-top:12px}.cover-footer{font-size:8px;padding-top:14px;gap:15px}.cover-footer span{max-width:60%}.app-shell{display:block;padding-bottom:85px}.sidebar{position:fixed;bottom:0;top:auto;width:100%;height:auto;background:#f5f3ebf7;backdrop-filter:blur(10px);border-right:0;border-top:1px solid var(--line);padding:6px 14px max(7px,env(safe-area-inset-bottom));z-index:10;display:block}.sidebar>.brand,.chapter-side,.side-bottom{display:none}.nav-list{flex-direction:row;justify-content:space-around;gap:4px}.nav-button{flex-direction:column;gap:4px;padding:8px 10px;font-size:9px;flex:1}.nav-button .icon{width:18px;height:18px}.nav-button .count{position:absolute;right:15%;top:5px;background:#e5d8bf;color:#897054;border-radius:5px;padding:1px 4px;font-size:8px}.nav-button.active{background:transparent;color:#314f40}.nav-button.active:after{content:"";height:2px;width:15px;background:#71866c;position:absolute;bottom:2px}.main{padding:0 19px 18px}.mobile-head{display:flex;height:63px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:16px}.mobile-head .brand{gap:9px}.mobile-head .brand strong{font-size:16px}.mobile-head .brand span{font-size:6px}.mobile-head .brand-icon{width:27px;height:32px}.mobile-head button{font-size:12px;padding:8px}.topbar{margin-bottom:14px;height:auto}.breadcrumb{font-size:9px}.top-tools{gap:12px}.top-tools .tool-label{display:none}.scene-banner{height:165px;margin-bottom:20px;border-radius:6px}.scene-label{left:20px;bottom:20px}.scene-label h1{font-size:24px;margin-top:10px}.scene-coordinate{font-size:7px;top:15px;right:15px}.scene-label .eyebrow{font-size:7px}.scene-heading{margin-bottom:22px}.scene-heading span{font-size:9px}.transcript{padding:0 0 8px}.narration{font-size:16px;line-height:2;letter-spacing:0;margin-bottom:19px}.speech{gap:8px;margin-bottom:15px}.avatar{width:27px;height:27px;font-size:10px}.speech-content{max-width:87%}.bubble{font-size:13px;padding:11px 14px}.speaker-name{font-size:8px}.reading-actions{padding-top:17px;margin-top:10px}.reading-hint{font-size:9px;max-width:45%;line-height:1.7}.reading-actions .btn{font-size:12px;padding:10px 16px;min-height:44px}.choice{font-size:12px;padding:13px;gap:11px}.choice-header{font-size:9px}.page-title{margin:20px 0 24px}.page-title h1{font-size:30px}.page-title p{font-size:11px}.memory-grid{grid-template-columns:1fr}.memory-card{padding:21px}.memory-card h2{font-size:22px}.map-canvas{height:280px}.map-pin{min-width:74px;font-size:9px;padding:8px}.map-pin:nth-of-type(4){right:3%}.map-pin:nth-of-type(6){left:45%}.route-card{padding:22px}.route-card h2{font-size:24px}.chapter-end{padding:25px 18px}.chapter-end h2{font-size:27px}.chapter-end p{font-size:12px}#toast{bottom:90px;font-size:11px;min-width:180px;text-align:center}.large-text .narration{font-size:19px}.large-text .bubble,.large-text .choice{font-size:15px}dialog{padding:25px}.settings-grid .btn{font-size:11px;padding:9px}.attachment{width:190px;margin-left:35px}}@media(max-width:360px){.cover-copy h1{font-size:46px}.main{padding-left:14px;padding-right:14px}.map-pin{min-width:66px;font-size:8px}.brand strong{font-size:14px}.settings-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.reduce-motion *,.reduce-motion *:before,.reduce-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
.transcript > :not(:last-child){animation:none}.desktop-hint{font-size:9px;opacity:.7}@media(max-width:720px){.desktop-hint{display:none}}

@media(max-width:720px){.cover-copy h1{font-size:clamp(40px,7.8vw,55px)}}
