/* 小心愿大成长：参考用户提供的游戏化学习界面，保留业务表单的清晰度。 */
:root{
  --canvas:#eef2fb;--surface:#ffffff;--surface-soft:#f3f5fd;--surface-warm:#f8f2ff;
  --ink:#243154;--muted:#617198;--line:#dbe3f5;--accent:#6557c5;--accent-hover:#5144ae;
  --accent-soft:#efebff;--forest:#31528e;--danger:#b34664;--warn:#865c24;
}
html{background:var(--canvas)}body{min-height:100vh;background:var(--canvas);color:var(--ink)}
h1,h2,h3{letter-spacing:-.02em}small,.muted,.footnote{color:var(--muted)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:#27b9e8}
.shell{max-width:1540px;padding:0 28px 76px}
.top{height:78px;margin:0 -28px;padding:0 28px;border:0;border-radius:0 0 20px 20px;background:linear-gradient(105deg,#1b3769,#252253);color:#fff;box-shadow:0 12px 28px #253c7330}
.top .brand{color:#fff;font-size:1.24rem}.brand-mark{width:42px;height:42px;border-radius:14px;background:linear-gradient(140deg,#21bee4,#5267d7);box-shadow:0 5px 14px #20c6eb4d;font-size:1.65rem}
.top-identity strong{color:#fff}.top-identity small{color:#b9c8ed}.top .btn.alt{color:#e9f5ff;background:#ffffff1a;border-color:#ffffff45}.top .btn.alt:hover{background:#ffffff30}
.workspace{grid-template-columns:218px minmax(0,1fr);gap:26px;margin-top:22px}.page-content{padding-top:0}
.tabs{top:18px;gap:5px;max-height:calc(100vh - 36px);padding:20px 12px;border:1px solid #435789;border-radius:20px;background:linear-gradient(165deg,#243e75,#242454 80%);box-shadow:0 16px 34px #1a2c6652}
.nav-group{margin:18px 13px 6px;color:#aabce9;font-size:.75rem;letter-spacing:.02em}.nav-group:first-child{margin-top:0}
.tabs button{display:flex;align-items:center;gap:11px;min-height:46px;padding:8px 10px;color:#d5e0f8;border-radius:12px;font-weight:650;transition:background .16s,transform .16s}
.tabs button:hover{background:#ffffff1b;color:#fff;transform:translateX(2px)}
.tabs button.active{background:linear-gradient(100deg,#705dcd,#4c86c9);color:#fff;box-shadow:0 7px 16px #12193844}
.nav-glyph{display:inline-grid;place-items:center;flex:none;width:29px;height:29px;border-radius:9px;background:#ffffff17;color:#98e8fb;font-size:1.25rem;font-weight:500;line-height:1}
.tabs button.active .nav-glyph{background:#ffffff35;color:#fff}.nav-count{margin-left:auto;background:#aa83f3;color:#fff}.tabs button.active .nav-count{background:#ffffffdb;color:#473993}
.refresh-row{margin:0 0 4px}.refresh-row .btn{color:#526b9e}.refresh-row .btn:hover{background:#e0e9fc;color:#263e80}
.btn{border-color:#6557c5;background:linear-gradient(110deg,#6e58cf,#556dcc);box-shadow:0 5px 13px #5b58bf32}.btn:hover{border-color:#5144ae;background:linear-gradient(110deg,#5f49ba,#425ebc)}
.btn.alt{border-color:#cbd6f0;background:#fff;color:#4757a0;box-shadow:none}.btn.alt:hover{border-color:#a8bbeb;background:#f2f5ff}
.btn.danger{border-color:#b34664;background:#b34664}.btn.plain{background:transparent;border-color:transparent;color:#5e54b5;box-shadow:none}
.hero{padding:26px 30px;border-radius:20px;background:linear-gradient(115deg,#285d9a,#37367d);box-shadow:0 12px 25px #3348862c}.hero:after{content:'✦';top:-32px;right:23px;color:#ffffff20;font-size:150px}.hero h1{font-size:2rem}.hero .numbers{margin-top:21px}
.card{border-color:#d9e3f5;border-radius:16px;box-shadow:0 4px 15px #2d42820b}.card p{color:#53648b}.card h3{color:#26385f}.meta{color:#67789c}
.section-head{margin:30px 0 14px}.section-head h2{color:#273760}.pill{background:#efeaff;color:#6046a6}.pill.good{background:#e5f6ef;color:#277356}.pill.warn{background:#fff1d9;color:#8c621f}.pill.gray{background:#edf0f9;color:#687492}.amount{color:#6557c5}
.empty{border-color:#cfdaf4;background:#f8faff;color:#68799e}.notice{background:#fff5e6;color:#865c24}
.form label{color:#354771}.form input,.form textarea,.form select,.score-row input,.exam-rule-row input{border-color:#c4d1ed;background:#f8faff;color:#27365b}.form input:hover,.form textarea:hover,.form select:hover,.score-row input:hover,.exam-rule-row input:hover{background:#f0f5ff}.form input:focus,.form textarea:focus,.form select:focus,.score-row input:focus,.exam-rule-row input:focus{border-color:#587cce;outline-color:#9fc4fb}.form label.toggle input[type=checkbox],.checkboxes input{accent-color:#6658c6}.checkboxes label{border-color:#dae2f6;background:#f5f6ff}
.exam-rule-cell{min-width:0}.exam-rule-cell>span{display:none}
.table th{background:#eff3fc;color:#596b9a}.table th,.table td{border-color:#e4eafa}.divider{background:#dfe5f6}
.parent-home-head{display:flex;align-items:center;justify-content:space-between;min-height:126px;padding:21px 27px;margin:0 0 14px;border-radius:18px;background:linear-gradient(105deg,#4b69b1,#6a4da6 70%,#9459ac);color:#fff;box-shadow:0 12px 28px #594c9b29;overflow:hidden}
.parent-home-head small{color:#cfe2ff;font-size:.84rem}.parent-home-head h1{margin:4px 0 3px;font-size:2rem}.parent-home-head p{margin:0;color:#f3efff;font-size:.95rem}.home-head-mark{display:grid;place-items:center;width:84px;height:84px;border:1px solid #ffffff55;border-radius:24px;transform:rotate(-12deg);color:#aeeeff;font-size:3.2rem;line-height:1}
.parent-home-head .home-refresh{flex:none;border-color:#ffffff83;background:#ffffff22;color:#fff;box-shadow:none}.parent-home-head .home-refresh:hover{border-color:#fff;background:#ffffff3d;color:#fff}
.overview-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.overview-card{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:112px;padding:18px 20px;border-radius:16px;color:#fff;overflow:hidden}.overview-card:nth-child(1){background:linear-gradient(120deg,#5051a1,#8b62bd)}.overview-card:nth-child(2){background:linear-gradient(120deg,#257ab0,#319bc6)}.overview-card:nth-child(3){background:linear-gradient(120deg,#8051a7,#bd669f)}.overview-card small{position:relative;color:#e7edff;font-size:.84rem}.overview-card strong{position:relative;margin-top:5px;font-size:1.65rem;line-height:1.2}.overview-symbol{position:absolute;right:13px;top:6px;color:#ffffff38;font-size:4.4rem;line-height:1}
.parent-child-overview{border-color:#dce4f6;border-radius:20px;box-shadow:0 7px 22px #374b9115}.parent-child-head h3{color:#283d76}.parent-child-balance strong{color:#6654c3}.parent-child-stats span{background:#eff3ff;color:#5b6a94}.parent-child-stats b{color:#5a50ae}.parent-streak-stat{background:#fff2df!important;color:#8a6029!important}.parent-streak-stat b{color:#9a6725!important}.parent-task-row{background:#f3f6ff}.parent-trend-card{background:#f1f6ff}.trend-grid{stroke:#dce5f7}.trend-line{stroke:#6370c7}.trend-dot{fill:#6370c7}.parent-wish-progress{border-color:#dfe6f6}.parent-wish-item{background:#f7f3ff}.parent-wish-track{background:#e5e0f4}.parent-wish-track span{background:linear-gradient(90deg,#6f7cdf,#ba6ab5)}
.parent-action-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.parent-action-grid button{min-height:105px;background:#fff;border-color:#d9e2f6}.parent-action-grid button:hover{border-color:#8978d6;background:#f6f4ff}.parent-action-grid strong{color:#5c50b1}.parent-action-grid span{color:#6d7b9f}
.child-journey{position:relative;min-height:352px;border-radius:22px;background-color:#151d56;background-image:linear-gradient(90deg,#141c4be8 0%,#1b2358bc 30%,#1a225239 61%,#1b235806 100%),url('/assets/wish-island.png');background-size:cover;background-position:center;box-shadow:0 16px 34px #252e7150;overflow:hidden;color:#fff}
.child-journey-copy{position:relative;z-index:1;max-width:430px;padding:29px 32px}.child-journey-copy>small{color:#bbeaff;font-weight:700}.child-journey h1{margin:14px 0 9px;font-size:2.45rem;line-height:1.25}.child-journey p{max-width:25ch;margin:0;color:#e3e8ff}.journey-balance{display:inline-flex;align-items:baseline;gap:9px;flex-wrap:wrap;margin-top:24px;padding:10px 14px;border:1px solid #ffffff50;border-radius:12px;background:#ffffff20;backdrop-filter:blur(10px)}.journey-balance span,.journey-balance small{color:#e2ecff;font-size:.84rem}.journey-balance strong{font-size:1.8rem;line-height:1}.journey-balance i{color:#ff9cc1;font-style:normal}
.child-numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:14px 0 28px}.child-numbers>div{display:grid;gap:3px;min-height:80px;padding:13px 16px;border:1px solid #dce3f8;border-radius:14px;background:#fff}.child-numbers small{font-size:.81rem}.child-numbers strong{font-size:1.12rem;color:#494caa}
.child-shortcuts button{position:relative;min-height:119px;text-align:left!important;overflow:hidden;transition:transform .16s}.child-shortcuts button:hover{transform:translateY(-2px)}.child-shortcuts button:first-child{background:linear-gradient(110deg,#e6eeff,#f4f1ff)}.child-shortcuts button:last-child{background:linear-gradient(110deg,#ffe8f2,#f4eaff)}.child-shortcuts h2{margin:8px 0 3px;font-size:1.22rem}.child-shortcuts p{font-size:.9rem}.child-shortcuts button>span{position:absolute;right:17px;top:7px;color:#9a87e1;font-size:3.2rem;opacity:.58}
.shell-child .hero{background:linear-gradient(110deg,#415daf,#8153ab)}.shell-child .hero p{color:#f3eaff}.exam-hero{background:linear-gradient(115deg,#415ca7,#754ea5)!important;color:#fff!important}.exam-hero small,.exam-hero p{color:#e3e7ff!important}
.exam-band-list,.exam-band{border-color:#e0e6f5}.exam-band strong{color:#5046a4}.exam-band .exam-positive{color:#6152b9}.exam-target-bonus{background:#efedff;color:#514ba3}.exam-report{background:#f2f5ff}.exam-report-score{border-color:#d8dff4;color:#6255bd}
.exam-subject-summary{display:flex;flex-direction:column;gap:17px;padding:22px 24px}
.exam-subject-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.exam-subject-summary-head h3{margin:0;font-size:1.25rem}
.exam-subject-summary-head .btn{flex:none}
.exam-subject-summary-meta{display:grid;grid-template-columns:1fr 1.4fr;gap:12px;padding:14px 16px;border-radius:10px;background:#f2f5fc}
.exam-subject-summary-meta>div{display:grid;align-content:start;gap:2px;min-width:0}
.exam-subject-summary-meta small{font-size:.77rem;color:#657496}
.exam-subject-summary-meta strong{font-size:1.04rem;color:#293a66}
.exam-subject-summary-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.exam-subject-summary-table th{text-align:left;color:#667799;font-size:.78rem;font-weight:650}
.exam-subject-summary-table th:last-child,.exam-subject-summary-table td:last-child{text-align:right}
.exam-subject-summary-table td{padding:7px 0;border-top:1px solid #e2e8f5;color:#34446b;font-size:.9rem}
.exam-subject-summary-table .rule-gain{color:#5147a4;font-weight:750}
.exam-subject-summary-table .rule-loss{color:#b34664;font-weight:750}
.exam-subject-summary-table .rule-zero{color:#6c7892;font-weight:650}
.wish-price-dialog{border-color:#cbd5f1;box-shadow:0 23px 65px #15255668}.wish-price-dialog::backdrop{background:#141b43ae}.wish-price-icon{background:#eeeaff;color:#6451bb}.wish-price-accent{color:#e5def7}.wish-price-eyebrow{color:#5c50b1}.wish-price-summary{border-color:#b4aae7;background:#f5f2ff}.wish-price-input span{color:#5a50ac}
.auth-page{background:#e8edf9}.auth-art{background-image:linear-gradient(90deg,#152353dc,#1e2a5c84),url('/assets/wish-island.png');background-position:center;background-size:cover}.auth-art:after{display:none}.auth-art .heart{border-color:#b8ceff;background:#ffffff25}.auth-art p{color:#e1ebff}.auth-box .brand{color:#243763}.auth-tabs{border-color:#d0d9f2;background:#f4f6ff}.auth-tabs button.active{color:#5148a5}.auth-box .card{border-color:#d1dcf4;box-shadow:0 14px 35px #2f418126}
#toast{background:#252950}
@media(max-width:1050px){.workspace{grid-template-columns:192px minmax(0,1fr);gap:18px}.parent-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.shell{padding:0 16px 60px}.top{height:70px;margin:0 -16px;padding:0 16px;border-radius:0 0 17px 17px}.workspace{display:block;margin-top:12px}.tabs{position:relative;top:auto;display:flex;flex-direction:row;gap:5px;max-height:none;overflow-x:auto;overflow-y:hidden;margin:0 -16px;padding:8px 16px;border-radius:0;border-left:0;border-right:0;box-shadow:none}.tabs button{flex:none;padding:7px 10px;min-height:42px}.tabs button:hover{transform:none}.nav-glyph{width:25px;height:25px;font-size:1.1rem}.nav-group{display:none}.page-content{padding-top:20px}.parent-home-head{min-height:122px}.overview-card{min-height:104px}.child-journey{min-height:365px}}
@media(max-width:580px){.top .brand{font-size:1rem}.brand-mark{width:36px;height:36px}.parent-home-head{min-height:105px;padding:18px 19px}.parent-home-head h1{font-size:1.65rem}.parent-home-head p{font-size:.84rem}.home-head-mark{width:51px;height:51px;border-radius:14px;font-size:2rem}.overview-cards{gap:7px}.overview-card{min-height:90px;padding:11px 9px;border-radius:12px}.overview-card small{font-size:.7rem}.overview-card strong{font-size:1.05rem}.overview-symbol{font-size:2.7rem}.parent-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.parent-action-grid button{min-height:92px}.child-journey{min-height:425px;background-image:linear-gradient(180deg,#11194cc7 0%,#121d53b0 36%,#16205a21 72%),url('/assets/wish-island.png');background-position:60% center}.child-journey-copy{padding:24px 22px}.child-journey h1{font-size:2rem}.child-journey p{font-size:.92rem}.journey-balance{margin-top:17px}.child-numbers{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.child-numbers>div{min-height:72px}.auth-art{background-position:57% center}}
@media(max-width:370px){.top .brand span:last-child{display:inline}.nav-glyph{display:none}.overview-card strong{font-size:.96rem}}
@media(prefers-reduced-motion:reduce){.tabs button,.child-shortcuts button{transition:none}}

/* 家长首页：插画作为唯一视觉焦点，数据保持清晰。 */
.shell-parent{max-width:1600px;padding-inline:24px}
.shell-parent .top{height:68px;margin-inline:-24px;padding-inline:24px;border-radius:0 0 16px 16px}
.shell-parent .workspace{grid-template-columns:186px minmax(0,1fr);gap:20px;margin-top:18px}
.shell-parent .tabs{padding:13px 9px;gap:2px;border-color:#394d80;border-radius:16px;background:#20305f;box-shadow:0 8px 24px #1d2c5e22}
.shell-parent .nav-group{margin:13px 11px 3px;font-size:.68rem;color:#aabde7}
.shell-parent .tabs button{min-height:39px;padding:5px 9px;gap:9px;border-radius:9px;font-size:.88rem}
.shell-parent .tabs button.active{background:#416db6;box-shadow:inset 3px 0 #71dcf0}
.shell-parent .nav-glyph{width:22px;height:22px;border-radius:7px;font-size:1.03rem}
.shell-parent .page-content{padding-top:0}
.parent-home-head{min-height:190px;align-items:flex-start;padding:25px 29px;margin-bottom:12px;border:1px solid #2c467d;border-radius:18px;background-color:#14244f;background-image:linear-gradient(90deg,#142553 0%,#172a60f2 32%,#1b2c6080 53%,#1a28561a 75%),url('/assets/wish-island.png');background-size:cover;background-position:center 43%;box-shadow:0 12px 26px #24326026}
.parent-home-copy{max-width:440px;min-width:0;position:relative;z-index:1}
.parent-home-head small{color:#a9dcfa;font-size:.79rem;font-weight:700}
.parent-home-head h1{margin:10px 0 7px;font-size:clamp(1.55rem,2.15vw,2.05rem);line-height:1.22}
.parent-home-head p{max-width:29ch;color:#e4eafb;font-size:.9rem;line-height:1.5}
.parent-home-head .home-refresh{z-index:1;min-height:36px;padding:6px 10px;border-color:#d5e6ff8c;background:#12254c99;font-size:.78rem}
.overview-cards{grid-template-columns:1.25fr 1fr 1fr;gap:9px}
.overview-card,.overview-card:nth-child(1),.overview-card:nth-child(2),.overview-card:nth-child(3){min-height:82px;padding:12px 17px;border:1px solid #dce5f8;border-radius:12px;background:#fff;color:#27365b;box-shadow:none}
.overview-card:first-child{border-color:#c9c7ed;background:#f2f0ff}
.overview-card small{color:#687795;font-size:.78rem;font-weight:650}
.overview-card strong{margin-top:2px;color:#2a3964;font-size:1.38rem}
.overview-card:first-child strong{color:#534baa}
.overview-symbol{right:15px;top:13px;color:#8f9fc3;font-size:2rem;line-height:1}
.overview-card:first-child .overview-symbol{color:#7267bc}
.shell-parent .section-head{margin:23px 0 10px}
.shell-parent .section-head h2{font-size:1.28rem}
.parent-child-overview{padding:20px 21px;border-color:#dee6f5;border-radius:16px;box-shadow:0 4px 14px #374b9110}
.parent-child-head h3{margin-top:2px;font-size:1.3rem}
.parent-child-balance strong{font-size:1.35rem}
.parent-child-stats{margin:12px 0 16px;gap:6px}
.parent-child-stats span{padding:6px 9px;font-size:.78rem}
.parent-child-columns{gap:16px}
.parent-task-row{padding:8px 10px}
.parent-trend-card{padding:10px 11px}
.parent-wish-progress{margin-top:18px;padding-top:15px}
@media(max-width:1050px){.shell-parent .workspace{grid-template-columns:168px minmax(0,1fr);gap:14px}.parent-home-head{background-position:56% center}}
@media(max-width:760px){.shell-parent{padding-inline:16px}.shell-parent .top{margin-inline:-16px;padding-inline:16px}.shell-parent .workspace{display:block;margin-top:10px}.shell-parent .tabs{display:flex;flex-direction:row;gap:5px;max-height:none;overflow-x:auto;overflow-y:hidden;margin-inline:-16px;padding:8px 16px;border:0;border-radius:0;box-shadow:none}.shell-parent .tabs button{flex:none;min-height:40px}.shell-parent .tabs button.active{box-shadow:inset 0 -3px #71dcf0}.shell-parent .nav-group{display:none}.shell-parent .page-content{padding-top:12px}.parent-home-head{min-height:168px}}
@media(max-width:580px){.parent-home-head{min-height:176px;padding:18px 17px;background-position:64% center;background-image:linear-gradient(90deg,#142553 0%,#172a60eb 48%,#1b2c6090 100%),url('/assets/wish-island.png')}.parent-home-copy{max-width:72%}.parent-home-head h1{font-size:1.5rem}.parent-home-head p{font-size:.79rem}.parent-home-head .home-refresh{align-self:flex-start;white-space:nowrap}.overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-card:first-child{grid-column:1/-1}.overview-card{min-width:0}.overview-card strong{font-size:1.2rem}.shell-parent .section-head{align-items:flex-start}.shell-parent .section-head .muted{max-width:15ch;text-align:right}.parent-child-overview{padding:17px}}
@media(max-width:370px){.parent-home-head{min-height:190px}.parent-home-copy{max-width:68%}.parent-home-head h1{font-size:1.28rem}.parent-home-head p{font-size:.74rem}}
@media(max-width:580px){.exam-subject-summary{padding:17px;gap:14px}.exam-subject-summary-head h3{font-size:1.15rem}.exam-subject-summary-head .btn{min-height:38px;padding:6px 10px}.exam-subject-summary-meta{gap:8px;padding:11px}.exam-subject-summary-meta strong{font-size:.93rem}.exam-subject-summary-meta small{font-size:.7rem}}
@media(max-width:580px){.exam-rule-row:not(.exam-rule-head){align-items:end;gap:10px;padding:12px 0;border-top:1px solid #e1e8f5}.exam-rule-cell>span{display:block;margin-bottom:5px;color:#637397;font-size:.76rem;font-weight:650}.exam-rule-row>button{min-height:42px}}
