:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#2a110d;background:#f3ecdf;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;min-height:100%;overflow-x:hidden}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #348ac4;outline-offset:3px}[hidden]{display:none!important}.material-symbols-rounded{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-weight:700;font-style:normal;font-size:1.3em;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr}
.app-frame{width:100%;min-height:100dvh;position:relative;background:#fffcf5;overflow:hidden}.reader-screen,.quiz-screen,.login-screen{min-height:100dvh;position:relative}.reader-screen{height:100dvh;min-height:720px;overflow:hidden;background:#9cd4ef}.reader-art{position:absolute;inset:0 0 auto;height:72%;background:#b7dff2 url('./ui-assets/story-apple-truck.png') center 49%/cover no-repeat}.screen-header{position:absolute;z-index:4;top:0;left:0;right:0;padding:clamp(22px,3.8vw,42px) clamp(20px,4vw,48px);display:flex;align-items:center;justify-content:space-between;gap:12px}.avatar-button{padding:0;border:5px solid #fff;box-shadow:0 4px 12px #43260c30;background:#fff;border-radius:50%;width:clamp(64px,8.3vw,94px);height:clamp(64px,8.3vw,94px);overflow:hidden;flex:none}.avatar-button img{display:block;width:100%;height:100%;object-fit:cover}.next-story-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:64px;padding:7px 24px 7px 30px;border:3px solid #fff6bc;border-radius:99px;background:linear-gradient(130deg,#ffa735,#ff742a);color:#fff;font-size:clamp(22px,2.6vw,30px);font-weight:850;box-shadow:0 4px 0 #d85422,0 9px 17px #5d371836;text-shadow:0 1px 1px #94331540;white-space:nowrap}.next-story-button .material-symbols-rounded{font-size:1.4em}.next-story-button:active,.page-button:active{transform:translateY(2px)}
.story-sheet{position:absolute;z-index:3;bottom:0;left:2.2%;right:2.2%;height:39%;min-height:350px;background:#fffefa;border-radius:44px 44px 0 0;box-shadow:0 -12px 34px #735b3621;display:flex;flex-direction:column;padding:clamp(14px,2vw,25px) clamp(28px,5vw,68px) max(22px,env(safe-area-inset-bottom))}.story-sheet-top{height:70px;display:flex;justify-content:flex-end;align-items:flex-start;flex:none}.listen-button{display:inline-flex;align-items:center;gap:10px;min-height:61px;padding:5px 18px 5px 7px;border:2px solid #ff812f;border-radius:99px;background:#fffdf9;color:#5b2215;font-size:clamp(17px,2.1vw,23px);font-weight:800;box-shadow:0 4px 11px #b96a3840;white-space:nowrap}.listen-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#ffad27,#ff4d1f);color:#fff;font-size:30px}.story-copy{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:flex-start;font-family:"Kaiti SC","STKaiti","KaiTi",serif;font-size:clamp(33px,4.65vw,52px);font-weight:700;line-height:1.72;letter-spacing:.06em;overflow:visible}.story-copy p{margin:0}.story-glyph{position:relative;display:inline;border:0;background:none;padding:0;color:inherit;font:inherit;line-height:inherit;letter-spacing:inherit;border-radius:10px}.story-glyph:hover{background:#fff1cb}.story-glyph.marked{color:#aa371b;background:#ffe094;box-shadow:inset 0 0 0 2px #fb7f1f}.story-glyph.active{background:#ffe094;box-shadow:inset 0 0 0 2px #fb7f1f;color:#ad3817}.glyph-popover{position:absolute;z-index:6;display:flex;align-items:center;gap:8px;transform:translate(-50%,-100%);padding:8px 11px;border-radius:16px;background:#fff;box-shadow:0 5px 18px #4b281a38;border:1px solid #f7e6d1;color:#351411;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-size:21px;font-weight:700;line-height:1;white-space:nowrap;pointer-events:auto}.glyph-popover::after{content:"";position:absolute;left:calc(50% - 9px);bottom:-8px;border:9px solid transparent;border-top-color:#fff;border-bottom:0}.glyph-popover .material-symbols-rounded{color:#f05a24;font-size:26px}.story-pager{display:flex;align-items:center;justify-content:center;gap:clamp(12px,3.2vw,32px);height:69px;flex:none}.page-button{border:0;border-radius:99px;min-height:50px;padding:8px 18px;display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:clamp(17px,2.2vw,24px);font-weight:750;white-space:nowrap}.page-button.previous{background:#fff2d8;color:#94623e}.page-button.following{background:#ffe08d;color:#392015}.page-button:disabled{opacity:.48;cursor:default}.page-button .material-symbols-rounded{font-size:1.25em}.page-count{font-size:clamp(19px,2.2vw,25px);font-weight:700;color:#301815;white-space:nowrap}
.quiz-screen{background:#fffdf7;height:100dvh;min-height:720px;overflow:hidden}.quiz-header{align-items:center}.quiz-header-actions{display:flex;gap:12px;align-items:center}.reread-button{border:2px solid #f37428;background:#fffdf9;color:#e66124;border-radius:99px;padding:10px 19px;min-height:58px;display:inline-flex;gap:7px;align-items:center;font-size:clamp(17px,2vw,23px);font-weight:800;white-space:nowrap}.reread-button .material-symbols-rounded{font-size:1.35em}.quiz-next:disabled{background:#b9b9b9;border-color:#fff;box-shadow:0 4px 0 #aaa,0 6px 11px #60574828;color:white;cursor:default}.quiz-main{width:min(100%,900px);height:100%;min-height:720px;margin:auto;padding:clamp(170px,19vh,225px) clamp(30px,5vw,72px) clamp(55px,8vh,100px);display:flex;flex-direction:column;align-items:center}.quiz-prompt{display:flex;align-items:center;justify-content:center;gap:24px;margin-bottom:clamp(40px,6vh,75px)}.quiz-prompt h1{margin:0;font-family:"Kaiti SC","STKaiti","KaiTi",serif;font-size:clamp(47px,6vw,76px);font-weight:800;white-space:nowrap;line-height:1.3}.sound-button{width:clamp(72px,9vw,106px);height:clamp(72px,9vw,106px);border:2px solid #fff;border-radius:50%;background:linear-gradient(145deg,#ffa837,#ff4823);color:#fff;display:grid;place-items:center;box-shadow:0 8px 17px #ff62243c}.sound-button .material-symbols-rounded{font-size:clamp(39px,5vw,57px)}.answer-grid{width:100%;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(2,minmax(145px,1fr));gap:clamp(17px,3vw,34px);flex:1;min-height:0}.answer-card{position:relative;border:4px solid #ffdf95;border-radius:30px;background:#fffef9;color:#26130d;font-family:"Kaiti SC","STKaiti","KaiTi",serif;font-size:clamp(86px,12vw,150px);font-weight:800;display:grid;place-items:center;line-height:1;box-shadow:0 6px 16px #654b1915}.answer-card:hover{background:#fff9ea}.answer-card.correct{border-color:#4fd63a;background:#efffea}.answer-card.wrong{border-color:#ff4945;background:#fff0f0}.answer-card .result-mark{position:absolute;right:-13px;top:-18px;width:68px;height:68px;border-radius:50%;display:grid;place-items:center;background:#27bf31;color:#fff;box-shadow:0 3px 9px #0002}.answer-card.wrong .result-mark{background:#ff3038}.result-mark .material-symbols-rounded{font-size:45px}.quiz-feedback{font-size:20px;color:#6e503a;margin:14px 0 0;min-height:29px;font-weight:700;text-align:center}.quiz-progress{height:30px;display:flex;gap:12px;align-items:center;margin-top:15px}.quiz-progress span{width:clamp(80px,12vw,125px);height:17px;border-radius:99px;background:#e2ded8;box-shadow:inset 0 1px 3px #625f5e20}.quiz-progress span.active{background:linear-gradient(90deg,#ff9032,#ff6e2d)}.quiz-progress span.done{background:#ffc147}
.modal-backdrop{position:fixed;inset:0;z-index:20;background:#241a16a8;display:grid;place-items:center;padding:30px 15px;overflow:auto}.profile-modal{position:relative;width:min(760px,100%);max-height:min(94dvh,1050px);overflow:auto;background:#fffdf8;border-radius:38px;padding:clamp(24px,4vw,48px);box-shadow:0 20px 65px #1d100b40}.close-profile{position:absolute;right:21px;top:20px;border:0;background:transparent;color:#80685b;padding:5px}.close-profile .material-symbols-rounded{font-size:42px}.profile-identity{display:flex;align-items:center;gap:28px;margin:8px 40px 26px 0}.profile-identity img{width:clamp(88px,12vw,145px);height:clamp(88px,12vw,145px);border:7px solid white;box-shadow:0 6px 22px #cc9e5d41;border-radius:50%;object-fit:cover}.profile-identity h2{font-size:clamp(23px,3vw,35px);margin:0 0 8px}.profile-identity p{font-size:clamp(15px,1.8vw,20px);font-weight:650;color:#967d6b;margin:0}.profile-summary{background:#fff8e9;border-radius:31px;padding:18px}.curriculum-row{width:100%;min-height:88px;background:#fff;border:0;border-radius:24px;padding:0 26px;display:flex;justify-content:space-between;align-items:center;font-size:clamp(20px,2.5vw,27px);font-weight:800;text-align:left}.curriculum-row .material-symbols-rounded{color:#8b7362;font-size:36px}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:17px}.stat-tile{display:flex;align-items:center;gap:17px;min-height:118px;padding:15px 17px;background:#fff;border-radius:25px}.stat-icon{width:69px;height:69px;border-radius:50%;display:grid;place-items:center;font-size:35px;flex:none}.stat-icon.amber,.link-icon.amber{background:#fff1d2;color:#f5a20d}.stat-icon.green,.link-icon.green{background:#e8f5d8;color:#5b9a48}.stat-icon.coral{background:#ffe4dd;color:#f4664d}.link-icon.blue{background:#d9eeff;color:#2495e4}.stat-tile small{display:block;color:#8a7260;font-weight:650;font-size:17px}.stat-tile strong{display:block;font-size:clamp(25px,3.2vw,38px);line-height:1.1;margin-top:4px}.stat-tile em{font-style:normal;font-size:17px}.progress-stat>div{flex:1}.progress-track{display:block;height:12px;border-radius:99px;background:#f4e9d8;margin-top:11px;overflow:hidden}.progress-track span{display:block;height:100%;width:72%;border-radius:99px;background:#ffac17}.profile-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.profile-shortcuts button{min-height:70px;border:1px solid #f0e2d1;background:#fff;border-radius:22px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:21px;font-weight:800}.profile-shortcuts button .material-symbols-rounded:first-child{color:#fa703f;font-size:32px}.profile-shortcuts button .material-symbols-rounded:last-child{color:#8e7665;margin-left:auto}.profile-links{margin-top:20px;background:#fff;border-radius:28px;padding:10px 18px}.profile-links button{width:100%;min-height:75px;border:0;background:transparent;display:flex;gap:19px;align-items:center;text-align:left;font-size:21px;font-weight:800}.profile-links button>.material-symbols-rounded:last-child{margin-left:auto;color:#8e7665;font-size:31px}.link-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;font-size:28px}.developer-link{display:block;width:max-content;margin:16px auto 0;font-size:14px;color:#99968f;text-decoration:none}.developer-link:hover{text-decoration:underline}.toast{position:fixed;z-index:30;left:50%;bottom:28px;transform:translate(-50%,20px);background:#31211bcf;color:#fff;border-radius:99px;padding:12px 21px;font-size:15px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}
.login-screen{background:#fff9ec;display:grid;grid-template-columns:1.1fr .9fr}.login-art{background:#9fd4ec url('./ui-assets/story-apple-truck.png') 53% center/cover no-repeat}.login-panel{display:flex;flex-direction:column;justify-content:center;padding:clamp(28px,5vw,85px);max-width:640px}.login-avatar{width:96px;height:96px;border-radius:50%;border:5px solid #fff;box-shadow:0 8px 18px #b88b4b48;object-fit:cover}.login-kicker{font-size:19px;color:#e77a26;font-weight:800;margin:22px 0 4px}.login-panel h1{font-size:clamp(43px,5vw,65px);margin:0;color:#46271a}.login-description{font-size:21px;margin:7px 0 32px;color:#866b57}.login-form{display:flex;flex-direction:column;gap:10px}.login-form label{font-weight:750;font-size:17px;margin-top:5px}.login-form input{width:100%;height:60px;border:2px solid #efdebe;background:#fff;border-radius:17px;padding:0 17px;font-size:19px;outline-color:#ee8b28}.code-row{display:flex;gap:10px}.code-row button{border:0;border-radius:15px;background:#ffe0a0;color:#6d3917;white-space:nowrap;padding:0 17px;font-weight:750}.demo-note{font-size:13px;line-height:1.4;color:#a28064;margin:3px 0 13px}.login-submit{border:0;border-radius:99px;min-height:65px;background:linear-gradient(120deg,#ffae37,#ff6927);color:white;font-size:22px;font-weight:850;display:flex;align-items:center;justify-content:center;gap:12px;box-shadow:0 5px 0 #d75f25}.portrait-notice{display:none}
@media(min-width:1200px){.app-frame{max-width:1440px;margin:auto;box-shadow:0 0 35px #6c4f3025}.reader-screen{min-height:720px}.reader-art{width:59%;height:100%;background-position:center}.story-sheet{left:auto;right:0;top:0;bottom:0;width:48%;height:100%;min-height:0;border-radius:42px 0 0 42px;padding:60px 48px 42px}.reader-header{right:auto;width:59%}.reader-header .next-story-button{position:fixed;right:max(35px,calc((100vw - 1410px)/2));top:35px;z-index:9}.story-sheet-top{margin-top:70px;height:75px}.story-copy{font-size:clamp(36px,3.4vw,48px);line-height:1.75}.story-pager{margin-top:30px}.profile-modal{width:730px}}
@media(max-width:700px){.reader-screen,.quiz-screen{min-height:600px}.reader-art{height:57%;background-position:center 43%}.screen-header{padding:16px 17px}.avatar-button{width:61px;height:61px;border-width:4px}.next-story-button{min-height:51px;padding:5px 13px 5px 18px;font-size:19px;border-width:2px}.story-sheet{left:0;right:0;height:50%;min-height:390px;border-radius:29px 29px 0 0;padding:12px 20px max(16px,env(safe-area-inset-bottom))}.story-sheet-top{height:54px}.listen-button{min-height:45px;padding:4px 12px 4px 5px;font-size:15px}.listen-icon{width:36px;height:36px;font-size:23px}.story-copy{font-size:clamp(27px,7vw,38px);line-height:1.7;letter-spacing:.025em;align-items:center}.story-pager{height:55px;gap:10px}.page-button{min-height:42px;padding:5px 11px;font-size:16px}.page-count{font-size:18px}.quiz-header-actions{gap:6px}.reread-button{min-height:47px;padding:5px 8px;font-size:14px}.reread-button .material-symbols-rounded{font-size:21px}.quiz-next{font-size:16px}.quiz-main{min-height:600px;padding:145px 21px 65px}.quiz-prompt{gap:12px;margin-bottom:34px}.quiz-prompt h1{font-size:clamp(34px,9vw,58px)}.sound-button{width:58px;height:58px}.sound-button .material-symbols-rounded{font-size:33px}.answer-grid{grid-template-rows:repeat(2,minmax(125px,1fr));gap:15px}.answer-card{font-size:clamp(73px,20vw,116px);border-radius:22px;border-width:3px}.answer-card .result-mark{width:46px;height:46px;right:-7px;top:-9px}.result-mark .material-symbols-rounded{font-size:31px}.quiz-feedback{font-size:15px}.quiz-progress{margin-top:6px}.quiz-progress span{width:72px;height:12px}.modal-backdrop{padding:12px}.profile-modal{max-height:96dvh;border-radius:27px;padding:22px}.profile-identity{gap:13px;margin-right:26px}.profile-identity img{width:78px;height:78px;border-width:4px}.profile-identity h2{font-size:23px}.profile-identity p{font-size:13px}.close-profile{right:11px;top:10px}.close-profile .material-symbols-rounded{font-size:34px}.profile-summary{padding:10px;border-radius:20px}.curriculum-row{min-height:65px;padding:0 13px;font-size:16px;border-radius:16px}.stats-grid{gap:8px;margin-top:9px}.stat-tile{min-height:80px;padding:9px;gap:8px;border-radius:15px}.stat-icon{width:39px;height:39px;font-size:22px}.stat-tile small{font-size:12px}.stat-tile strong{font-size:22px}.stat-tile em{font-size:12px}.progress-track{height:7px;margin-top:5px}.profile-shortcuts{gap:8px;margin-top:9px}.profile-shortcuts button{min-height:53px;font-size:13px;gap:4px;border-radius:15px}.profile-shortcuts button .material-symbols-rounded:first-child{font-size:20px}.profile-shortcuts button .material-symbols-rounded:last-child{font-size:20px}.profile-links{margin-top:10px;padding:5px 9px;border-radius:20px}.profile-links button{min-height:57px;gap:11px;font-size:15px}.link-icon{width:37px;height:37px;font-size:21px}.developer-link{display:none}.login-screen{display:flex;flex-direction:column}.login-art{height:30dvh;min-height:180px;background-position:center 55%}.login-panel{max-width:none;flex:1;margin-top:-20px;border-radius:25px 25px 0 0;background:#fff9ec;padding:14px 28px 30px;justify-content:flex-start}.login-avatar{width:67px;height:67px}.login-kicker{font-size:16px;margin:8px 0 0}.login-panel h1{font-size:39px}.login-description{font-size:16px;margin:5px 0 18px}.login-form input{height:50px;font-size:16px}.login-form label{font-size:14px}.login-submit{min-height:55px;font-size:19px}.demo-note{font-size:12px;margin:0 0 8px}}
@media(max-width:390px){.story-sheet{height:53%}.story-copy{font-size:26px}.quiz-main{padding-left:17px;padding-right:17px}.quiz-header .avatar-button{width:53px;height:53px}.reread-button{font-size:12px}.quiz-next{font-size:14px}}
@media(orientation:landscape) and (pointer:coarse){.portrait-notice{position:fixed;inset:0;z-index:100;background:#fff9e9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;color:#723d20;text-align:center}.portrait-notice .material-symbols-rounded{font-size:54px;color:#fa8428}.portrait-notice strong{font-size:28px}.portrait-notice span:last-child{font-size:18px}.app-frame{display:none}}
@media(pointer:coarse){.developer-link{display:none}}

/* 正式数据接入：插画、记录与识字编辑沿用现有卡片布局。 */
.reader-art{background:#c6e8f7}
.reader-art img{display:block;width:100%;height:100%;object-fit:cover}
.reader-art img[hidden]{display:none}
#storyArtPlaceholder{position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(130px,27vw,280px);background:linear-gradient(160deg,#b7e5fa,#fbe6a6)}
#storyArtPlaceholder[hidden]{display:none}
#storyArtPlaceholder.retry{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-size:clamp(19px,3vw,28px);font-weight:800;color:#80552f;text-align:center;padding:24px;cursor:pointer}
.profile-logout{display:block;margin:12px auto 0;padding:8px 18px;border:0;background:transparent;color:#8d7569;font-size:14px}
.detail-backdrop{z-index:15}
.detail-modal{max-width:760px;width:min(94vw,760px);max-height:88dvh;overflow:auto}
.detail-modal h2{margin:4px 44px 20px 0;color:#3f2319;font-size:clamp(23px,3vw,31px)}
.detail-list{display:grid;gap:12px}
.detail-item{padding:16px 18px;border-radius:18px;background:#fff8e8;color:#432719;font-size:18px;line-height:1.7}
.detail-item small{display:block;color:#866d5c;font-size:13px}
.history-image{display:block;width:100%;max-height:300px;object-fit:cover;border-radius:13px;margin:9px 0 12px}
.char-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:9px}
.char-state{border:2px solid #e9d9ba;border-radius:14px;background:#fffdf7;color:#473126;min-height:58px;font-size:28px;font-family:"Kaiti SC","STKaiti","KaiTi",serif}
.char-state.known{background:#eaf7db;border-color:#9bc36a}
.char-state.unknown{background:#ffebe3;border-color:#f39a72}
.detail-hint{font-size:14px;color:#78695c;line-height:1.6;margin:0 0 16px}
.textbook-option{display:block;width:100%;margin:8px 0;padding:15px;border:2px solid #f3d89b;border-radius:15px;background:#fff8e7;color:#47271a;text-align:left;font-size:18px}
.profile-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-shortcuts #resetBookButton{grid-column:1/-1}
