:root {
  --ink: #17363a;
  --muted: #71817e;
  --teal: #205a5d;
  --teal-soft: #e8f1ee;
  --cream: #f6f3eb;
  --paper: #fffefa;
  --sand: #eadfca;
  --orange: #db7b3d;
  --green: #3d7669;
  --red: #ba5744;
  --shadow: 0 12px 34px rgba(40, 60, 55, .09);
}
* { box-sizing: border-box; }
html { background: var(--cream); }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app { width: min(100%, 520px); min-height: 100vh; margin: 0 auto; padding: 0 18px 92px; background: linear-gradient(180deg, #eef5f1 0, var(--cream) 220px); }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 18px 0 12px; background: rgba(238,245,241,.9); backdrop-filter: blur(14px); }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px 12px 12px 4px; color: white; background: var(--teal); box-shadow: 0 5px 14px rgba(32,90,93,.22); }
.child-switch { border: 1px solid rgba(32,90,93,.15); border-radius: 18px; padding: 7px 11px; color: var(--teal); background: rgba(255,255,255,.72); font-size: 13px; font-weight: 700; }
.hero { position: relative; overflow: hidden; padding: 22px; border-radius: 25px; color: white; background: linear-gradient(135deg, #1b5558, #347770); box-shadow: 0 16px 36px rgba(27,85,88,.22); }
.hero:after { content: ""; position: absolute; width: 150px; height: 150px; right: -42px; top: -56px; border: 28px solid rgba(255,255,255,.07); border-radius: 50%; }
.eyebrow { margin: 0 0 8px; color: rgba(255,255,255,.72); font-size: 12px; letter-spacing: .12em; }
.hero h1 { max-width: 300px; margin: 0 0 8px; font-size: 23px; line-height: 1.35; }
.hero p { margin: 0; color: rgba(255,255,255,.82); font-size: 13px; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; margin-top: 22px; }
.progress { display: flex; align-items: center; gap: 10px; }
.progress-ring { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: conic-gradient(#f2c27b 67%, rgba(255,255,255,.15) 0); }
.progress-ring span { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: #285f60; font-size: 12px; font-weight: 800; }
.wallet { position: relative; z-index: 1; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.13); text-align: right; }
.wallet strong { display: block; font-size: 19px; }.wallet small { color: rgba(255,255,255,.72); }
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 24px 2px 12px; }
.section-head h2 { margin: 0; font-size: 17px; }.section-head span { color: var(--muted); font-size: 12px; }
.card { padding: 18px; border: 1px solid rgba(113,93,57,.1); border-radius: 20px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.focus-card { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.icon-box { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: var(--teal); background: var(--teal-soft); font-size: 22px; }
.focus-card h3, .card h3 { margin: 0 0 6px; font-size: 16px; }.focus-card p, .card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.status { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding: 5px 9px; border-radius: 99px; background: #edf4ee; color: var(--green); font-size: 12px; font-weight: 700; }
.status:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.primary { width: 100%; margin-top: 14px; padding: 13px 16px; border: 0; border-radius: 14px; color: #fff; background: var(--teal); font-weight: 800; box-shadow: 0 8px 20px rgba(32,90,93,.16); }
.primary:disabled { opacity: .48; cursor: not-allowed; }.primary.warm { background: var(--orange); }
.secondary { padding: 10px 13px; border: 1px solid #d7ddd8; border-radius: 12px; color: var(--teal); background: white; font-size: 13px; font-weight: 700; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-card { padding: 15px; border-radius: 18px; background: white; border: 1px solid rgba(113,93,57,.1); }.quick-card b { display: block; margin: 9px 0 4px; font-size: 14px; }.quick-card small { color: var(--muted); }
.page-title { margin: 10px 2px 18px; }.page-title h1 { margin: 0 0 6px; font-size: 25px; }.page-title p { margin: 0; color: var(--muted); font-size: 13px; }
.stack { display: grid; gap: 12px; }.lesson-card { border-left: 4px solid var(--teal); }
.meta-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }.chip { padding: 5px 9px; border-radius: 99px; color: #6d5a3d; background: #f7eddc; font-size: 12px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 11px 0; border-top: 1px dashed #e4e0d5; }.step time { color: var(--orange); font-size: 12px; font-weight: 800; }.step b { font-size: 13px; }.step p { margin-top: 3px; font-size: 12px; }
.price { color: var(--orange); font-weight: 800; }.balance-line { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #eee9de; font-size: 13px; }
.package { position: relative; overflow: hidden; }.package.recommended:after { content: "推荐"; position: absolute; right: -25px; top: 11px; width: 88px; padding: 4px; transform: rotate(40deg); color: white; background: var(--orange); font-size: 10px; text-align: center; }
.money { margin: 8px 0; font-size: 24px; font-weight: 900; }.money small { font-size: 12px; color: var(--muted); font-weight: 400; }
.empty { padding: 30px 15px; color: var(--muted); text-align: center; }.empty span { display: block; margin-bottom: 8px; font-size: 34px; }
.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 0; width: min(100%, 520px); transform: translateX(-50%); display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px 8px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(80,80,60,.1); background: rgba(255,255,252,.96); backdrop-filter: blur(16px); }
.nav-item { border: 0; color: #87908e; background: none; font-size: 11px; }.nav-item i { display: block; margin-bottom: 2px; font-style: normal; font-size: 20px; }.nav-item.active { color: var(--teal); font-weight: 800; }
.notice { margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; color: #76552d; background: #fff1dc; font-size: 12px; line-height: 1.6; }
.error { color: var(--red); background: #fff0eb; }.success { color: var(--green); background: #edf6f0; }
.modal { position: fixed; z-index: 50; inset: 0; display: grid; align-items: end; background: rgba(16,36,36,.45); }.sheet { width: min(100%, 520px); max-height: 88vh; margin: auto auto 0; overflow: auto; padding: 24px 20px 30px; border-radius: 28px 28px 0 0; background: var(--paper); }.sheet h2 { margin: 0 0 6px; }
.field { display: grid; gap: 6px; margin: 14px 0; }.field label { font-size: 12px; font-weight: 700; }.field input,.field select,.field textarea { width: 100%; padding: 12px 13px; border: 1px solid #d9ddd8; border-radius: 12px; background: white; outline: none; }.field input:focus,.field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(32,90,93,.08); }
.result { margin-top: 12px; padding: 14px; border-radius: 14px; color: #315d57; background: #edf6f1; font-size: 13px; white-space: pre-wrap; line-height: 1.65; }
.skeleton { min-height: 100vh; display: grid; place-items: center; color: var(--teal); }.spinner { width: 30px; height: 30px; margin: auto auto 10px; border: 3px solid #dbe7e2; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 700px) { body { padding: 18px 0; }.app { min-height: calc(100vh - 36px); border-radius: 30px; box-shadow: 0 20px 80px rgba(40,60,55,.14); }.bottom-nav { bottom: 18px; border-radius: 0 0 30px 30px; } }

.sheet .field label em{font-style:normal;color:var(--orange);font-size:11px;margin-left:4px}.sheet select:disabled{color:#9aa8a4;background:#f4f6f2}.sheet .notice{line-height:1.55}
.profile-edit{width:auto;padding:8px 10px;margin:0;font-size:12px;white-space:nowrap}
.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:6px}.sheet-header h2{margin:0}.sheet-close{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:0;border:0;border-radius:50%;color:var(--muted);background:#edf2ef;font-size:25px;line-height:1}.sheet-close:hover{color:var(--teal);background:#e1ece7}.sheet-actions{display:grid;grid-template-columns:100px 1fr;gap:10px;margin-top:14px}.sheet-actions .primary{margin-top:0}.sheet-cancel{width:100%;font-size:14px}
.auth-page{display:grid;place-items:center;padding-bottom:18px}.auth-card{width:min(100%,390px);padding:30px 24px;border:1px solid rgba(113,93,57,.12);border-radius:24px;background:var(--paper);box-shadow:var(--shadow);text-align:center}.auth-card .brand-mark{margin:0 auto 18px}.auth-card h1{margin:0 0 10px;font-size:24px}.auth-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}
.score-fields{display:grid;gap:10px;margin-top:8px}.score-fields>label{display:grid;grid-template-columns:minmax(72px,1fr) 110px 20px;gap:8px;align-items:center}.score-fields input{width:100%;box-sizing:border-box}.assessment-question{border:1px solid #ded8ca;border-radius:12px;margin:12px 0;padding:12px}.assessment-question legend{font-weight:700;padding:0 4px}.assessment-option{display:block;padding:8px 4px}.assessment-option input{width:auto;margin-right:7px}.form-help{color:#65726e;font-size:14px}
.child-profile-sheet{padding-top:18px}.survey-progress{position:sticky;z-index:3;top:-18px;margin:12px -4px 18px;padding:12px 4px 10px;background:var(--paper)}.survey-progress>b,.survey-progress>span{display:block}.survey-progress>span{margin-top:4px;color:var(--muted);font-size:12px}.survey-progress>div{height:7px;margin-top:9px;overflow:hidden;border-radius:99px;background:#e5ebe7}.survey-progress i{display:block;height:100%;border-radius:inherit;background:var(--teal);transition:width .2s}.survey-section-head{padding:13px 14px;border-radius:14px;background:var(--teal-soft)}.survey-section-head b,.survey-section-head span{display:block}.survey-section-head span{margin-top:4px;color:var(--muted);font-size:12px}.assessment-options{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}.assessment-option{border:1px solid #e2ded4;border-radius:10px;background:#fff}.assessment-option:has(input:checked){border-color:var(--teal);color:var(--teal);background:var(--teal-soft)}.survey-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.survey-actions .primary,.survey-actions .secondary{width:100%;margin-top:0}.survey-actions button:only-child{grid-column:1/-1}
@media(max-width:420px){.assessment-options{grid-template-columns:1fr}}
