
:root{--ink:#263e3a;--muted:#657b72;--bg:#f5f5ec;--line:#dce5d8;--green:#326956;--gold:#e2a65a;--white:#fffefa}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:16px;line-height:1.6}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible{outline:3px solid #dca24c;outline-offset:3px}button{color:inherit}header{max-width:1100px;margin:auto;padding:20px 24px 12px;display:flex;justify-content:space-between;align-items:center;gap:10px}.brand{font-size:20px;font-weight:800;letter-spacing:1px}.brand small{display:block;font-size:11px;letter-spacing:2px;color:var(--muted);font-weight:500}.pill{font-size:13px;background:#e7eee1;padding:7px 12px;border-radius:99px;color:var(--green);white-space:nowrap}main{max-width:1100px;margin:auto;padding:12px 24px 48px}.hero{background:#dce9dd;border-radius:26px;overflow:hidden;display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:270px}.hero-copy{padding:32px 34px}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:700;color:var(--green)}h1{font-size:clamp(30px,5vw,48px);line-height:1.15;letter-spacing:-1px;margin:10px 0 14px}h2{font-size:25px;line-height:1.3;margin:0 0 12px}h3{margin:0;font-size:19px;line-height:1.4}p{margin:8px 0}.hero p{max-width:34em;color:#49675c}.hero svg{display:block;width:100%;height:auto}.progress{margin-top:20px;height:8px;background:#fff8;border-radius:20px;overflow:hidden;max-width:340px}.progress span{display:block;height:100%;background:var(--green);border-radius:20px;transition:width .3s}.sectionhead{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:30px 0 15px}.sectionhead p{color:var(--muted);font-size:14px;margin:0}.zones{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.zone{border:1px solid var(--line);background:var(--white);border-radius:20px;overflow:hidden;text-align:left;padding:0;transition:transform .15s,border-color .15s}.zone:hover{transform:translateY(-3px)}.zone.active{border:2px solid var(--green)}.zone-art{height:105px;display:grid;place-items:center;position:relative;overflow:hidden}.zone-art svg{height:100%;width:100%}.zone-body{padding:17px 19px}.zone-body p{font-size:14px;color:var(--muted);margin:5px 0 10px}.zone-body .meta{font-size:12px;color:var(--green)}.missions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.mission{min-height:132px;background:var(--white);border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;align-items:start;text-align:left;gap:7px}.mission:hover{border-color:var(--green)}.mission .num{font-size:11px;font-weight:700;letter-spacing:1px;color:var(--muted)}.mission p{font-size:13px;color:var(--muted);margin:0}.mission .go{font-size:13px;color:var(--green);font-weight:700;margin-top:auto}.lesson{background:var(--white);border:1px solid var(--line);border-radius:24px;overflow:hidden;margin-top:12px}.lesson-head{padding:22px 30px 18px;background:#e7eee1}.lesson-head h1{font-size:clamp(26px,4vw,38px);margin:8px 0}.lesson-body{max-width:730px;margin:auto;padding:24px 30px 32px}.back{border:0;background:none;color:var(--green);font-weight:700;padding:8px 0}.scene{background:#f1f3e9;border-radius:16px;padding:17px 20px;margin:16px 0;font-size:17px;white-space:pre-line}.label{font-size:12px;color:var(--green);font-weight:800;letter-spacing:1px}.choices{display:grid;gap:9px;margin:13px 0}.choice{border:1px solid #d7dfd2;border-radius:12px;background:#fff;text-align:left;padding:13px 16px;min-height:48px}.choice:hover{background:#f2f6ee}.choice.ok{background:#e1f0e3;border-color:#76a282}.choice.retry{background:#f9f0df;border-color:#cda76c}.feedback{padding:13px 15px;border-radius:12px;background:#edf1e7;margin:12px 0;white-space:pre-line}.feedback:empty{display:none}.insight{border-left:4px solid #d6a55a;padding:6px 16px;margin:22px 0;color:#4f665b}.insight strong{color:var(--ink)}.primary{background:var(--green);color:white;border:0;border-radius:12px;padding:13px 20px;font-weight:700;min-height:46px}.primary:disabled{opacity:.45;cursor:default}.secondary{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 16px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.interactive{border:1px solid var(--line);border-radius:16px;padding:16px;margin:15px 0;background:#fff}.big{font-size:29px;font-weight:800;color:var(--green);line-height:1.3}.control{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:15px}.interactive input[type=range]{width:100%;accent-color:var(--green);height:36px}.tiles{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.tile{min-width:43px;text-align:center;background:#dce9db;border:1px solid #9cba9d;border-radius:8px;padding:10px 12px;font-weight:700}.tile.empty{background:#f3f3ed;color:#a0aca3;border-color:#d8ded2}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center}.three div{background:#f1f4ed;border-radius:10px;padding:10px 3px}.three small{display:block;color:var(--muted);font-size:12px}.three strong{font-size:19px}.bar{height:26px;background:#f0eee4;border-radius:7px;overflow:hidden;margin:10px 0}.bar span{display:block;height:100%;background:#79a88a}.gridplot{display:grid;gap:2px;max-width:430px;margin:12px auto}.gridplot i{aspect-ratio:1;background:#c4ddc5;border:1px solid #9abb9d;border-radius:2px}.wordbank{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.word{background:#eef2e7;border:1px solid #cbd8c5;border-radius:9px;padding:8px 13px;min-height:44px}.word:disabled{opacity:.35}.sentence{min-height:58px;background:#f4f6f1;border:1px dashed #aabda6;border-radius:12px;padding:10px;display:flex;flex-wrap:wrap;gap:7px;align-items:center}.sentence button{background:white}.sound{border:1px solid #b7cdb8;background:#eef4e9;border-radius:10px;padding:10px 14px;font-weight:700}.footer{margin-top:25px;padding:18px 0;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.complete{padding:16px;background:#e7f1e4;border-radius:14px;margin:15px 0}.hidden{display:none!important}.chartrow{display:flex;align-items:center;gap:10px;margin:7px 0;font-size:14px}.chartrow span:first-child{width:40px}.chartrow .track{flex:1;height:22px;background:#eef0e8;border-radius:4px;overflow:hidden}.chartrow b{display:block;height:100%;background:#83ae91}.chartrow span:last-child{width:30px}.tip{font-size:13px;color:var(--muted)}.mission.done .num{color:var(--green)}@media(max-width:700px){header{padding:14px 15px 4px}main{padding:10px 14px 32px}.hero{grid-template-columns:1fr;min-height:0}.hero-copy{padding:23px 23px 0}.hero svg{max-height:215px}.zones{grid-template-columns:1fr;gap:9px}.zone{display:flex;align-items:stretch}.zone-art{width:104px;height:auto;min-height:112px;flex-shrink:0}.zone-body{padding:12px 13px}.zone-body p{margin:3px 0;font-size:13px}.missions{grid-template-columns:repeat(2,1fr);gap:9px}.mission{min-height:124px;padding:13px}.mission h3{font-size:17px}.sectionhead{margin-top:24px;align-items:start;flex-direction:column;gap:3px}.lesson-head{padding:19px}.lesson-body{padding:18px}.three strong{font-size:17px}.scene{padding:14px;font-size:16px}.brand{font-size:18px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

header a{color:inherit;text-decoration:none}footer{max-width:1100px;margin:0 auto;padding:15px 24px 35px;color:var(--muted);font-size:12px}#nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}#nav button{font-size:13px;padding:8px 10px;min-height:36px}.login{max-width:440px;margin:35px auto;padding:30px;background:var(--white);border-radius:24px;border:1px solid var(--line)}.login label{display:block;font-size:14px;margin:15px 0 4px}.login input,.search,textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit}.login button{width:100%;margin-top:18px}.lesson-body h2{margin-top:24px}.phasebar{display:flex;gap:5px;margin:16px 0;flex-wrap:wrap}.phasebar span{font-size:12px;padding:6px 8px;background:#f0f1e9;border-radius:7px}.phasebar span.active{background:var(--green);color:white}.phasebar span.past{background:#dbe8d8;color:var(--green)}.principle{font-size:18px;font-weight:700;margin:12px 0}.worked{background:#f2f5ed;border-radius:12px;padding:14px 17px;white-space:pre-line}.lesson-body .choice{width:100%;display:block}.mini{font-size:13px;color:var(--muted)}.grouphead{margin:24px 0 10px;font-size:16px;color:var(--green)}.status{font-size:12px;color:#446a56;background:#e5eee2;padding:4px 8px;border-radius:10px}.notice{border:1px solid #d6ddcf;padding:15px;border-radius:13px;background:#fcfcf6;margin:12px 0}.choice:disabled{cursor:default}.topicnav{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.topicnav button.active{background:var(--green);color:white}.mission{min-height:120px}.mission .num{font-size:12px}.answerarea{scroll-margin-top:10px}.controls{display:grid;gap:6px}.openwrite{min-height:110px}.checkline{display:flex;gap:8px;align-items:flex-start;margin:14px 0}.checkline input{width:20px;height:20px;accent-color:var(--green);flex:none;margin-top:3px}.graphic{max-height:220px;margin:auto;display:block;width:100%}.sound{margin:4px}.warn{color:#85542d}.mission:focus-visible{outline:3px solid #c8a059}.login input{margin-bottom:5px}.navback{margin-bottom:10px}.questiontitle{font-size:19px}.muted{color:var(--muted)}@media(max-width:600px){.login{margin:18px auto;padding:20px}.lesson-body{padding:17px}.lesson-head{padding:18px}.phasebar{gap:4px}.phasebar span{font-size:10px;padding:5px}.brand{font-size:17px}.mission{min-height:105px}#nav{justify-content:flex-end}.hero-copy h1{font-size:31px}}/* ===== 游戏化表现层（仅视觉，不改内核） ===== */
.island-wrap{position:relative;min-width:0}.island-wrap svg{display:block;width:100%;height:auto}
.island-lights circle{fill:#e2a65a;opacity:.12;transition:opacity .6s,filter .6s}
.island-wrap.has-m #litM,.island-wrap.has-c #litC,.island-wrap.has-e #litE{opacity:1;filter:drop-shadow(0 0 7px #e8b45f)}
#bldM,#bldC,#bldE{transition:filter .6s}
.island-wrap.has-m #bldM,.island-wrap.has-c #bldC,.island-wrap.has-e #bldE{filter:drop-shadow(0 0 5px #e8b45f)}
#boat{animation:bob 4s ease-in-out infinite}@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
.footprint{display:grid;gap:10px;margin-top:18px;max-width:340px}.fp{display:grid;grid-template-columns:76px 1fr 44px;align-items:center;gap:10px;font-size:13px}.fp em{font-style:normal;color:var(--green);font-weight:700;text-align:right;font-size:12px}.fpbar{height:8px;background:#fff8;border-radius:20px;overflow:hidden}.fpbar b{display:block;height:100%;background:linear-gradient(90deg,#79a88a,#e2a65a);border-radius:20px;transition:width .5s}
.callout{display:flex;align-items:center;gap:16px;background:linear-gradient(120deg,#f6e9cf,#fdf6e6);border:1px solid #e6cf9e;border-radius:18px;padding:16px 20px;margin:18px 0 0;flex-wrap:wrap}.callout-icon{font-size:32px;color:#c98b2e;flex-shrink:0}.callout h2{font-size:19px;margin:4px 0}.callout>div:nth-child(2){flex:1;min-width:180px}.callout .primary{white-space:nowrap}
.badgewall{margin:26px 0 8px}.badges{display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}.badge{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#eef1eb;border:1px dashed #c9d4c6;color:#9aa89b;font-size:13px;font-weight:700;transition:.3s;cursor:help}.badge.on{background:linear-gradient(145deg,#f6dda6,#e2a65a);border:1px solid #cf9436;color:#5b3f10;box-shadow:0 3px 9px #d9a44b55;transform:translateY(-2px)}
.seed{font-size:11px;margin-left:4px}.seed.ready{color:#c98b2e}.seed.done{color:#326956}.seed.grow{color:#7a9a83}.seed.idle{color:#aab6ac}
.feedback.celebrate{animation:cheerPop .5s ease}@keyframes cheerPop{0%{transform:scale(1)}40%{transform:scale(1.035);background:#e5f2e6}100%{transform:scale(1)}}
.sparkles{position:absolute;left:50%;top:50%;pointer-events:none}.sparkles i{position:absolute;width:7px;height:7px;border-radius:2px;transform:rotate(var(--a)) translateY(0);animation:spark .85s ease-out forwards}@keyframes spark{0%{opacity:1;transform:rotate(var(--a)) translateY(0) scale(1)}100%{opacity:0;transform:rotate(var(--a)) translateY(calc(-1*var(--d))) scale(.3)}}
.answerarea,.feedback{position:relative}
@media(max-width:700px){.callout{padding:13px 15px;gap:11px}.callout h2{font-size:17px}.callout-icon{font-size:26px}.footprint{max-width:none}.fp{grid-template-columns:70px 1fr 40px;gap:7px}.badge{width:39px;height:39px;font-size:12px}.hero{grid-template-columns:1fr}.island-wrap svg{max-height:210px}}
@media(prefers-reduced-motion:reduce){.island-lights circle,#boat,.sparkles i,.feedback.celebrate{animation:none!important;transition:none!important}}
/* 游戏化布局修正 */
.hero{grid-template-columns:1.15fr .85fr}
.hero-copy h1{font-size:clamp(26px,3.6vw,42px)}
header{flex-wrap:nowrap}
.brand small{white-space:nowrap}
#nav{display:flex;flex-wrap:nowrap;gap:6px;align-items:center}
#nav .secondary{padding:8px 11px;font-size:13px;white-space:nowrap}
@media(max-width:700px){.hero{grid-template-columns:1fr}.hero-copy h1{font-size:clamp(26px,7vw,36px)}header{gap:6px;padding-left:12px;padding-right:12px}.brand{font-size:16px}.brand small{font-size:9px;letter-spacing:1px}#nav .secondary{padding:7px 9px;font-size:12px}#nav .pill{font-size:11px;padding:6px 9px}}
/* ===== 认知层：节奏 / 图谱 / 总结（不改内核） ===== */
.nextstep{display:flex;align-items:center;gap:16px;background:var(--white);border:1px solid var(--line);border-radius:18px;padding:15px 20px;margin-top:16px;flex-wrap:wrap}.next-icon{width:46px;height:46px;border-radius:14px;background:#e7eee1;color:var(--green);display:grid;place-items:center;font-size:22px;flex-shrink:0}.next-body{flex:1;min-width:190px}.next-body h2{font-size:19px;margin:3px 0}.nextstep .primary{white-space:nowrap}
.phasewhy{margin:10px 0 4px;padding:9px 13px;background:#f1f4ed;border-radius:10px;font-size:13px;color:#4f665b}.phasewhy span{font-weight:700;color:var(--green);margin-right:8px}
.next-hint{margin:8px 0 4px;color:var(--green)}
.recap{background:#f7f4e9;border:1px solid #e5dcc0;border-radius:16px;padding:18px 20px;margin:18px 0}.recap .eyebrow{margin-bottom:10px}.recap-row{display:grid;grid-template-columns:70px 1fr;gap:10px;padding:9px 0;border-top:1px dashed #ded5b8}.recap-row:first-of-type{border-top:0}.recap-row b{color:var(--green);font-size:13px}.recap-row p{margin:0;font-size:14px;line-height:1.6}
.atlas-sub{margin:18px 0}.atlas-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.atlas-head h2{font-size:20px;margin:0}.atlas-line{color:var(--muted);font-size:13px;margin:6px 0 12px}.atlas-flow{display:grid;gap:11px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.atlas-node{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:14px}.atlas-node.part{border-color:#c8b183;background:#fffdf6}.atlas-node.full{border-color:#8fb69a;background:#f6fbf5}.atlas-node-top{display:flex;align-items:center;gap:9px}.atlas-idx{width:24px;height:24px;border-radius:50%;background:#e7eee1;color:var(--green);display:grid;place-items:center;font-size:12px;font-weight:800;flex-shrink:0}.atlas-node-top b{font-size:15px;flex:1}.atlas-node-top em{font-style:normal;font-size:12px;color:var(--muted)}.atlas-dots{display:flex;gap:5px;padding:9px 0}.adot{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;background:#eef1eb;color:#9aa89b;font-size:12px}.adot.ready{background:#f6e6c5;color:#b47c22}.adot.done{background:#dcefe0;color:#2f6a4d}.adot.grow{background:#e8efe9;color:#6f9279}.atlas-units{display:grid;gap:5px}.atlas-unit{display:flex;justify-content:space-between;gap:8px;text-align:left;border:0;background:#f8f8f2;border-radius:9px;padding:8px 10px;font-size:13px;color:var(--ink)}.atlas-unit:hover{background:#eef3ea}.atlas-unit small{color:var(--muted);font-size:11px;white-space:nowrap}
body.focus-mode .badgewall,body.focus-mode .footprint,body.focus-mode .island-wrap,body.focus-mode .sectionhead p{display:none!important}body.focus-mode .hero{grid-template-columns:1fr}body.focus-mode .hero-copy h1{font-size:clamp(26px,4vw,38px)}body.focus-mode .nextstep{background:#f6fbf5}
@media(max-width:700px){.nextstep{padding:12px 14px;gap:10px}.next-icon{width:38px;height:38px;font-size:18px}.next-body h2{font-size:17px}.recap{padding:14px}.recap-row{grid-template-columns:1fr;gap:2px}.atlas-flow{grid-template-columns:1fr}.phasewhy{font-size:12px}}
/* ===== 训练层：掌握画像 / 方法显性化 / 初中衔接 ===== */
.mastery{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:16px 20px;margin-top:16px}.mhead{display:flex;align-items:center;justify-content:space-between;gap:12px}.mhead h2{font-size:18px;margin:3px 0}.streak{display:flex;align-items:baseline;gap:4px;color:var(--green)}.streak b{font-size:27px;line-height:1}.streak span{font-size:12px;color:var(--muted)}
.mbar{display:flex;gap:3px;height:13px;margin:12px 0 7px;border-radius:10px;overflow:hidden;background:#f0f2ec}.mbar span{min-width:14px;display:grid;place-items:center;font-size:9px;color:#fff}.mbar .m0{background:#dfe4dc}.mbar .m1{background:#b9cdb8}.mbar .m2{background:#8caf8e}.mbar .m3{background:#5f9672}.mbar .m4{background:#326956}
.mlegend{display:flex;flex-wrap:wrap;gap:10px;font-size:11px;color:var(--muted)}.mlegend span::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:4px}.mlegend .m0::before{background:#dfe4dc}.mlegend .m1::before{background:#b9cdb8}.mlegend .m2::before{background:#8caf8e}.mlegend .m3::before{background:#5f9672}.mlegend .m4::before{background:#326956}
.methodnote{display:grid;gap:4px;margin-top:11px;padding:10px 13px;background:#f1f4ed;border-radius:11px;font-size:12px;color:#4f665b}.methodnote b{color:var(--green)}
.mastery-tag{display:inline-block;font-size:12px;font-weight:700;padding:4px 10px;border-radius:99px;margin-bottom:8px}.mastery-tag.m0{background:#eef0ec;color:#7d8a7e}.mastery-tag.m1{background:#e7f0e6;color:#4b7354}.mastery-tag.m2{background:#dfecdf;color:#356947}.mastery-tag.m3{background:#d4e9d8;color:#2a613f}.mastery-tag.m4{background:#c7e2ce;color:#245537}
.methodtag{margin-top:8px;padding:8px 12px;border-left:3px solid #d6a55a;background:#fbf6ea;border-radius:0 9px 9px 0;font-size:12px;color:#6b5b3a}
.bridge-note{margin:12px 0 2px;padding:10px 13px;background:#eaf1f6;border-radius:10px;font-size:13px;color:#3d5f74}.bridge-note b{color:#2c6b93;margin-right:8px}
.atlas-unit.m3,.atlas-unit.m4{border-left:3px solid #5f9672}.atlas-unit.m0{opacity:.72}
body.focus-mode .mastery .methodnote{display:none}
@media(max-width:700px){.mastery{padding:13px}.mhead h2{font-size:16px}.streak b{font-size:23px}.mlegend{gap:7px}.methodnote{font-size:11px}.bridge-note{font-size:12px}}
/* ===== 内核升级配套：家长只读视图 ===== */
.p-head{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:20px 24px;margin:12px 0}.p-head h1{font-size:26px;margin:4px 0}.p-stats{display:flex;flex-wrap:wrap;gap:18px;margin-top:12px}.p-stats span{color:var(--muted);font-size:13px}.p-stats b{font-size:20px;color:var(--green);margin-right:3px}
.p-sub{margin:18px 0}.p-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}.p-topic{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:13px}.p-topic>b{font-size:14px}.p-nums{display:flex;flex-wrap:wrap;gap:9px;margin:8px 0;font-size:11px;color:var(--muted)}.p-nums .m4{color:#2a613f}.p-nums .m3{color:#5f9672}.p-nums .warn{color:#b5792a}.p-bar{display:flex;height:8px;border-radius:8px;overflow:hidden;background:#eef0ea}.p-bar i{display:block;height:100%}.p-bar .m4{background:#326956}.p-bar .m3{background:#8caf8e}
@media(max-width:700px){.p-head{padding:15px}.p-head h1{font-size:22px}.p-grid{grid-template-columns:1fr}.p-stats{gap:12px}}
/* ===== 输入辅助与难度分级（表现层） ===== */
.numrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.numrow input{flex:1;min-width:140px}
.symbar{display:flex;gap:5px}.symbar button{min-width:42px;height:46px;border:1px solid var(--line);background:#fff;border-radius:10px;font-size:17px;color:var(--green);font-weight:700}.symbar button:active{background:#e7eee1}
.lvtag{display:inline-block;font-size:11px;font-weight:700;padding:2px 8px;border-radius:99px;margin-left:6px;white-space:nowrap}.lvtag.lv1{background:#eef1eb;color:#7d8a7e}.lvtag.lv2{background:#e7f0e6;color:#4b7354}.lvtag.lv3{background:#f6e6c5;color:#9c6a1c}
.atlas-unit.lv3{border-left:3px solid #e2a65a}.atlas-unit.lv2{border-left:3px solid #8caf8e}
.challenge-note{margin:9px 0 0;padding:9px 12px;background:#f4f6ec;border-radius:9px;font-size:12px;color:#5a6b50}.challenge-note b{color:var(--green);margin-right:7px}
@media(max-width:700px){.symbar button{min-width:40px;height:44px}.numrow input{min-width:100%}}

/* ===== 今日任务卡 ===== */
.today{background:linear-gradient(135deg,#fffdf6,#f6f9f2);border:1px solid #d8e3cf;border-radius:20px;padding:18px 22px;margin-top:16px;box-shadow:0 2px 10px rgba(50,105,86,.05)}
.today-head h2{font-size:21px;margin:4px 0}
.todaylist{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:9px}
.today-item{display:flex;align-items:center;gap:13px;background:var(--white);border:1px solid var(--line);border-radius:14px;padding:12px 15px}
.today-item.done{opacity:.62;border-style:dashed}
.tnum{width:28px;height:28px;border-radius:50%;background:#e7eee1;color:var(--green);display:grid;place-items:center;font-weight:800;font-size:13px;flex-shrink:0}
.today-item.done .tnum{background:#dcefe0}
.tbody{flex:1;min-width:0}
.tbody b{font-size:15px}
.tbody p{font-size:13px;color:var(--muted);margin:2px 0 0}
.today-item .primary{white-space:nowrap;flex-shrink:0;min-height:40px;padding:10px 16px}
.tdone{color:var(--green);font-weight:700;font-size:13px;white-space:nowrap}
.today.alldone{background:linear-gradient(135deg,#f6fbf5,#eef7ee)}
body.focus-mode .today{background:var(--white)}
@media(max-width:700px){.today{padding:14px 15px}.today-head h2{font-size:18px}.today-item{gap:9px;padding:11px 12px}.tbody b{font-size:14px}.today-item .primary{min-height:38px;padding:9px 13px}}


/* --- v4: 专注任务卡 + 巩固档位 + 复习日历 --- */
.tierline{margin:.4rem 0 0;font-size:.85rem;color:#5a6b60;background:rgba(84,140,110,.08);border-radius:8px;padding:.35rem .6rem;display:inline-block}
.tiersum{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin:.6rem 0;padding:.5rem .7rem;background:rgba(84,140,110,.07);border-radius:10px;font-size:.82rem}
.tiersum b{color:#436c58;margin-right:.3rem}
.tiersum span{background:#fff;border:1px solid #dbe5dd;border-radius:99px;padding:.1rem .55rem;color:#5a6b60}
.today-item.later{opacity:.55}
.today-item.later .tbody b::after{content:' · 接下来';font-weight:400;font-size:.72rem;color:#8a9a8f}
.tnext{font-size:.78rem;color:#8a9a8f;white-space:nowrap}
.tmin{display:inline-block;margin-left:.4rem;font-size:.72rem;background:rgba(84,140,110,.12);border-radius:99px;padding:.05rem .5rem;color:#436c58}
.p-cal{margin:1.2rem 0;padding:1rem 1.2rem;background:#fff;border:1px solid #e3e8e2;border-radius:14px}
.cal-row{display:flex;gap:.8rem;align-items:baseline;padding:.45rem 0;border-bottom:1px dashed #e3e8e2}
.cal-row:last-child{border-bottom:0}
.cal-row b{min-width:3.2em}
.cal-row span{color:#436c58;font-weight:700;white-space:nowrap}
.cal-row em{font-style:normal;color:#5a6b60;font-size:.85rem;flex:1}


/* --- v5: 伙伴养成 --- */
.petcard{display:flex;gap:1rem;align-items:center;background:#fff;border:1px solid #e3e8e2;border-radius:16px;padding:1rem 1.2rem;margin:1.2rem 0;flex-wrap:wrap}
.petcard.egg{background:linear-gradient(135deg,#fffdf5,#f2f8ef)}
.pet-emoji{font-size:3rem;line-height:1;cursor:pointer;user-select:none;transition:transform .2s}
.pet-emoji:hover{transform:scale(1.12) rotate(-6deg)}
.pet-emoji.s2{font-size:3.6rem}
.pet-emoji.s3{font-size:4.2rem;position:relative}
.pet-halo{font-style:normal;font-size:1.2rem;position:absolute;top:-6px;right:-10px;animation:halo 1.6s infinite}
@keyframes halo{0%,100%{transform:translateY(0);opacity:.7}50%{transform:translateY(-6px);opacity:1}}
.pet-body{flex:1;min-width:180px}
.pet-body b{color:#365342}
.pet-body p{margin:.2rem 0;color:#5a6b60;font-size:.9rem}
.pet-stats{display:flex;gap:.6rem;flex-wrap:wrap;font-size:.85rem;color:#436c58}
.pet-stats span{background:#f2f8ef;border-radius:99px;padding:.15rem .6rem}
.petbar{height:8px;background:#e6efe6;border-radius:99px;margin-top:.45rem;overflow:hidden;max-width:260px}
.petbar b{display:block;height:100%;background:linear-gradient(90deg,#79a88a,#e2a65a);border-radius:99px;transition:width .5s}
.pet-actions{display:flex;flex-direction:column;gap:.4rem}
.island-overlay{position:fixed;inset:0;background:rgba(40,60,50,.45);display:flex;align-items:center;justify-content:center;z-index:50;padding:1rem}
.ov-panel{background:#fff;border-radius:16px;padding:1.4rem 1.6rem;max-width:420px;width:100%;max-height:80vh;overflow:auto}
.ov-panel h2{margin:.3rem 0 .8rem}
.shop-row{display:flex;align-items:center;gap:.7rem;padding:.55rem 0;border-bottom:1px dashed #e3e8e2}
.shop-row:last-of-type{border-bottom:0}
.shop-emoji{font-size:1.5rem}
.shop-row b{flex:1}
.shop-price{color:#436c58;font-weight:700}
.al-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;margin:.8rem 0}
.al-cell{background:#f2f8ef;border-radius:10px;padding:.7rem .4rem;text-align:center}
.al-cell i{font-style:normal;font-size:1.6rem;display:block}
.al-cell b{font-size:.78rem;color:#5a6b60}
.al-cell.got{background:#fff8df;box-shadow:0 0 0 1px #e2a65a inset}
.al-cell:not(.got){opacity:.5}
.chest-ov{flex-direction:column}
.chest-box{background:#fff;border-radius:18px;padding:2rem 2.6rem;text-align:center;cursor:pointer;box-shadow:0 12px 40px rgba(40,60,50,.25)}
.chest-icon{font-size:4rem;animation:bounce 1s infinite}
.chest-open{animation:none}
@keyframes bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.chest-hint{color:#5a6b60;margin:.6rem 0 0}
.chest-got{font-size:1.3rem;font-weight:800;color:#436c58;margin:.6rem 0 0}
.decor-item{position:absolute;font-size:1.6rem;filter:drop-shadow(0 2px 2px rgba(0,0,0,.15));pointer-events:none;transform:translate(-50%,-50%)}
.combo-tag{display:inline-block;background:#436c58;color:#fff;font-weight:800;font-size:.8rem;border-radius:99px;padding:.1rem .55rem;margin:0 .3rem;animation:pop .3s}
.combo-tag.c3{background:#e2a65a}
.combo-tag.c4{background:#c96f4a}
.combo-tag.c5{background:#8d5bb8}
@keyframes pop{0%{transform:scale(.5)}70%{transform:scale(1.25)}100%{transform:scale(1)}}


/* ===== v6 童趣化 + 信息收拢 ===== */
.morebox{background:#fff;border:1px dashed #cfdccb;border-radius:18px;padding:2px 16px;margin-top:16px}
.morebox summary{cursor:pointer;font-weight:700;color:#436c58;padding:11px 4px;font-size:15px;list-style:none;user-select:none}
.morebox summary::-webkit-details-marker{display:none}
.morebox summary::before{content:'▸'}
.morebox[open] summary::before{content:'▾'}
.morebox summary:hover{color:#24553f}
.morebox[open]{padding-bottom:12px}
body.focus-mode .morebox{display:none}
.schip{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:7px;font-style:normal;font-size:12px;font-weight:800;color:#fff;margin-right:5px;flex-shrink:0;transform:translateY(-1px)}
.schip.m{background:#5b8fd9}.schip.c{background:#e08a4e}.schip.e{background:#3fa39f}.schip.r{background:#8d6bb8}
.today{border-radius:24px}
.today-item{animation:tin .38s ease both}
.today-item:nth-child(2){animation-delay:.05s}.today-item:nth-child(3){animation-delay:.1s}.today-item:nth-child(4){animation-delay:.15s}.today-item:nth-child(5){animation-delay:.2s}
@keyframes tin{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
.today-item .primary{border-radius:14px}
.zone,.mission,.today-item{transition:transform .22s,box-shadow .22s}
.zone:hover{transform:translateY(-4px) rotate(-.6deg);box-shadow:0 9px 20px rgba(50,105,86,.13)}
.mission:hover{transform:translateY(-3px);box-shadow:0 7px 15px rgba(50,105,86,.1)}
.clouds{animation:drift 9s ease-in-out infinite alternate}
@keyframes drift{from{transform:translateX(0)}to{transform:translateX(16px)}}
button.primary:active{transform:scale(.95)}
.hero{border-radius:30px}
.badge.on{animation:badgein .45s ease both}
@keyframes badgein{from{transform:scale(.6);opacity:0}to{transform:translateY(-2px);opacity:1}}
@media(prefers-reduced-motion:reduce){.today-item,.clouds,.badge.on,.zone,.mission{animation:none!important;transition:none!important}}


/* ===== v6b 单元页讲解动效（学科主题适配） ===== */
.lesson-head .eyebrow,.lesson-head h1,.lesson-head .mastery-tag,.lesson-head .tierline{animation:tin .4s ease both}
.lesson-head .phasebar{animation:tin .4s ease .07s both}
.lesson-head .phasewhy{animation:tin .4s ease .14s both}
.lesson-head .methodtag{animation:tin .4s ease .21s both}
.lesson-body .label{animation:tin .4s ease both}
.scene{display:flex;gap:12px;align-items:flex-start;border-left:4px solid var(--sc,#8caf8e);border-radius:14px;padding:14px 16px;animation:tin .45s ease .06s both;transition:box-shadow .2s}
.scene:hover{box-shadow:0 5px 14px rgba(50,105,86,.09)}
.scene.subj-m{--sc:#5b8fd9;background:#f2f7fd}
.scene.subj-c{--sc:#e08a4e;background:#fdf5ec}
.scene.subj-e{--sc:#3fa39f;background:#eef7f6}
.scene-avatar{font-size:2rem;line-height:1.15;flex-shrink:0;animation:bob 3s ease-in-out infinite}
.scene-text{flex:1;white-space:pre-line;min-width:0}
details .principle{background-image:linear-gradient(120deg,#ffe3a0,#fff3cf);background-repeat:no-repeat;background-position:0 74%;background-size:100% 46%;padding:0 .25em;border-radius:3px}
details[open] .principle{animation:brush .9s ease .15s both}
@keyframes brush{from{background-size:0% 46%}to{background-size:100% 46%}}
details[open] .worked{animation:tin .5s ease .3s both}
.choices .choice{animation:tin .35s ease both}
.choices .choice:nth-child(2){animation-delay:.07s}
.choices .choice:nth-child(3){animation-delay:.14s}
.choices .choice:nth-child(4){animation-delay:.21s}
.choice.ok{border-color:#326956;background:#e8f4ea;animation:okpop .5s ease!important}
@keyframes okpop{0%{transform:scale(1)}40%{transform:scale(1.045)}62%{transform:scale(.985)}100%{transform:scale(1)}}
.choice.retry{animation:shake .45s ease}
@keyframes shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-7px)}40%{transform:translateX(7px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
.phasebar span.active{animation:pulse 2.6s ease-in-out infinite}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(50,105,86,.32)}55%{box-shadow:0 0 0 7px rgba(50,105,86,0)}}
.answerarea .questiontitle{animation:tin .4s ease both}
.feedback>*{animation:tin .3s ease both}
.recap .recap-row{animation:tin .4s ease both}
.recap .recap-row:nth-of-type(2){animation-delay:.09s}
.recap .recap-row:nth-of-type(3){animation-delay:.18s}
.recap .bridge-note{animation:tin .4s ease .27s both}
.recap .challenge-note{animation:tin .4s ease .34s both}
@media(prefers-reduced-motion:reduce){.lesson-head *,.scene,.scene-avatar,.principle,.worked,.choices .choice,.choice.ok,.choice.retry,.phasebar span.active,.answerarea .questiontitle,.feedback>*,.recap *{animation:none!important;transition:none!important}details[open] .principle{background-size:100% 46%}}


/* ===== v7 打卡日历 / 进度环 / 收工结算 ===== */
.today-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dayring{width:44px;height:44px;border-radius:50%;background:conic-gradient(var(--green) var(--p),#e7eee1 0);display:grid;place-items:center;flex-shrink:0;position:relative;animation:ringin .6s ease both}
.dayring::before{content:'';position:absolute;inset:5px;border-radius:50%;background:#fff}
.dayring span{position:relative;font-size:12px;font-weight:800;color:var(--green)}
@keyframes ringin{from{transform:rotate(-40deg);opacity:0}to{transform:none;opacity:1}}
.habitstrip{display:flex;gap:18px;align-items:center;justify-content:space-between;background:#fff;border:1px solid #dce5d8;border-radius:18px;padding:14px 18px;margin-top:12px;flex-wrap:wrap}
.habitmeta{min-width:190px;flex:1}
.habitmeta h2{font-size:19px;margin:3px 0}
.habitmeta .mini{margin:0}
.mile{font-size:12px;color:#a6761f;background:#fdf2d6;border-radius:99px;padding:2px 9px;vertical-align:middle}
.hcells{display:flex;gap:5px;flex-wrap:wrap}
.hcell{width:30px;height:42px;border-radius:9px;background:#f3f5ef;display:grid;place-items:center;line-height:1;text-align:center;color:#9aa89b}
.hcell i{font-style:normal;font-size:9px;margin-top:4px}
.hcell b{font-size:13px;margin-bottom:5px}
.hcell.on{background:#e7f2e4;color:#326956}
.hcell.now{box-shadow:0 0 0 2px #e2a65a inset}
.hcell.on.now{background:#fff4d8;color:#a6761f;animation:pop .35s ease}
.settle-ov{position:fixed;inset:0;background:rgba(40,60,50,.5);display:grid;place-items:center;z-index:60;padding:1rem;animation:fadein .25s ease}
@keyframes fadein{from{opacity:0}to{opacity:1}}
.settle-card{background:#fffefa;border-radius:24px;padding:26px 28px;max-width:440px;width:100%;text-align:center;box-shadow:0 18px 50px rgba(30,55,45,.28);position:relative}
.settle-emoji{font-size:3.4rem;animation:bounce 1.2s ease infinite}
.settle-card h2{font-size:22px;margin:6px 0}
.settle-sub{color:#326956;font-weight:700}
.settle-card p{color:#5a6b60;font-size:14px}
.settle-card .actions{justify-content:center;display:flex;margin-top:16px}
@media(max-width:700px){.habitstrip{padding:12px 13px;gap:10px}.hcell{width:26px;height:38px}.hcell b{font-size:11px}.settle-card{padding:20px 18px}.settle-card .actions{flex-direction:column}}
@media(prefers-reduced-motion:reduce){.dayring,.hcell.on.now,.settle-ov,.settle-emoji{animation:none!important;transition:none!important}}
