:root{--paper:#fbf8f1;--paper-2:#f4efe3;--ink:#30251e;--muted:#796f67;--jade:#54765f;--jade-dark:#315542;--persimmon:#c9572d;--line:#ded5c7;--navy:#22384b;--shadow:0 24px 70px rgba(50,38,25,.22);font-family:"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:#e8e0d3}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 20% 10%,#f7f2e9,transparent 42%),linear-gradient(135deg,#d9cdbb,#f5f0e6);font-size:17px}.stage{min-height:100vh;display:grid;place-items:center;padding:28px}.iphone{width:430px;height:875px;padding:14px;border-radius:64px;background:#111;border:3px solid #3d3d3d;box-shadow:var(--shadow);position:relative}.iphone:before{content:"";position:absolute;top:26px;left:50%;translate:-50%;width:118px;height:32px;border-radius:22px;background:#050505;z-index:5}.screen{height:100%;border-radius:48px;overflow:hidden;background:var(--paper);position:relative}.statusbar{height:48px;padding:13px 27px 0;display:flex;justify-content:space-between;font-size:14px;font-weight:700}.statusbar i{width:70px}.viewport{height:calc(100% - 122px);overflow-y:auto;scrollbar-width:none}.viewport::-webkit-scrollbar{display:none}.tabbar{height:68px;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr);background:rgba(255,253,248,.96)}.tabbar button{border:0;background:none;color:#8a8179;font-size:22px;padding:6px}.tabbar small{display:block;font-size:12px;margin-top:2px}.tabbar .active{color:var(--persimmon);font-weight:700}.homebar{position:absolute;bottom:5px;left:50%;translate:-50%;width:120px;height:5px;border-radius:5px;background:#171717}.hidden{display:none!important}.caption{text-align:center;color:#665e57;font-size:13px;margin:10px}.page{padding:18px 20px 36px;min-height:100%}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.25}h2{font-size:24px;line-height:1.35}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}.muted{color:var(--muted);line-height:1.6}.btn{border:0;border-radius:16px;background:var(--jade);color:white;min-height:52px;padding:12px 20px;font-weight:700}.btn.alt{background:transparent;color:var(--ink);border:1px solid #bcae9d}.btn.small{min-height:40px;padding:8px 13px;border-radius:12px;font-size:14px}.text-btn{border:0;background:none;color:var(--jade-dark);padding:10px;font-weight:700}.icon-btn{border:0;background:none;font-size:36px;line-height:1}.field{margin:16px 0}.field label{display:block;font-weight:700;margin-bottom:8px}.field input,.field select,.field textarea,textarea{width:100%;border:1px solid var(--line);border-radius:13px;background:white;padding:14px;min-height:50px}.field textarea,textarea{min-height:108px;resize:vertical}.auth{padding:90px 28px 30px;text-align:center}.auth .brand-mark,.avatar{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:#dfcba3;font:700 38px "Songti SC",serif;color:#6b3327;margin:0 auto 18px}.auth .btn{width:100%;margin-top:10px}.brand-head{padding:10px 4px 20px}.brand-head h1{font-family:"Songti SC",serif;font-size:35px;margin-bottom:3px}.filters{display:flex;gap:7px;overflow:auto;margin-bottom:16px;padding-bottom:4px}.filters button{white-space:nowrap;border:1px solid var(--line);background:transparent;border-radius:20px;padding:7px 12px;font-size:13px}.filters .active{background:var(--persimmon);color:#fff;border-color:var(--persimmon)}.story-card{background:#fff;border:1px solid var(--line);padding:17px;border-radius:16px;margin:12px 0}.story-card small{color:var(--persimmon)}.story-card h2{font:700 22px "Songti SC",serif;margin:8px 0}.story-card p{line-height:1.75;color:#514840}.story-card footer{display:flex;justify-content:space-between;color:var(--muted);font-size:13px}.wizard{padding:10px 22px 150px}.wizard>header,.sub-head{display:flex;align-items:center;gap:12px}.wizard>header b{font-size:20px}.stepper{display:flex;justify-content:space-between;position:relative;margin:20px 0 34px}.stepper:before{content:"";position:absolute;top:13px;left:9%;right:9%;height:1px;background:var(--line)}.stepper span{width:19%;text-align:center;z-index:1;color:#9a9188}.stepper i{display:grid;place-items:center;margin:auto;width:27px;height:27px;border-radius:50%;background:#ded9d1;font-style:normal;font-size:13px}.stepper small{display:block;font-size:10px;margin-top:5px;white-space:nowrap}.stepper .done{color:var(--jade-dark)}.stepper .done i{background:var(--jade);color:#fff}.wizard-body h2{font-size:29px;margin-bottom:8px}.choice-list,.style-list{display:grid;gap:11px;margin-top:20px}.choice{min-height:62px;border:1px solid var(--line);border-radius:15px;background:#fff;text-align:left;padding:13px 17px}.choice b,.choice small{display:block}.choice small{color:var(--muted);font-size:14px;margin-top:5px;line-height:1.45}.choice.selected{border:2px solid var(--persimmon);background:#fffaf5}.wizard-actions{position:absolute;bottom:22px;left:22px;right:22px;background:linear-gradient(transparent,var(--paper) 20%);padding-top:26px}.wizard-actions .btn{width:100%}.wizard-actions .text-btn{display:block;margin:4px auto}.chat-page{height:100%;display:flex;flex-direction:column;background:linear-gradient(#fbf8f1,#f7f1e7)}.chat-head{min-height:67px;display:grid;grid-template-columns:44px 1fr 76px;align-items:center;border-bottom:1px solid var(--line);padding:0 12px;background:rgba(251,248,241,.95);position:sticky;top:0;z-index:2}.book-switch,.progress-btn{border:0;background:none}.book-switch{font-size:20px}.progress-btn{font-size:13px;color:var(--jade-dark)}.progress-btn small{display:block}.recap{margin:12px 16px 3px;padding:14px;border:1px solid #d6cbb9;background:#fffdf8;border-radius:15px}.recap p{font-size:15px;line-height:1.5;margin-bottom:10px}.recap div{display:flex;gap:7px}.recap button{flex:1;border:1px solid #b7aa98;border-radius:10px;background:transparent;padding:8px 2px;font-size:13px}.recap button:first-child{background:var(--jade);color:#fff;border-color:var(--jade)}.messages{flex:1;padding:16px 18px 150px}.message-row{display:flex;margin:12px 0}.message-row.mine{justify-content:flex-end}.message{max-width:86%;padding:13px 15px;border-radius:17px 17px 17px 4px;background:#e5eddf;line-height:1.65}.mine .message{background:#efe7dc;border-radius:17px 17px 4px 17px}.message small{display:block;color:var(--muted);font-size:11px}.speak{display:block;margin-top:8px;border:0;background:rgba(255,255,255,.55);border-radius:10px;padding:6px 10px;color:var(--jade-dark);font-size:12px}.voice-composer{position:absolute;left:0;right:0;bottom:73px;height:128px;padding:10px 16px 8px;display:grid;grid-template-columns:88px 1fr 62px;align-items:end;background:rgba(250,247,239,.97);border-top:1px solid var(--line);z-index:3}.secondary{display:flex;gap:12px}.secondary button,.mute{border:0;background:none;font-size:23px}.secondary small,.mute small{display:block;font-size:11px;margin-top:4px}.record-main{justify-self:center;width:126px;border:0;background:none}.record-main span{display:grid;place-items:center;margin:auto;width:74px;height:74px;border-radius:50%;background:var(--persimmon);color:white;font-size:36px;box-shadow:0 8px 20px rgba(201,87,45,.3)}.record-main b{display:block;font-size:13px;margin-top:5px}.record-main.on span{animation:pulse 1.2s infinite}.modal{position:absolute;inset:0;background:rgba(30,24,20,.48);z-index:20;display:flex;align-items:flex-end}.sheet{width:100%;max-height:84%;overflow:auto;border-radius:24px 24px 0 0;background:var(--paper);padding:24px}.actions{display:flex;gap:10px}.actions>*{flex:1}.switch-list{display:grid;gap:10px;margin:14px 0}.switch-list button,.settings-list button{display:flex;justify-content:space-between;text-align:left;border:0;border-bottom:1px solid var(--line);background:white;padding:16px}.switch-list small{display:block;color:var(--muted)}.sub-head{justify-content:space-between;margin-bottom:20px}.sub-head h1{font-family:"Songti SC",serif;font-size:25px;margin:0}.sub-head p{font-size:12px;color:var(--muted);margin:0}.chapter-progress{display:flex;overflow:auto;gap:14px;padding:12px 0 24px}.chapter-progress span{min-width:58px;text-align:center}.chapter-progress i{display:block;width:42px;height:42px;border-radius:50%;margin:auto;background:conic-gradient(var(--jade) var(--p),#ddd var(--p));position:relative}.chapter-progress i:after{content:"";position:absolute;inset:5px;border-radius:50%;background:var(--paper)}.chapter-progress b,.chapter-progress small{display:block;font-size:12px;margin-top:5px}.chapters article{border-top:1px solid var(--line);padding:18px 0}.chapters article header{display:flex;justify-content:space-between}.chapters article header span{font-size:12px;color:var(--muted)}.chapters textarea{line-height:1.8;min-height:190px}.profile-head{display:flex;align-items:center;gap:16px;padding:8px 0 25px}.profile-head .avatar{margin:0;width:64px;height:64px;font-size:30px}.profile-head h1{font-size:25px;margin-bottom:5px}.profile-head p{font-size:13px;color:var(--muted)}.section-title{display:flex;align-items:center;justify-content:space-between}.book-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.cover{height:180px;border-radius:5px 13px 13px 5px;padding:28px 12px;box-shadow:4px 7px 14px rgba(50,40,30,.18);display:flex;flex-direction:column;justify-content:center;text-align:center}.cover.paper{background:#e9ddc7;color:#4d3528}.cover.navy{background:var(--navy);color:#f2dfb7}.cover b{font:700 21px "Songti SC",serif}.cover small{margin-top:15px;font-size:11px}.book h3{font-size:17px;margin:12px 0 4px}.book p{color:var(--muted);font-size:12px}.book>div:last-child{display:flex;gap:6px}.book .btn{padding:6px;font-size:12px}.settings-list{display:grid;margin:28px 0 10px;border:1px solid var(--line);border-radius:16px;overflow:hidden}.danger-text{color:#9b3f32;width:100%;margin-top:15px}.empty,.loading{padding:48px 20px;text-align:center;color:var(--muted)}#toast{position:fixed;left:50%;bottom:36px;translate:-50% 20px;background:#2c2825;color:white;padding:12px 18px;border-radius:12px;opacity:0;pointer-events:none;transition:.2s;z-index:99;max-width:340px;text-align:center}#toast.show{opacity:1;translate:-50% 0}@keyframes pulse{50%{transform:scale(1.08);box-shadow:0 0 0 12px rgba(201,87,45,.12)}}@media(max-width:600px){body{background:var(--paper)}.stage{display:block;padding:0}.iphone{width:100%;height:100vh;border:0;border-radius:0;padding:0;box-shadow:none;background:var(--paper)}.iphone:before,.caption,.homebar{display:none}.screen{border-radius:0}.statusbar{display:none}.viewport{height:calc(100vh - 68px)}.voice-composer{bottom:68px}}
