:root{--pink:#f58bb3;--pink2:#ffdce9;--rose:#bc416f;--ink:#493443;--muted:#85717e;--cream:#fffafc;--lav:#f4effb;--mint:#e6f5ef;--yellow:#fff3cf;--shadow:0 9px 30px #d983a514;--line:#f3e4eb}
*{box-sizing:border-box}body{margin:0;background:#fff7fa;color:var(--ink);font:15px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft Yahei",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ce719a;outline-offset:3px}button{color:inherit}h1,h2,h3,h4,p{overflow-wrap:anywhere}h3{font-size:17px}h4{font-size:16px}h2,h3,h4{line-height:1.5}button{touch-action:manipulation}[hidden]{display:none!important}
.app{display:flex;min-height:100vh;max-width:1440px;margin:auto;background:var(--cream)}.rail{width:86px;flex-shrink:0;background:#fff0f6;border-right:1px solid #f5dce7;padding:24px 12px;display:flex;flex-direction:column;align-items:center;gap:17px;position:sticky;top:0;height:100vh;height:100dvh}.brand{border:0;flex-shrink:0;width:54px;height:54px;aspect-ratio:1;border-radius:18px;background:linear-gradient(145deg,#ffb7d0,#ee76a7);display:grid;place-items:center;font-size:28px;line-height:1;padding:0;box-shadow:0 8px 18px #ee76a733;margin-bottom:8px;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}.nav{width:100%;display:flex;flex-direction:column;align-items:center;gap:5px}.nav button{border:0;background:transparent;color:#846a78;width:60px;min-height:60px;padding:6px 2px;border-radius:15px;font-size:12px;line-height:1.4}.nav button span{display:block;font-size:22px;margin-bottom:3px}.nav button.active,.nav button:hover{background:#fff;color:var(--rose);box-shadow:0 5px 14px #e996b524}.profile{margin-top:auto;text-align:center;font-size:11px;color:var(--muted);background:none;border:0;padding:8px 0}.profile span,.profile small{display:block}.profile small{font-size:10px}.avatar{width:38px;height:38px;border-radius:50%;margin:0 auto 3px;background:#ffd4e3;display:grid!important;place-items:center;font-size:22px}
main{flex:1;min-width:0;padding:32px 40px}.top{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:25px}.eyebrow{color:var(--rose);font-weight:700;font-size:13px}.title{font-size:28px;margin:5px 0 3px;letter-spacing:-.5px}.sub{color:var(--muted);font-size:14px}.balance{display:flex;align-items:center;gap:9px;background:white;border:1px solid var(--line);border-radius:16px;padding:10px 16px;box-shadow:var(--shadow);white-space:nowrap}.balance b{font-size:23px;color:var(--rose)}.balance span:last-child{font-size:12px;color:var(--muted)}
.grid{display:grid;grid-template-columns:1.15fr .85fr;gap:22px;align-items:start}.stack{display:flex;flex-direction:column;gap:22px;min-width:0}.card{background:#fff;border:1px solid #f8e8ee;border-radius:24px;padding:22px;box-shadow:var(--shadow);min-width:0}.hero{background:linear-gradient(120deg,#ffe7f0,#fff7e9);position:relative;overflow:hidden;min-height:236px;padding-right:125px}.hero h2{font-size:22px;margin:12px 0 8px}.hero p{color:#826673;margin:8px 0 16px;font-size:14px}.hero-cat{position:absolute;right:15px;bottom:34px;text-align:center}.hero-cat .cat{font-size:78px;line-height:1.2;filter:drop-shadow(0 6px 5px #d2879322)}.hero-cat small{display:block;color:#946b79;font-size:11px}.pill{display:inline-flex;align-items:center;gap:6px;background:#ffffffb8;border-radius:99px;padding:5px 11px;color:var(--rose);font-size:12px;font-weight:700}.section-title{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:14px;flex-wrap:wrap}.section-title h3{margin:0}.text-btn{border:0;background:none;color:var(--rose);font-size:13px;padding:7px 0;min-height:32px}.task{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #f5edf0}.task:last-child{border-bottom:0}.check{width:30px;height:30px;flex-shrink:0;border:2px solid #efa2bf;background:white;border-radius:10px;display:grid;place-items:center;color:#fff;font-size:16px;padding:0}.done .check{background:var(--pink);border-color:var(--pink)}.task-main{flex:1;min-width:0}.task-name{font-weight:650;overflow-wrap:anywhere}.done .task-name{color:#94818d}.tag{display:inline-block;font-size:11px;border-radius:7px;padding:1px 7px;background:#ffedf4;color:var(--rose);margin-top:4px}.points{font-weight:700;color:#a66b16;font-size:13px;white-space:nowrap}.tiny{font-size:12px;color:var(--muted)}.reading{background:var(--lav)}.book{display:flex;gap:14px;align-items:center}.book-cover{flex-shrink:0;width:55px;height:74px;border-radius:6px 12px 12px 6px;background:linear-gradient(150deg,#ffb3c9,#e97aa4);box-shadow:inset 5px 0 0 #ffffff44;display:grid;place-items:center;font-size:29px}.book-info{flex:1;min-width:0}.progress{height:7px;background:#e8deed;border-radius:10px;margin-top:12px;overflow:hidden}.progress i{display:block;height:100%;background:#c09bdf;border-radius:10px;transition:width .3s}.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.feature h4{margin:7px 0 3px}.feature p{margin:0;color:var(--muted);font-size:13px}.english{background:#fff2d8}.game{background:var(--mint)}.feature-icon{font-size:30px}.reward{background:#fff0f6}.reward-row{display:flex;align-items:center;gap:19px}.wheel-wrap{position:relative;flex-shrink:0}.wheel-pointer{position:absolute;z-index:1;top:-12px;left:50%;transform:translateX(-50%);color:var(--rose);font-size:24px}.wheel{width:96px;height:96px;border-radius:50%;background:conic-gradient(#f7a5c2 0 25%,#ffd985 25% 50%,#bde7d7 50% 75%,#cdb7ed 75%);border:7px solid white;box-shadow:0 4px 14px #df87aa33;display:grid;place-items:center;transition:transform 1.6s cubic-bezier(.18,.75,.16,1)}.wheel:after{content:'★';background:white;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:var(--rose)}.reward h4{margin:0 0 3px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;background:var(--rose);color:#fff;padding:9px 16px;min-height:42px;border-radius:12px;font-weight:650;font-size:14px;text-decoration:none}.btn.secondary{background:#fff0f6;color:var(--rose)}.btn.soft{background:#fff;color:var(--rose);border:1px solid #efd9e4}.btn.small{min-height:34px;font-size:12px;padding:5px 11px}.feature .btn,.reward .btn{margin-top:10px}.streak{display:flex;gap:6px;margin-top:13px;flex-wrap:wrap}.day{width:33px;min-height:43px;border-radius:10px;background:#ffffff9e;text-align:center;padding:3px;color:var(--muted);font-size:10px}.day b{display:block;font-size:15px;color:#987481}.day.checked{background:#ffd8e7;color:var(--rose)}.day.today{box-shadow:inset 0 0 0 1.5px var(--rose)}.day.today b{color:var(--rose)}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}.tabs{display:flex;gap:7px;flex-wrap:wrap}.chip{background:#fff;border:1px solid var(--line);padding:7px 13px;border-radius:11px;font-size:13px;min-height:38px}.chip.active{background:#fce4ee;border-color:#efb4cc;color:var(--rose)}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.metric{padding:15px 18px;background:#fff;border-radius:17px;border:1px solid var(--line)}.metric b{display:block;font-size:25px;color:var(--rose)}.metric span{font-size:12px;color:var(--muted)}.empty{padding:25px 10px;text-align:center;color:var(--muted)}.empty span{font-size:36px;display:block;margin-bottom:7px}.book-list{display:grid;gap:16px}.book-actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}.log-row{padding:11px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.log-row:last-child{border:0}.log-row strong{display:block}.log-row small{color:var(--muted)}.plus{color:#45826c}.minus{color:#bb587a}.vocab-card{text-align:center;background:linear-gradient(150deg,#fff2d8,#fffaf1);padding:32px}.vocab-emoji{font-size:80px;line-height:1.4}.word{font-size:39px;letter-spacing:1px;font-weight:750;margin:5px 0}.translation{font-size:19px}.sentence{font-size:16px;margin:15px 0;color:#796d61}.center-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:20px}.word-list{display:flex;flex-wrap:wrap;gap:9px}.word-pill{background:#fff4d8;padding:7px 12px;border-radius:10px}.game-picker{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.game-picker .card{cursor:pointer;border:2px solid transparent}.game-picker .selected{border-color:#e9aac4}.game-picker h3{margin:6px 0}.board-area{max-width:440px;margin:20px auto}.sudoku{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));aspect-ratio:1;border:2px solid #b67793;border-radius:12px;overflow:hidden;background:#b67793;gap:1px}.sudoku-cell{display:grid;place-items:center;background:#fff;aspect-ratio:1;min-width:0;min-height:0}.sudoku-cell:nth-child(6n+3){border-right:2px solid #b67793}.sudoku-cell:nth-child(n+7):nth-child(-n+12),.sudoku-cell:nth-child(n+19):nth-child(-n+24){border-bottom:2px solid #b67793}.sudoku-cell span,.sudoku-cell input{font-size:28px;line-height:1;font-weight:650;text-align:center}.sudoku-cell span{color:#8b6580}.sudoku-cell input{width:100%;height:100%;min-width:0;min-height:0;margin:0;line-height:1;border:0;background:#fff8fb;color:var(--rose);border-radius:0;padding:0}.sudoku-cell input:focus{outline:3px solid #e193b7;outline-offset:-3px}.sudoku-cell input.invalid{background:#ffe1e1}.gomoku{display:grid;grid-template-columns:repeat(11,1fr);background:#f8e3c4;padding:10px;border-radius:14px;border:1px solid #dfc3a0}.gomoku button{aspect-ratio:1;min-width:0;border:0;background:linear-gradient(#bb986866,#bb986866) center/1px 100% no-repeat,linear-gradient(90deg,#bb986866,#bb986866) center/100% 1px no-repeat;padding:3px;display:grid;place-items:center}.stone{width:88%;height:88%;border-radius:50%;box-shadow:0 2px 3px #54372f33}.stone.black{background:radial-gradient(circle at 30% 25%,#62616a,#28212b 70%)}.stone.white{background:radial-gradient(circle at 30% 25%,#fff,#e9dfe3 70%);border:1px solid #c9b9b5}.game-status{text-align:center;color:var(--rose);font-weight:650;min-height:27px}.prize-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.prize{background:#ffffffa8;padding:12px;border-radius:13px}.prize span{display:block;font-size:12px;color:var(--muted)}.shop-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.shop-row:last-child{border-bottom:0}.cat-room{text-align:center;background:linear-gradient(#fff0f6,#fff8ed)}.cat-large{font-size:130px;line-height:1.4;display:inline-block;margin:10px auto}.cat-large.fed{animation:hop .5s ease}.cat-room h2{margin:0}.cat-room .progress{max-width:290px;margin:15px auto;background:#f1dce5}.cat-room .progress i{background:var(--pink)}.notice{padding:13px 16px;border-radius:13px;background:#fff4dd;color:#806137;font-size:13px;margin-bottom:18px}.footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#967b8b;font-size:11px;padding-top:28px}.footer .text-btn{font-size:11px}.icon-btn{border:0;background:#fff1f6;border-radius:10px;color:var(--rose);width:34px;height:34px;padding:0;font-size:20px;flex-shrink:0}.remove-btn{font-size:16px;background:none;color:#a88a99}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid .full{grid-column:1/-1}label{display:block;font-size:13px;font-weight:650}input,select,textarea{width:100%;border:1px solid #e9d6df;background:#fff;border-radius:11px;padding:10px 11px;margin-top:6px;min-height:43px;color:var(--ink)}textarea{resize:vertical;min-height:80px}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.form-error{font-size:13px;color:#b6335c;min-height:20px;margin-top:10px}.settings-row{padding:20px 0;border-bottom:1px solid var(--line)}.settings-row:first-child{padding-top:0}.settings-row:last-child{padding-bottom:0;border:0}.settings-row h3{margin:0 0 6px}.settings-row p{margin:5px 0 12px}.inline-form{display:flex;align-items:end;gap:12px;max-width:420px}.inline-form label{flex:1;min-width:0}dialog{border:1px solid #f3dce6;border-radius:24px;padding:24px;color:var(--ink);background:#fffafc;width:min(480px,calc(100% - 28px));max-height:90dvh;box-shadow:0 24px 90px #69394c33}dialog::backdrop{background:#4b2d4355;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.dialog-head h2{margin:0;font-size:20px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#6b4058;color:#fff;padding:12px 20px;border-radius:14px;box-shadow:var(--shadow);max-width:calc(100% - 30px);z-index:10;text-align:center;font-size:14px;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}#storage-warning{background:#ffe4e7;color:#99364d;padding:13px;border-radius:13px;margin-bottom:15px}
@keyframes hop{50%{transform:translateY(-15px) rotate(-5deg)}}@media(min-width:1200px){.hero{min-height:244px}}@media(max-width:1000px){main{padding:26px 25px}.grid{grid-template-columns:1fr 1fr}.card{padding:18px}.hero{padding-right:95px}.hero-cat .cat{font-size:62px}.hero-cat{right:8px}.hero h2{font-size:20px}.reward-row{gap:12px}.wheel{width:82px;height:82px}}@media(max-width:800px){main{padding:24px 20px}.grid{grid-template-columns:1fr}.hero{padding-right:120px}.hero-cat .cat{font-size:85px}.hero-cat{right:20px}.hero{min-height:225px}.mini-grid{gap:15px}.title{font-size:25px}.balance{padding:8px 12px}.balance span:last-child{display:none}.game-picker .card{padding:15px}}@media(max-width:500px){.rail{width:64px;padding:17px 4px;gap:10px}.brand{width:43px;height:43px;font-size:25px;border-radius:15px}.nav{gap:4px}.nav button{width:53px;min-height:55px;font-size:11px}.nav button span{font-size:20px}.profile{padding:4px 0}.avatar{width:32px;height:32px;font-size:19px}.profile small{font-size:9px}main{padding:21px 12px}.top{align-items:flex-start;margin-bottom:19px;gap:6px}.title{font-size:21px}.sub{font-size:12px}.eyebrow{font-size:11px}.balance{gap:4px;padding:6px 8px;border-radius:12px}.balance b{font-size:19px}.balance>span:first-child{font-size:14px}.card{padding:17px;border-radius:19px}.stack,.grid{gap:16px}.hero{padding-right:70px;min-height:225px}.hero h2{font-size:18px}.hero-cat{right:6px;bottom:23px}.hero-cat .cat{font-size:56px}.hero-cat small{font-size:9px}.hero p{font-size:12px}.pill{font-size:10px;padding:5px 8px}.day{width:27px;font-size:9px}.day b{font-size:13px}.streak{gap:4px}.mini-grid{gap:10px}.feature{padding:13px}.feature .btn{padding:8px 10px;font-size:12px}.feature h4{font-size:15px}.task{gap:9px}.task-name{font-size:13px}.task .points{font-size:11px}.section-title h3{font-size:16px}.reward h4{font-size:14px}.reward-row{gap:13px}.wheel{width:78px;height:78px}.metrics{gap:7px}.metric{padding:12px 10px}.metric b{font-size:22px}.metric span{font-size:11px}.form-grid{grid-template-columns:1fr}.game-picker{gap:10px}.game-picker .card{padding:12px}.game-picker h3{font-size:15px}.game-picker p{font-size:11px}.form-grid .full{grid-column:auto}.vocab-card{padding:22px 12px}.vocab-emoji{font-size:65px}.word{font-size:33px}.prize-list{grid-template-columns:1fr}.footer{font-size:10px;padding-top:22px}.footer span{display:block}.inline-form{flex-wrap:wrap}.inline-form label{flex-basis:100%}.sudoku-cell span,.sudoku-cell input{font-size:24px}.cat-large{font-size:110px}input,select,textarea{font-size:16px}.check{width:29px;height:29px}.book-cover{width:43px;height:62px;font-size:24px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:500px){.hero{padding-right:17px}.hero h2,.hero p{max-width:calc(100% - 78px)}.hero-cat{top:72px;right:8px;bottom:auto}.hero-cat .text-btn{display:none}.hero .streak{position:relative}.top>div{min-width:0}.balance{flex-shrink:0}.rail{overflow-y:auto;scrollbar-width:none}.rail::-webkit-scrollbar{display:none}}
.game-picker{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.game-picker .card{padding:16px 12px;text-align:left}.game-picker h3{font-size:16px}.game-picker .sub{font-size:12px;margin:4px 0}.game-intro .toolbar{margin-bottom:8px}.game-intro h3{margin:0}.game-intro p{margin:8px 0}.game-feedback{color:#9a3b66;background:#fff1f7;padding:10px 13px;border-radius:12px;font-size:13px;margin-top:13px}.game-recent{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-top:13px}.game-history-pill{background:#faf3f7;border-radius:9px;padding:5px 9px;font-size:11px}.game-history-pill small{color:var(--muted);font-size:10px}.imported-games{margin-top:16px;border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#fffafc;box-shadow:var(--shadow)}.imported-games iframe{display:block;width:100%;border:0;background:#fffafc;min-height:250px}.imported-games:fullscreen{border:0;border-radius:0;overflow:auto;padding:14px 0}.imported-games:fullscreen iframe{max-width:1050px;margin:auto}.game-intro .tabs .btn{min-height:36px}.game-picker .feature-icon{font-size:27px}
@media(max-width:900px){.game-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.game-picker{gap:9px}.game-picker .card{padding:13px 10px}.game-picker h3{font-size:14px}.game-picker .sub{font-size:10px}.game-intro .tabs{gap:6px}.game-intro .tabs .btn{padding:7px 10px;font-size:11px}.game-feedback{font-size:12px}.imported-games{border-radius:17px}}
.fullscreen-close{display:none}.imported-games:fullscreen .fullscreen-close{display:block;position:fixed;top:12px;right:14px;z-index:100;box-shadow:0 3px 16px #79465b33}
.rail{overflow-y:auto;scrollbar-width:thin}.nav,.profile{flex-shrink:0}.nav-progress{display:block;position:relative;isolation:isolate;overflow:hidden;width:46px;margin:4px auto 0;padding:2px 0 4px;border-radius:7px;background:#ffe3ee;color:#a03963;font-size:11px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1.3}.nav-progress::after{content:'';position:absolute;left:0;bottom:0;width:var(--nav-progress,0%);height:3px;background:#d76d99;border-radius:3px;transition:width .25s}.nav-progress.complete{background:#e1f1e8;color:#356b51}.nav-progress.complete::after{background:#65a784}.task-name{white-space:pre-line}.edit-task{font-size:12px;min-height:30px}.homework-entry{margin-bottom:22px}.subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.subject-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-width:0;gap:7px;padding:20px;border:1px solid #f1cddd;border-radius:20px;background:linear-gradient(145deg,#fff,#fff0f6);box-shadow:var(--shadow)}.subject-card:hover{border-color:#d985aa;background:#fff1f7}.subject-icon{font-size:29px;line-height:1.3}.subject-card strong{font-size:19px;color:var(--rose)}.subject-hint{font-size:13px;color:var(--muted);overflow-wrap:anywhere;flex:1}.subject-count{font-size:12px;color:#977382;margin-top:5px}.subject-cta{font-size:13px;color:var(--rose);font-weight:650}.subject-picker{gap:9px}.subject-picker .subject-card{padding:15px 10px}.subject-picker .subject-cta{font-size:12px}.daily-reading{margin-bottom:20px;background:linear-gradient(110deg,#fff0f6,#f4effb)}.reading-goal .section-title{margin-bottom:5px}.reading-goal strong{color:var(--rose);font-size:24px;white-space:nowrap}.reading-goal strong small{font-size:12px;font-weight:500}.reading-goal .progress{background:#eadce6;height:9px;margin-top:10px}.reading-goal .progress i{background:#e78fb2}.reading-goal.complete .progress i{background:#76b297}.reading-goal.complete strong{color:#397c5e}.reading-goal p{margin:9px 0 0}.card.reading>.reading-goal{border-bottom:1px solid #e5dbee;padding-bottom:16px;margin-bottom:18px}
@media(max-width:600px){.subject-grid:not(.subject-picker){grid-template-columns:1fr;gap:10px}.homework-entry .section-title{gap:5px}.subject-grid:not(.subject-picker) .subject-card{display:grid;grid-template-columns:32px 1fr auto;gap:3px 10px;padding:14px;border-radius:16px}.subject-grid:not(.subject-picker) .subject-icon{grid-row:1/3;align-self:center;font-size:25px}.subject-grid:not(.subject-picker) .subject-card strong{font-size:17px}.subject-grid:not(.subject-picker) .subject-hint{grid-column:2/-1;font-size:11px}.subject-grid:not(.subject-picker) .subject-count{grid-column:3;grid-row:1;font-size:10px;margin:0;align-self:center}.subject-grid:not(.subject-picker) .subject-cta{grid-column:2/-1;font-size:12px;margin-top:5px}.subject-picker .subject-card{padding:12px 8px}.subject-picker strong{font-size:17px}.subject-picker .subject-cta{font-size:10px}.reading-goal strong{font-size:21px}.nav-progress{font-size:10px;width:42px}}
/* 首页统一图卡与三类作业清单。 */
.home-welcome{margin-bottom:22px;padding-right:180px;min-height:225px}.home-welcome .hero-cat{right:40px}.home-welcome h2{font-size:25px}.home-welcome p{max-width:580px}.today-modules>.section-title{margin-bottom:20px}.today-modules>.section-title p{margin:5px 0 0}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.module-card{display:flex;flex-direction:column;min-width:0;text-align:left;border:1px solid #f2dce7;border-radius:20px;background:#fffafc;padding:16px;transition:transform .18s,box-shadow .18s}.module-card:hover{transform:translateY(-3px);box-shadow:0 9px 22px #cf719d22;border-color:#e6a9c4}.module-art{height:112px;width:100%;position:relative;overflow:hidden;border-radius:14px;background:linear-gradient(135deg,#ffe0ec,#fff0f6);display:grid;place-items:center;margin-bottom:14px}.module-art>span{position:relative;z-index:1;font-size:56px;line-height:1.2;filter:drop-shadow(0 5px 2px #aa5c7f18);transform:rotate(-7deg)}.module-art i{position:absolute;font-style:normal}.art-dot{border-radius:50%;background:#ffffff85}.art-dot-one{width:95px;height:95px;right:-12px;top:-20px}.art-dot-two{width:47px;height:47px;left:15px;bottom:-12px}.art-spark{left:24%;top:17%;color:#c778a0;font-size:21px}.module-reading .module-art{background:linear-gradient(135deg,#e7ddfa,#f5edff)}.module-english .module-art{background:linear-gradient(135deg,#fce5b5,#fff3da)}.module-games .module-art{background:linear-gradient(135deg,#d5ede4,#effaf3)}.module-rewards .module-art{background:linear-gradient(135deg,#ffdbe5,#ffefdf)}.module-cat .module-art{background:linear-gradient(135deg,#f2ddf4,#ffecf4)}.module-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.module-heading>strong{font-size:17px;color:#70445b}.module-progress{font-size:12px;font-weight:750;color:var(--rose);padding:3px 8px;background:#fce9f1;border-radius:9px;white-space:nowrap}.module-card.is-complete .module-progress{background:#e1f0e6;color:#357354}.module-hint{font-size:12px;color:var(--muted);margin:6px 0 13px;overflow-wrap:anywhere}.module-link{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--rose);font-weight:650;margin-top:auto;padding-top:9px;border-top:1px dashed #edd7e1}.module-link>span{font-size:18px;line-height:1}.homework-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(120deg,#ffe9f1,#fff6e9);margin-bottom:20px}.homework-summary h2{margin:6px 0;font-size:22px}.homework-summary p{margin:0}.homework-total{font-size:42px;font-variant-numeric:tabular-nums;color:var(--rose);white-space:nowrap}.subject-grid .subject-card{position:relative;padding-right:42px;min-height:205px}.subject-state{position:absolute;right:15px;top:17px;width:27px;height:27px;display:grid;place-items:center;border-radius:50%;color:#bc92a7;background:#f9e8f0;font-size:20px}.subject-card.subject-complete{border-color:#c3e1d1;background:linear-gradient(135deg,#f5fff8,#eaf5ee)}.subject-complete .subject-state{background:#70a88d;color:white}.subject-complete strong,.subject-complete .subject-cta{color:#3d795e}.homework-history{margin-top:6px}.homework-history>summary{font-size:13px;font-weight:650;color:var(--muted);cursor:pointer}.homework-history .tabs{margin:16px 0 6px}.homework-history .task{font-size:13px}.subject-back{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}.subject-detail{max-width:950px;margin:auto}.subject-detail .section-title{margin-bottom:8px}.subject-detail .section-title p{margin:5px 0}.subject-completion{font-size:12px;font-weight:550;display:inline-block;margin-left:8px;background:#faeaf2;border-radius:9px;padding:4px 9px;color:#a46a87}.subject-completion.complete{background:#e4f2e9;color:#3b7a5b}.numbered-task{gap:18px;padding:17px 4px}.task-number{display:inline-block;font-size:11px;background:#fff0f6;color:#b15880;border-radius:7px;padding:2px 8px;margin-bottom:5px}.numbered-task .task-name{font-size:15px}.assignment-check{width:34px;height:34px;margin-left:auto;font-size:20px}.assignment-check:disabled{opacity:1}.assignment-tools{display:flex;gap:16px;margin-top:4px}.assignment-tools .text-btn{font-size:11px;min-height:26px;padding:3px 0}.assignment-empty{padding:21px 0;color:var(--muted);font-size:13px}.homework-form-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 13px;flex-wrap:wrap}.homework-form-heading h4{margin:0;font-size:15px}.draft-list{display:flex;flex-direction:column;gap:13px}.draft-row{display:grid;grid-template-columns:62px minmax(0,1fr) 28px;gap:10px;align-items:center}.draft-row label{color:#a45a7d;font-size:12px}.draft-row textarea{min-height:66px;margin:0;font-size:14px}.draft-row .remove-btn{width:27px;height:30px}.homework-form-actions{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}#homework-form>.tiny{margin-bottom:0}
@media(max-width:800px){.module-grid{gap:13px;grid-template-columns:repeat(2,minmax(0,1fr))}.home-welcome{padding-right:135px}.home-welcome .hero-cat{right:16px}.home-welcome h2{font-size:22px}.module-art{height:100px}.module-heading>strong{font-size:15px}}
@media(max-width:600px){.subject-grid:not(.subject-picker) .subject-card{display:flex;min-height:165px;padding:17px 44px 17px 18px;gap:5px}.subject-grid:not(.subject-picker) .subject-cta{margin-top:5px}.subject-grid:not(.subject-picker) .subject-count{margin-top:4px}.subject-state{top:16px;right:14px}.homework-summary{gap:10px;padding:17px}.homework-summary h2{font-size:18px}.homework-total{font-size:32px}.subject-completion{margin:7px 0 0;display:block;width:fit-content}.draft-row{grid-template-columns:1fr 28px;gap:6px}.draft-row label{grid-column:1;grid-row:1}.draft-row textarea{grid-column:1/-1;grid-row:2;font-size:16px}.draft-row .remove-btn{grid-column:2;grid-row:1}.subject-detail .section-title h3{font-size:18px}.numbered-task .task-name{font-size:14px}}
@media(max-width:500px){.home-welcome{padding-right:17px;min-height:225px}.home-welcome h2{font-size:18px}.home-welcome .hero-cat{right:7px}.module-grid{gap:10px}.today-modules{padding:14px 12px}.today-modules>.section-title{margin-bottom:14px}.module-card{padding:10px;border-radius:15px}.module-art{height:82px;border-radius:10px;margin-bottom:10px}.module-art>span{font-size:43px}.art-spark{left:13%;top:8%;font-size:15px}.module-heading{gap:5px}.module-heading>strong{font-size:13px}.module-progress{font-size:10px;padding:2px 5px}.module-hint{font-size:10px;margin:6px 0 9px}.module-link{font-size:10px;padding-top:6px}.module-link>span{font-size:15px}.homework-form-actions .btn{font-size:12px;padding:9px 11px}}
.trial-settings{margin-bottom:20px}.pwa-help{font-size:13px;line-height:1.8;margin-top:14px;padding:12px 16px;background:#fff0f6;border-radius:13px}.pwa-help p{margin:6px 0}#pwa-update-banner .text-btn{margin-left:8px}body{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
/* 简版奖励：左侧存钱罐，右侧三档兑换；只保留目标和每日转盘。 */
.reward-hero{display:grid;grid-template-columns:.65fr 1.35fr;gap:26px;align-items:center;margin-bottom:20px;padding:25px 28px;background:linear-gradient(120deg,#ffe5ef,#fff5e7)}
.star-wallet,.exchange-panel{min-width:0}.star-total{font-size:54px;font-weight:800;line-height:1.3;color:var(--rose);letter-spacing:-1px;margin-top:9px;overflow-wrap:anywhere}.star-total>span{font-size:35px}.star-wallet p{font-size:12px;color:#946b7f;margin:6px 0 0}.exchange-panel{background:#ffffffa0;border-radius:18px;padding:17px}.exchange-panel>h3{margin:0 0 12px;font-size:16px}.exchange-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.exchange-option{min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;padding:12px 8px;background:#fffafd;border:1px solid #f1dce5;border-radius:14px}.exchange-icon{font-size:28px;line-height:1.4}.exchange-option h4{font-size:13px;margin:7px 0 4px}.exchange-cost{font-size:25px;font-weight:750;color:var(--rose);margin-top:auto;white-space:nowrap}.exchange-cost small{font-size:10px;font-weight:500}.exchange-option .btn{margin-top:8px;max-width:100%;font-size:11px}.exchange-option .btn:disabled{opacity:1;background:#f1e1e8;color:#987286}
.daily-goals{margin-bottom:20px}.goal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.goal-tile{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:7px 8px;text-align:left;min-width:0;border:1px solid #f0dce5;border-radius:15px;background:#fff9fc;padding:14px}.goal-tile:hover{border-color:#dc8eb0}.goal-icon{font-size:21px}.goal-tile strong{font-size:14px}.goal-stars{grid-column:1/-1;font-size:22px;font-weight:750;color:var(--rose)}.goal-tile small{grid-column:1/-1;font-size:11px;color:var(--muted);overflow-wrap:anywhere}.goal-tile .progress{grid-column:1/-1;width:100%;height:5px;margin:3px 0 0;background:#f2dfe8}.goal-tile .progress i{background:#e593b7}.goal-tile.achieved{background:#f0f9f4;border-color:#cee5d7}.goal-tile.achieved .goal-icon{background:#76ad90;color:#fff;border-radius:50%;font-size:15px;width:25px;height:25px;text-align:center;line-height:25px}.goal-tile.achieved .goal-stars{color:#46836a}.goal-tile.achieved .progress i{background:#80b49a}.goal-tile.unassigned{background:#faf7f9;border-style:dashed}.goal-tile.unassigned .goal-stars{color:#a9929e}.goal-note{font-size:12px;color:#a06c84;margin:13px 0 0}
.simple-spin{display:grid;grid-template-columns:1fr 1fr;gap:34px;background:linear-gradient(130deg,#fff4f9,#fffaf1)}.spin-visual{text-align:center;min-width:0}.spin-visual .section-title{text-align:left}.spin-stage{padding:19px 0 13px;display:flex;justify-content:center}.wheel{background:conic-gradient(#f4b8cd 0 60%,#ffe0a0 60% 80%,#bce4d3 80% 90%,#cbb6e8 90% 97.5%,#e69bc2 97.5% 100%)}.wheel-large .wheel{width:235px;height:235px;border-width:9px;position:relative;box-shadow:0 7px 24px #e7a3bc44}.wheel-large .wheel::after{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:44px;height:44px;font-size:22px;box-shadow:0 2px 5px #ab698622}.wheel-large .wheel-pointer{top:-19px;font-size:30px}.wheel-thanks,.wheel-food-one,.wheel-food-two{position:absolute;font-size:13px;font-weight:650;color:#875069}.wheel-thanks{left:52%;top:61%;transform:rotate(-18deg)}.wheel-food-one{left:13%;top:58%;transform:rotate(72deg)}.wheel-food-two{left:17%;top:23%;transform:rotate(126deg)}.spin-button{min-width:160px;background:linear-gradient(110deg,#c44f7e,#b33d6a)}.spin-result{font-size:12px;color:#9b6480;margin:11px 0 0}.spin-explanation{align-self:center;min-width:0}.spin-explanation h3{margin:5px 0 15px}.probability-list{display:flex;flex-direction:column;gap:7px}.probability-row{display:flex;align-items:center;gap:10px;padding:10px 13px;border:1px solid #f4dfe8;border-radius:12px;background:#ffffffbf;font-size:13px}.probability-row>span{font-size:21px}.probability-row strong{font-weight:600}.probability-row b{margin-left:auto;font-size:13px;color:var(--rose)}.spin-explanation>.tiny{margin-bottom:0}
@media(max-width:1000px){.reward-hero{grid-template-columns:1fr;gap:18px}.star-wallet{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.star-wallet .star-total{margin:0}.star-wallet>p{margin:0}.exchange-panel{padding:16px}.simple-spin{gap:20px}}
@media(max-width:800px){.goal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.simple-spin{grid-template-columns:1fr}.spin-explanation{max-width:500px;width:100%;margin:auto}.spin-explanation h3{font-size:16px}.spin-explanation>.eyebrow{font-size:12px}.star-wallet .star-total{font-size:44px}.star-wallet .star-total>span{font-size:30px}}
@media(max-width:500px){.reward-hero{padding:18px 15px;border-radius:19px;gap:15px}.star-wallet{display:block}.star-wallet .star-total{font-size:43px;margin-top:5px}.star-wallet p{font-size:11px}.exchange-panel{padding:12px 9px;border-radius:14px}.exchange-panel>h3{font-size:14px}.exchange-grid{gap:6px}.exchange-option{padding:10px 4px;border-radius:11px}.exchange-icon{font-size:24px}.exchange-option h4{font-size:11px}.exchange-cost{font-size:24px}.exchange-cost small{display:block;font-size:9px}.exchange-option .btn{font-size:10px;padding:6px;min-height:34px;width:100%}.goal-grid{gap:9px}.goal-tile{padding:11px 9px;gap:6px}.goal-tile strong{font-size:13px}.goal-tile small{font-size:10px}.goal-note{font-size:11px}.simple-spin{gap:22px}.wheel-large .wheel{width:198px;height:198px}.wheel-thanks,.wheel-food-one,.wheel-food-two{font-size:11px}.probability-row{padding:9px 11px;font-size:12px}.probability-row b{font-size:12px}.spin-result{font-size:11px}}
.home-cat-link{border:0;background:transparent;color:inherit;cursor:pointer;padding:0;text-align:center}.home-cat-link:hover .cat{animation:hop .5s ease}.home-cat-link:focus-visible{outline:3px solid #e193b7;outline-offset:5px;border-radius:14px}.cat-stage{position:relative;display:inline-block}.pet-heart{position:absolute;right:-18px;top:5px;color:#ef79a5;font-size:34px;opacity:0;transform:scale(.4) rotate(-12deg);pointer-events:none}.cat-room.petted .pet-heart{animation:heart-pop .85s ease-out}@keyframes heart-pop{0%{opacity:0;transform:translate(0,12px) scale(.4) rotate(-12deg)}25%{opacity:1;transform:translate(4px,-4px) scale(1.15) rotate(8deg)}75%{opacity:1;transform:translate(10px,-22px) scale(1) rotate(12deg)}100%{opacity:0;transform:translate(14px,-36px) scale(.8) rotate(18deg)}}
