:root{--navy:#173b70;--blue:#2f6df6;--sky:#eaf3ff;--yellow:#ffd75e;--ink:#10233f;--muted:#6b7890;--line:#dbe5f1;--bg:#f4f8fd;--green:#28a879;--red:#df5b63;--shadow:0 14px 34px rgba(28,62,110,.10)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;font-size:16px;line-height:1.5}button,input,textarea{font:inherit}button{color:inherit}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 max(20px,calc((100vw - 1120px)/2));gap:28px;position:sticky;top:0;z-index:20}.brand{border:0;background:none;display:flex;align-items:center;gap:10px;font-weight:850;font-size:1.1rem;cursor:pointer;padding:0}.brand-mark{width:38px;height:38px;border-radius:12px;background:var(--navy);color:var(--yellow);display:grid;place-items:center}.topbar nav{display:flex;gap:5px;margin-left:auto}.nav-btn{border:0;background:transparent;padding:10px 14px;border-radius:11px;font-weight:700;cursor:pointer}.nav-btn.active,.nav-btn:hover{background:var(--sky);color:var(--blue)}.score-pill{display:flex;align-items:center;gap:6px;background:#fff9d8;border:1px solid #f2df7a;border-radius:999px;padding:8px 13px;white-space:nowrap}main{width:min(1120px,calc(100% - 36px));margin:34px auto 64px}.page{display:none}.active-page{display:block}.welcome-row{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:26px}.eyebrow{margin:0 0 4px;color:var(--blue);font-size:.76rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}h1,h2,p{margin-top:0}h1{font-size:clamp(1.75rem,3vw,2.65rem);line-height:1.12;margin-bottom:9px;letter-spacing:-.035em}h2{font-size:1.35rem;line-height:1.25}.muted{color:var(--muted)}.streak-card{min-width:160px;background:var(--navy);color:#fff;border-radius:20px;padding:16px 20px;display:flex;align-items:center;gap:13px;box-shadow:var(--shadow)}.streak-card .flame{font-size:2rem}.streak-card strong,.streak-card small{display:block}.streak-card small{color:#bed3ef}.today-panel{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;margin-bottom:34px;box-shadow:var(--shadow)}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.section-head h2{margin-bottom:12px}.progress{height:8px;background:#e8eef6;border-radius:99px;overflow:hidden;margin-bottom:20px}.progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--blue),#53b8ff);border-radius:inherit;transition:width .35s}.task-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.task{border:1px solid var(--line);background:#fbfdff;border-radius:17px;padding:14px;text-align:left;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;cursor:pointer;transition:.18s}.task:hover{transform:translateY(-2px);border-color:#a9c4ea;box-shadow:0 8px 18px rgba(33,74,128,.08)}.task strong,.task small{display:block}.task small{font-size:.8rem;color:var(--muted);margin-top:2px}.task-state{font-size:.82rem;color:var(--blue);font-weight:800}.task-state.done{color:var(--green)}.task-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-weight:950;font-size:1.2rem}.math-icon{background:#e9efff;color:#365dd5}.english-icon{background:#fff0c7;color:#b17000}.typing-icon{background:#e5f9f2;color:#168766}.scratch-icon{background:#ffe9dc}.subject-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.subject-card{min-height:146px;border:0;border-radius:23px;padding:22px;text-align:left;display:grid;grid-template-columns:84px 1fr auto;align-items:center;gap:17px;cursor:pointer;transition:.2s;box-shadow:var(--shadow)}.subject-card:hover{transform:translateY(-3px)}.subject-card strong,.subject-card small{display:block}.subject-card strong{font-size:1.35rem}.subject-card small{margin-top:4px;opacity:.72}.big-symbol{font-size:1.35rem;font-weight:950;width:76px;height:76px;display:grid;place-items:center;border-radius:23px;background:rgba(255,255,255,.7)}.arrow{font-size:1.8rem}.math-card{background:#dfe9ff}.english-card{background:#ffedb8}.typing-card{background:#dff7ef}.scratch-card{background:#ffe6d6}.activity-page{max-width:820px;margin:0 auto}.back{border:0;background:none;color:var(--blue);font-weight:800;padding:8px 0 18px;cursor:pointer}.activity-shell{background:#fff;border:1px solid var(--line);border-radius:28px;padding:28px;box-shadow:var(--shadow)}.activity-head{display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line);padding-bottom:18px}.activity-head h1{font-size:1.65rem;margin:0}.activity-head strong:last-child{margin-left:auto}.question-box{padding:42px max(10px,6vw) 20px;text-align:center}.question-box>span:first-child{display:block;font-size:clamp(2.2rem,7vw,4.2rem);font-weight:900;letter-spacing:.02em;margin-bottom:28px}.question-box input,.question-box textarea{width:100%;border:2px solid var(--line);border-radius:15px;padding:15px 17px;background:#fbfdff;outline:none}.question-box input{font-size:1.5rem;text-align:center}.question-box input:focus,.question-box textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px #e6efff}.primary,.secondary{border:0;border-radius:14px;padding:14px 20px;font-weight:850;cursor:pointer}.primary{background:var(--blue);color:#fff;margin-top:14px;width:100%}.secondary{background:var(--sky);color:var(--navy)}.feedback{min-height:26px;margin:13px 0 0;font-weight:800}.feedback.good{color:var(--green)}.feedback.bad{color:var(--red)}.word-prompt{display:block;font-size:2.5rem;margin:8px 0 28px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.choice{padding:15px;border:2px solid var(--line);border-radius:14px;background:#fff;font-weight:800;cursor:pointer}.choice:hover{border-color:var(--blue);background:var(--sky)}.typing-target{background:#eef4fb;border-radius:16px;padding:18px;font-size:1.25rem;font-weight:750;letter-spacing:.02em}.typing-box textarea{resize:vertical;font-size:1.15rem}.typing-stats{display:flex;justify-content:center;gap:28px;margin-top:12px;color:var(--muted)}.mission-card{margin-top:24px;padding:28px;border-radius:22px;background:linear-gradient(145deg,#fff5eb,#fff);border:1px solid #f3d8c8}.mission-badge{display:inline-block;background:#ff9b4a;color:#fff;border-radius:999px;padding:5px 11px;font-weight:850;font-size:.8rem}.mission-card h2{font-size:1.7rem;margin:15px 0 8px}.mission-card li{margin:8px 0}.complete-check{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #f0cdb5;border-radius:14px;padding:14px;margin-top:22px;font-weight:800;cursor:pointer}.complete-check input{width:21px;height:21px}.section-title{margin-bottom:24px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat{background:#fff;border:1px solid var(--line);border-radius:20px;padding:21px}.stat span,.stat small{display:block;color:var(--muted)}.stat strong{display:block;font-size:2rem;margin:7px 0;color:var(--navy)}.parent-note{margin-top:18px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px}.parent-note .secondary{margin-top:10px}.mistake-list{display:grid;gap:12px}.mistake{background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px 20px;display:flex;align-items:center;gap:14px}.mistake strong{font-size:1.1rem}.mistake span{color:var(--red);margin-left:auto}.empty{background:#fff;border:1px dashed #afc1d8;border-radius:20px;padding:38px;text-align:center;color:var(--muted)}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,120px);background:var(--navy);color:#fff;border-radius:999px;padding:12px 20px;font-weight:800;box-shadow:var(--shadow);transition:.28s;z-index:50}.toast.show{transform:translate(-50%,0)}
@media(max-width:760px){.topbar{height:auto;min-height:66px;padding:10px 16px;gap:10px}.brand span:last-child{display:none}.topbar nav{margin-left:0}.nav-btn{padding:9px 10px;font-size:.88rem}.score-pill{margin-left:auto;padding:7px 10px}main{width:min(100% - 24px,1120px);margin-top:22px}.welcome-row{align-items:flex-start}.streak-card{min-width:128px;padding:13px}.task-list{grid-template-columns:1fr}.subject-grid{grid-template-columns:1fr}.subject-card{min-height:112px;grid-template-columns:65px 1fr auto}.big-symbol{width:62px;height:62px;font-size:1.05rem}.activity-shell{padding:18px;border-radius:22px}.question-box{padding:30px 0 10px}.stats-grid{grid-template-columns:1fr 1fr}.choice-grid{grid-template-columns:1fr}.welcome-row h1{font-size:1.65rem}.welcome-row .muted{font-size:.9rem}.streak-card .flame{display:none}}
@media(max-width:430px){.topbar nav .nav-btn:first-child{display:none}.nav-btn{font-size:.8rem;padding:8px}.score-pill{font-size:.85rem}.welcome-row{display:block}.streak-card{display:inline-flex;margin-top:8px}.stats-grid{grid-template-columns:1fr}.typing-stats{gap:12px;font-size:.9rem}}
.math-module-shell{background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);overflow:hidden}.math-module-frame{display:block;width:100%;height:clamp(720px,calc(100vh - 145px),980px);border:0;background:#f4f8fd}.legacy-math-hooks{display:none!important}@media(max-width:760px){#math.activity-page{max-width:none}.math-module-shell{border-radius:20px}.math-module-frame{height:calc(100vh - 126px);min-height:680px}}
.tricks-card{background:#e4f3ff}.tricks-page{max-width:none}.tricks-module-shell{background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);overflow:hidden}.tricks-module-frame{display:block;width:100%;height:clamp(760px,calc(100vh - 145px),1080px);border:0;background:#f4f8fd}@media(max-width:760px){.tricks-module-shell{border-radius:20px}.tricks-module-frame{height:calc(100vh - 126px);min-height:700px}}.physics-card{background:#e7f0ff}.physics-page{max-width:none}.physics-module-shell{background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);overflow:hidden}.physics-module-frame{display:block;width:100%;height:clamp(760px,calc(100vh - 145px),1080px);border:0;background:#f4f8fd}@media(max-width:760px){.physics-module-shell{border-radius:20px}.physics-module-frame{height:calc(100vh - 126px);min-height:700px}}
/* English Copybook: the same frame treatment as maths and physics. The copybook fills its
   viewport without scrolling, so the frame gets an explicit height instead of sizing to
   its content -- too short a frame squeezes the four-line practice rows into nothing. */
#english.activity-page{max-width:none}.copybook-module-shell{background:#eef3fb;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);overflow:hidden}.copybook-module-frame{display:block;width:100%;height:clamp(780px,calc(100vh - 145px),1100px);border:0;background:#eef3fb}@media(max-width:760px){.copybook-module-shell{border-radius:20px}.copybook-module-frame{height:calc(100vh - 126px);min-height:700px}}
.task-list{grid-template-columns:repeat(2,1fr)}.chinese-icon{background:#ffe4e2;color:#bd3b35}.chinese-card{background:#ffe3e1}.language-switch{margin-left:auto;display:flex;background:#edf2f8;padding:4px;border-radius:12px}.language-switch button{border:0;background:transparent;padding:8px 12px;border-radius:9px;font-weight:800;cursor:pointer}.language-switch button.active{background:#fff;color:#bd3b35;box-shadow:0 2px 8px rgba(26,44,73,.12)}.review-banner{margin:20px 0 4px;padding:13px 16px;border-radius:14px;background:#fff5d6;color:#735500}.character-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:20px}.character-card{border:1px solid #f0d3d0;border-radius:20px;padding:19px;background:#fffafa}.character-card.review-char{border-color:#e6b84c;background:#fffaf0}.character-top{display:flex;align-items:center;gap:16px}.character-top strong{font-family:"KaiTi","STKaiti","PingFang SC",serif;font-size:4.2rem;line-height:1;color:#b93932}.character-top span{font-size:1.15rem;font-weight:850}.character-card p{margin:8px 0}.memory-tip{display:flex;flex-direction:column;background:#fff0ed;border-radius:12px;padding:11px 13px;margin:10px 0}.memory-tip span{margin-top:4px}.character-card small{display:block;font-size:.92rem}.speak-char{border:0;background:#ffe4e2;color:#9c302b;border-radius:10px;padding:8px 11px;margin-top:12px;font-weight:800;cursor:pointer}.quiz-card,.quiz-result{text-align:center;padding:34px 12px}.quiz-character{display:block;font-family:"KaiTi","STKaiti","PingFang SC",serif;font-size:8rem;line-height:1.2;color:#b93932;margin:12px}.reveal-answer{margin:10px}.remember-buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.remember,.forgot{border:0;border-radius:14px;padding:14px;font-weight:850;cursor:pointer}.remember{background:#dcf5eb;color:#147456}.forgot{background:#ffe7e7;color:#b23138}.quiz-result>span{font-size:4rem}.tutorial-note{background:#eaf3ff;border-radius:15px;padding:15px 17px;margin:18px 0}.tutorial-note p{margin:4px 0 0}.tutorial-steps li{margin:0 0 12px;padding:12px 14px;background:#fff;border:1px solid #f0d5c3;border-radius:12px}.tutorial-steps b{color:#bb5818}@media(max-width:760px){.character-grid{grid-template-columns:1fr}.language-switch{margin-left:0}.activity-head{flex-wrap:wrap}.task-list{grid-template-columns:1fr}}
