/* ============ 基础 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #F5F7FA; color: #1D2530; font-size: 14px; line-height: 1.6;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { text-decoration: none; color: inherit; }
.pos { color: #0E9F6E; }
.neg { color: #D97706; }
.warn { color: #D97706; }

.btn { border-radius: 9px; padding: 9px 18px; font-size: 14px; font-weight: 600; transition: all .15s; display: inline-block; }
.btn-primary { background: #2E6BE6; color: #fff; }
.btn-primary:hover { background: #2456C4; }
.btn-primary:disabled { background: #B9C6E4; cursor: not-allowed; }
.btn-plain { border: 1px solid #D7DEE9; color: #2E6BE6; background: #fff; }
.btn-danger { background: #E5484D; color: #fff; }
.btn-danger-plain { border: 1px solid #F2C1C3; color: #E5484D; background: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 12px; }

/* ============ Toast / Modal / Drawer ============ */
.toast-holder { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: rgba(20,24,31,.88); color: #fff; padding: 10px 22px; border-radius: 22px; font-size: 13.5px; animation: tin .25s; max-width: 86vw; }
.toast.err { background: rgba(196,49,54,.92); }
.toast.out { opacity: 0; transition: opacity .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.modal-mask { position: fixed; inset: 0; background: rgba(15,22,36,.42); z-index: 900; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 440px; padding: 22px; box-shadow: 0 12px 40px rgba(0,0,0,.14); }
.modal-wide { max-width: 640px; }
.modal-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.drawer-mask { position: fixed; inset: 0; background: rgba(15,22,36,.45); z-index: 900; display: flex; align-items: flex-end; justify-content: center; }
.drawer { background: #fff; width: 100%; max-width: 420px; border-radius: 22px 22px 0 0; padding: 20px 20px 26px; animation: dup .22s; }
@keyframes dup { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.drawer-line { margin: 8px 0; color: #4A5261; }
.drawer-qty { display: flex; align-items: center; gap: 12px; margin: 14px 0; font-size: 15px; }
.qty-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid #D7DEE9; background: #fff; font-size: 18px; }
.drawer-tip { font-size: 12px; color: #8A9099; margin-top: 10px; line-height: 1.7; }

/* ============ 登录页 ============ */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #2E6BE6 0%, #1E4FB8 100%); padding: 20px; }
.auth-card { background: #fff; border-radius: 20px; padding: 36px 34px 28px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.auth-logo { font-size: 26px; font-weight: 800; color: #1D2530; letter-spacing: 1px; }
.auth-sub { font-size: 12.5px; color: #7A8494; margin: 6px 0 22px; }
.auth-tabs { display: flex; border-bottom: 1px solid #EFF1F3; margin-bottom: 20px; }
.auth-tab { padding: 10px 4px; margin-right: 24px; font-size: 15px; font-weight: 600; color: #7A8494; border-bottom: 2.5px solid transparent; }
.auth-tab.active { color: #2E6BE6; border-color: #2E6BE6; }
.auth-tip { font-size: 12px; color: #98A0AD; margin-top: 16px; line-height: 1.8; }
.form label { display: block; font-size: 12.5px; color: #7A8494; margin: 12px 0 5px; }
.form input { width: 100%; border: 1px solid #E1E6EC; border-radius: 9px; padding: 10px 12px; font-size: 14px; outline: none; }
.form input:focus { border-color: #2E6BE6; box-shadow: 0 0 0 3px rgba(46,107,230,.12); }

/* ============ 家长端布局 ============ */
.p-shell { display: flex; min-height: 100vh; }
.p-side { width: 218px; background: #fff; border-right: 1px solid #EFF1F3; padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.p-brand { font-size: 19px; font-weight: 800; padding: 0 10px; }
.p-brand span { font-size: 11px; color: #7A8494; font-weight: 500; margin-left: 8px; }
.p-side-user { padding: 16px 10px 8px; border-bottom: 1px solid #F2F4F6; margin-top: 14px; }
.p-user-name { font-size: 13.5px; font-weight: 600; }
.p-logout { font-size: 12px; color: #98A0AD; margin-top: 4px; padding: 0; }
.p-logout:hover { color: #E5484D; }
.p-nav { flex: 1; overflow-y: auto; margin-top: 12px; }
.p-nav-group { font-size: 11px; color: #A6ADB8; padding: 14px 10px 6px; letter-spacing: 1px; }
.p-nav-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; color: #3D4655; cursor: pointer; margin-bottom: 2px; }
.p-nav-item:hover { background: #F3F6FB; }
.p-nav-item.active { background: #2E6BE6; color: #fff; font-weight: 600; }
.p-badge { background: #FF8F1F; color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; margin-left: auto; }
.p-main { flex: 1; padding: 26px 32px 60px; max-width: 1180px; }
.p-head h1 { font-size: 21px; font-weight: 700; }
.p-head-sub { font-size: 12.5px; color: #7A8494; margin: 4px 0 18px; }
.p-error { background: #fff; border-radius: 12px; padding: 30px; color: #E5484D; text-align: center; }

.p-pill { display: inline-flex; align-items: center; gap: 6px; background: #FFF6E7; border: 1px solid #FFE7C2; color: #E08A00; border-radius: 22px; padding: 6px 16px; font-size: 13px; margin-bottom: 16px; }
.p-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.p-stat { background: #fff; border-radius: 14px; padding: 18px; border: 1px solid #EFF1F3; }
.p-stat-val { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.p-stat-val small { font-size: 14px; color: #7A8494; font-weight: 600; }
.p-stat-name { font-size: 12.5px; color: #7A8494; margin-top: 2px; }
.p-stat.good .p-stat-val { color: #0E9F6E; }
.p-stat.warn .p-stat-val { color: #D97706; }
.p-stat.bad .p-stat-val { color: #E5484D; }

.p-card { background: #fff; border: 1px solid #EFF1F3; border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(16,24,40,.04); }
.p-card-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p-card-sub { font-size: 12px; color: #8A94A2; line-height: 1.9; margin-top: 8px; }
.p-empty { color: #A6ADB8; font-size: 13px; padding: 14px 0; }
.p-topic { background: #F3F7FF; border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; font-size: 13.5px; }
.p-topic-open { font-size: 12.5px; color: #5A6577; margin-top: 4px; }
.p-benefit { font-size: 13.5px; color: #3D4655; background: #F7F9FC; border-radius: 10px; padding: 12px 14px; line-height: 1.8; }
.p-warn { color: #D97706; }

.p-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.p-table th { text-align: left; color: #8A94A2; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid #EFF1F3; white-space: nowrap; }
.p-table td { padding: 9px 10px; border-bottom: 1px solid #F5F7FA; vertical-align: middle; }
.p-table tr:last-child td { border-bottom: none; }
.p-item-name { max-width: 380px; }
.p-item-note { font-size: 11px; color: #A6ADB8; margin-top: 2px; }

.p-input { border: 1px solid #E1E6EC; border-radius: 8px; padding: 8px 10px; font-size: 13px; outline: none; background: #fff; width: 100%; }
.p-input:focus { border-color: #2E6BE6; box-shadow: 0 0 0 3px rgba(46,107,230,.1); }
.p-input:disabled { background: #F5F7FA; color: #98A0AD; }
.p-input-sm { max-width: 240px; }
.p-input-xs { width: 78px; padding: 5px 8px; }
.p-range { display: flex; align-items: center; gap: 4px; }
.p-form-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 6px; }
.p-field label { display: block; font-size: 12px; color: #7A8494; margin-bottom: 5px; }
.p-days { display: flex; gap: 8px; flex-wrap: wrap; }
.p-day { display: flex; align-items: center; gap: 5px; font-size: 13px; background: #F7F9FC; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.p-save-bar { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.p-save-bar span { font-size: 13px; color: #5A6577; }

.p-tabs { display: flex; gap: 4px; border-bottom: 1px solid #EFF1F3; margin-bottom: 16px; flex-wrap: wrap; }
.p-tab { padding: 9px 16px; font-size: 13.5px; color: #7A8494; cursor: pointer; border-bottom: 2.5px solid transparent; font-weight: 600; }
.p-tab.active { color: #2E6BE6; border-color: #2E6BE6; }

.p-tier-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid #F5F7FA; flex-wrap: wrap; }
.p-tier-badge { font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 12px; }
.pt-L1 { background: #D8F3E6; color: #0B7A50; }
.pt-L2 { background: #FDEFC8; color: #9A6B00; }
.pt-L3 { background: #FBDADC; color: #B3363A; }
.p-tier-range { font-size: 13px; color: #5A6577; display: flex; align-items: center; gap: 6px; }
.p-tier-en { font-size: 13px; color: #5A6577; }
.p-redeem-block { padding: 12px 0; border-bottom: 1px solid #F5F7FA; }

.p-todo-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #F5F7FA; }
.p-todo-row:last-child { border-bottom: none; }
.p-todo-name { font-size: 13.5px; font-weight: 600; }
.p-todo-sub { font-size: 12px; color: #8A94A2; margin-top: 2px; }
.p-todo-acts { display: flex; gap: 8px; flex-shrink: 0; }
.p-freeze-tip { background: #FFF4F4; border: 1px solid #F2C1C3; color: #B3363A; font-size: 12px; border-radius: 10px; padding: 10px 14px; margin-top: 10px; line-height: 1.8; }

.p-report-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.p-report-meta { font-size: 12.5px; color: #7A8494; margin-bottom: 10px; }
.p-report-text { font-size: 14px; line-height: 2; background: #F9FAFC; border-radius: 12px; padding: 18px 20px; white-space: normal; }

.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 18px; padding: 6px 14px; font-size: 12.5px; background: #fff; border: 1px solid #E1E6EC; color: #3D4655; cursor: pointer; }
.chip-active { background: #2E6BE6; border-color: #2E6BE6; color: #fff; }
.trend-empty { text-align: center; color: #A6ADB8; padding: 40px 0; font-size: 13px; line-height: 2; }

/* ============ 孩子端 H5（移动） ============ */
body.is-child { background: #F6F8FA; }
.child-app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #F6F8FA; padding-bottom: 26px; position: relative; }
.child-app.embedded { min-height: 0; height: 100%; overflow-y: auto; padding-bottom: 70px; }

.c-countdown { display: flex; align-items: center; gap: 12px; background: #FFF6E7; border: 1px solid #FFE7C2; border-radius: 14px; padding: 12px 16px; margin: 12px 14px 0; cursor: pointer; }
.c-countdown.sprint { background: #FFEFE0; border-color: #FFD9AE; }
.c-cd-left { flex: 1; min-width: 0; }
.c-cd-label { font-size: 12px; color: #B36F00; font-weight: 600; }
.c-cd-sub { font-size: 10.5px; color: #C89440; margin-top: 2px; }
.c-cd-main { font-size: 30px; font-weight: 800; color: #E08A00; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.c-cd-week { font-size: 11px; color: #B36F00; writing-mode: vertical-lr; text-orientation: mixed; }

.c-body { padding: 12px 14px 20px; }
.c-greet-date { font-size: 12px; color: #8A9099; }
.c-greet-title { font-size: 19px; font-weight: 800; margin: 4px 0 12px; color: #1F2329; }

.c-card { background: #fff; border: 1px solid #EFF1F3; border-radius: 16px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(16,24,40,.04); }
.c-card-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.c-card-sub { font-size: 11.5px; color: #8A9099; line-height: 1.8; margin-top: 8px; }

.c-score-row { display: flex; gap: 30px; margin-bottom: 10px; }
.c-score-num { font-size: 34px; font-weight: 800; color: #00B578; font-variant-numeric: tabular-nums; }
.c-score-label { font-size: 11.5px; color: #8A9099; }
.c-progress { height: 8px; background: #EEF2F0; border-radius: 4px; overflow: hidden; }
.c-progress-bar { height: 100%; background: linear-gradient(90deg, #00B578, #34D399); border-radius: 4px; transition: width .4s; }

.c-checkitem { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #F5F7FA; cursor: pointer; }
.c-checkitem:last-child { border-bottom: none; }
.c-checkbox { width: 24px; height: 24px; border-radius: 8px; border: 2px solid #C9D2CD; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; transition: all .15s; }
.c-checkitem.done .c-checkbox { background: #00B578; border-color: #00B578; }
.c-check-main { flex: 1; min-width: 0; }
.c-check-name { font-size: 13.5px; font-weight: 600; }
.c-checkitem.done .c-check-name { text-decoration: line-through; color: #A6ADB8; }
.c-check-note { font-size: 10.5px; color: #A6ADB8; margin-top: 1px; }
.c-check-points { font-size: 14px; font-weight: 800; color: #00B578; font-variant-numeric: tabular-nums; }
.c-checkitem.done .c-check-points { color: #C4CCC8; }

.c-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.c-claim { border-radius: 20px; padding: 8px 16px; font-size: 13px; background: #E9F9F0; color: #007A52; border: 1px solid #BFE9D5; font-weight: 600; }
.c-claim.used { background: #F2F4F6; color: #A6ADB8; border-color: #E5E9EE; cursor: default; }

.c-makeup-dates { display: flex; gap: 8px; flex-wrap: wrap; }
.c-freeze-note { background: #FFF4EC; border: 1px solid #FFDFC2; color: #9A5B12; font-size: 12.5px; border-radius: 12px; padding: 12px 14px; line-height: 1.8; }

.c-log-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F5F7FA; font-size: 12.5px; }
.c-log-row:last-child { border-bottom: none; }
.c-log-date { color: #A6ADB8; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.c-log-name { flex: 1; min-width: 0; }
.c-log-status { font-size: 11px; flex-shrink: 0; }
.st-pending { color: #FF8F1F; }
.st-confirmed { color: #00B578; }
.st-rejected { color: #FF8F1F; }
.st-void { color: #A6ADB8; }
.os-applied { color: #FF8F1F; }
.os-granted { color: #00B578; }
.os-rejected { color: #FF8F1F; }
.os-withdrawn { color: #A6ADB8; }
.c-log-reason { font-size: 11px; color: #C07A2A; background: #FFF8EF; border-radius: 8px; padding: 6px 10px; margin: -4px 0 8px; }
.c-log-pts { font-weight: 800; font-variant-numeric: tabular-nums; }

/* 周报（孩子端：只呈现孩子版文本，家长版不下发） */
.c-report-card { cursor: pointer; border-color: #BFE9D5; background: #F7FDFA; }
.c-report-sum { font-size: 12.5px; color: #3D4655; line-height: 1.8; margin-top: 6px; }
.c-report-more { font-size: 12px; color: #00B578; margin-top: 8px; }
.c-report-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #F5F7FA; font-size: 12.5px; cursor: pointer; }
.c-report-item:last-child { border-bottom: none; }
.c-report-meta { font-size: 12px; color: #8A9099; margin-bottom: 10px; }
.c-report-text { font-size: 13px; line-height: 1.9; color: #1F2329; }
/* 兑换撤回（审批前可撤） */
.c-withdraw-btn { margin-left: auto; flex-shrink: 0; border: 1px solid #E1E6EC; background: #fff; color: #8A9099; font-size: 11px; border-radius: 12px; padding: 4px 12px; }

.c-privacy { text-align: center; font-size: 11px; color: #A6ADB8; padding: 14px 20px 4px; line-height: 1.8; }

/* 隐私设置开关（孩子端「我的」Tab） */
.c-privacy-row { display: flex; align-items: center; gap: 12px; }
.c-privacy-info { flex: 1; min-width: 0; }
.c-privacy-name { font-size: 13.5px; font-weight: 600; color: #1D2530; }
.c-switch { position: relative; flex-shrink: 0; width: 44px; height: 26px; display: inline-block; }
.c-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.c-switch-track { position: absolute; inset: 0; background: #D7DEE9; border-radius: 13px; transition: background .18s; }
.c-switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.2); transition: transform .18s; }
.c-switch input:checked + .c-switch-track { background: #00B578; }
.c-switch input:checked + .c-switch-track::after { transform: translateX(18px); }
.c-switch input:disabled { cursor: not-allowed; }
.c-switch input:disabled + .c-switch-track { background: #E8ECF1; }

.c-change-card { border: 1.5px solid #FFD9AE; background: #FFFBF4; }
.c-change-title { font-size: 14.5px; font-weight: 800; color: #B36F00; margin-bottom: 6px; }
.c-change-desc { font-size: 12.5px; color: #8A6A3A; line-height: 1.8; }
.c-change-diff { margin: 10px 0; background: #fff; border-radius: 10px; padding: 10px 12px; }
.diff-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 4px 0; border-bottom: 1px dashed #F5EFE3; }
.diff-row:last-child { border-bottom: none; }
.diff-row span { color: #8A9099; }
.diff-row b { color: #B36F00; text-align: right; }
.c-change-note { font-size: 11.5px; color: #A6ADB8; text-align: center; margin-top: 8px; }

.c-wallet { background: linear-gradient(135deg, #00B578, #009B66); color: #fff; border: none; }
.c-wallet-label { font-size: 12px; opacity: .9; }
.c-wallet-num { font-size: 38px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 2px 0; }
.c-wallet-num span { font-size: 14px; font-weight: 600; }
.c-wallet-src { font-size: 11.5px; opacity: .85; }
.c-wallet-note { font-size: 11px; opacity: .75; margin-top: 8px; }
.c-progress-line { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.c-tier-badge { font-size: 12px; font-weight: 800; padding: 2px 12px; border-radius: 12px; }
.tb-L1 { background: #E9F9F0; color: #007A52; }
.tb-L2 { background: #FFF8E6; color: #9A6B00; }
.tb-L3 { background: #F0F1F2; color: #6B7280; }
.c-tierbar-legend { display: flex; gap: 12px; margin-top: 8px; }
.tl { font-size: 11px; color: #8A9099; }
.tl::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.tl-L1::before { background: #BFE9D5; }
.tl-L2::before { background: #FDEFC8; }
.tl-L3::before { background: #E3E5E7; }
.c-recovery { background: #E9F9F0; border-color: #BFE9D5; color: #007A52; font-size: 13px; line-height: 1.9; }
.c-redeem-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F5F7FA; }
.c-redeem-item:last-child { border-bottom: none; }
.c-redeem-item.off { opacity: .55; }
.c-redeem-name { font-size: 13.5px; font-weight: 700; }
.c-redeem-sub { font-size: 11.5px; color: #8A9099; margin-top: 2px; }

.c-tri { display: flex; gap: 10px; }
.c-tri-item { flex: 1; background: #fff; border: 1px solid #EFF1F3; border-radius: 14px; padding: 14px 8px; text-align: center; }
.c-tri-num { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.c-tri-num.pos { color: #00B578; }
.c-tri-num.neg { color: #FF8F1F; }
.c-tri-label { font-size: 11px; color: #8A9099; margin-top: 2px; }
.c-streak-badge { display: inline-block; background: #E9F9F0; color: #007A52; font-size: 12px; font-weight: 700; border-radius: 14px; padding: 5px 16px; margin: 10px 0 2px; }
.c-chart-tip { text-align: center; font-size: 11.5px; color: #A6ADB8; padding: 6px 0 2px; }
.c-conclusion { background: #E9F9F0; border-color: #BFE9D5; color: #007A52; font-size: 14px; font-weight: 600; }
.c-period-toggle { display: flex; justify-content: center; gap: 10px; padding: 4px 0 10px; }
.c-period-toggle .chip-active { background: #00B578; border-color: #00B578; }

.c-me-head { display: flex; align-items: center; gap: 16px; }
.c-me-avatar { width: 62px; height: 62px; border-radius: 20px; background: #E9F9F0; color: #00B578; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.c-me-name { font-size: 15px; font-weight: 700; }
.c-me-sub { font-size: 12px; color: #8A9099; }
.c-milestone { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #F5F7FA; }
.c-milestone:last-child { border-bottom: none; }
.c-ms-dot { width: 22px; height: 22px; border-radius: 50%; background: #F0F1F2; color: #A6ADB8; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.c-milestone.done .c-ms-dot { background: #00B578; color: #fff; }
.c-ms-name { font-size: 13px; font-weight: 600; flex: 1; }
.c-milestone.done .c-ms-name { color: #007A52; }
.c-ms-hint { font-size: 11px; color: #A6ADB8; }

.c-tabbar { position: sticky; bottom: 0; display: flex; background: #fff; border-top: 1px solid #EFF1F3; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); }
.c-tab { flex: 1; text-align: center; font-size: 12px; color: #8A9099; padding: 4px 0; }
.c-tab.active { color: #00B578; font-weight: 700; }

/* 嵌入手机框（家长端） */
.p-phone-wrap { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.p-phone { width: 402px; height: 830px; border-radius: 44px; border: 10px solid #1B2430; background: #F6F8FA; overflow: hidden; position: relative; flex-shrink: 0; box-shadow: 0 24px 60px rgba(16,24,40,.18); }
.p-phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 150px; height: 24px; background: #1B2430; border-radius: 0 0 16px 16px; z-index: 5; }
.p-phone-body { height: 100%; overflow-y: auto; padding-top: 26px; }
.p-phone-side { flex: 1; min-width: 300px; }

@media (max-width: 900px) {
  .p-shell { flex-direction: column; }
  .p-side { width: 100%; height: auto; position: static; display: flex; align-items: center; gap: 10px; padding: 10px 14px; overflow-x: auto; }
  .p-brand span { display: none; }
  .p-side-user { display: none; }
  .p-nav { display: flex; margin: 0; gap: 2px; }
  .p-nav-group { display: none; }
  .p-nav-item { white-space: nowrap; }
  .p-main { padding: 16px 14px 40px; }
  .p-grid4 { grid-template-columns: repeat(2, 1fr); }
  .p-phone { width: 100%; height: 720px; border-width: 6px; border-radius: 28px; }
}
