/* ============================================================
 * style.css — 家庭专属亲子打卡 H5 · 全局设计系统
 * 温馨浅色极简 / 低饱和马卡龙 / 手机端优先
 * 状态色：绿=完成 橙=待做 灰=未完成·不可操作 黄=补卡
 * ============================================================ */

/* ---------------- 设计令牌 ---------------- */
:root {
  --bg: #FFF8F4;
  --card: #FFFFFF;
  --ink: #4B4356;
  --ink-2: #8C8499;
  --ink-3: #B9B2C4;
  --line: #F2EAE6;
  --line-2: #F7F1EE;

  --pink: #FFD9E4;
  --pink-d: #FF9DBB;
  --mint: #C9EBD6;
  --mint-d: #63BE8E;
  --sky: #CFE3FA;
  --sky-d: #7FA9E8;
  --lemon: #FDEDB8;
  --lemon-d: #E2B33C;
  --lav: #E2D9F7;
  --lav-d: #8E7BD8;
  --orange: #FBD9B8;
  --orange-d: #EDA255;

  --ok: #63BE8E;
  --ok-bg: #EAF7F0;
  --pending: #EDA255;
  --pending-bg: #FEF3E7;
  --muted: #C3BCCB;
  --muted-bg: #F4F1F6;
  --makeup: #E5B22B;
  --makeup-bg: #FDF6DF;
  --info: #7FA9E8;
  --info-bg: #EDF4FE;

  --shadow: 0 6px 20px rgba(186, 158, 168, .12);
  --shadow-s: 0 3px 12px rgba(186, 158, 168, .10);
  --shadow-l: 0 14px 40px rgba(160, 130, 145, .18);
  --r: 18px;
  --r-s: 12px;
  --r-l: 24px;
  --nav-h: 66px;
}

/* ---------------- 基础 ---------------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: linear-gradient(170deg, #FFF9F5 0%, #FDF2F6 42%, #F3F7FF 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body.role-child { font-size: 16.5px; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
b, strong { font-weight: 700; }
.hide { display: none !important; }
.muted { color: var(--ink-2); }
.small { font-size: 12.5px; }
.grow { flex: 1; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap8 { gap: 8px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; }
.danger-text { color: #E5809A !important; }
.ico { flex: none; vertical-align: -3px; }

/* ---------------- 外壳布局 ---------------- */
#app { display: block; }
.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 22px);
}
/* 打卡页底部有固定的「提交打卡」条：它浮在底部导航之上，
   页面需再留出提交条的高度（12 + 58 + 12 ≈ 82px），否则最后一段提示会被压住 */
.page-submit { padding-bottom: calc(var(--nav-h) + 104px); }
/* 儿童端整体放大一档：大字体、少文字、超大按钮，降低学习成本 */
.page-child { font-size: 16.5px; }
.page-child .sec-title { font-size: 16.5px; }
.page-child .tc-icon { width: 56px; height: 56px; font-size: 29px; }
.page-child .tc-meta { font-size: 13px; }
.page-child .quote-txt { font-size: 17px; line-height: 1.8; }
.page-child .chip { font-size: 12.5px; padding: 3px 9px; }
.page-child .pts { font-size: 16px; }
.wrap { padding: 14px 16px 8px; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 12px;
  background: rgba(255, 249, 246, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(242, 234, 230, .8);
}
.tb-avatar {
  width: 38px; height: 38px; border-radius: 13px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: linear-gradient(140deg, var(--pink), var(--lemon));
  box-shadow: var(--shadow-s);
}
.tb-avatar.ghost { background: none; box-shadow: none; }
.tb-title { flex: 1; min-width: 0; }
.tb-title b { display: block; font-size: 17px; letter-spacing: .3px; }
.tb-title span { display: block; font-size: 12px; color: var(--ink-2); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); background: rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-s); transition: .18s;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn.danger { color: #E5809A; }

/* ---------------- 底部导航 ---------------- */
.nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 40;
  display: flex; align-items: stretch;
  height: var(--nav-h);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -6px 24px rgba(186, 158, 168, .12);
}
.nav-item {
  flex: 1; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-3); font-size: 11px; transition: .2s; border-radius: 14px;
}
.nav-item span { font-size: 11px; letter-spacing: .2px; }
.nav-item.active { color: var(--pink-d); }
body.role-parent .nav-item.active { color: var(--lav-d); }
.nav-item.active::before {
  content: ''; position: absolute; top: 2px; width: 26px; height: 3px; border-radius: 2px;
  background: currentColor; opacity: .85;
}
/* 儿童端导航：图标与文字再放大一档，降低识读门槛 */
.nav-child .nav-item span { font-size: 12.5px; font-weight: 600; }
.nav-child .nav-item { gap: 4px; }
/* 家长端导航：文案较长（任务管理/积分奖励），收紧字距避免挤压换行 */
.nav-parent .nav-item span { font-size: 10.5px; letter-spacing: 0; }
.nav-dot {
  position: absolute; top: 4px; right: 50%; transform: translateX(20px);
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #F5828F; color: #fff; font-size: 10px; font-style: normal;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(245, 130, 143, .5);
}
.nav-dot.ok { background: var(--ok); }

/* ---------------- Hero ---------------- */
.hero {
  margin: 14px 16px 6px;
  padding: 18px 18px 16px;
  border-radius: var(--r-l);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
/* .hero-child 已删除：儿童首页不再渲染欢迎 Hero（含完成率与积分统计） */
.hero-parent { background: linear-gradient(135deg, #E8EFFC 0%, #F1EBFC 55%, #FDECF3 100%); }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-left { flex: 1; min-width: 0; }
.hero-date { font-size: 12px; color: #8B7F92; letter-spacing: .3px; }
.hero-hi { font-size: 22px; font-weight: 700; margin-top: 4px; letter-spacing: .4px; }
.hero-sub { font-size: 13px; color: #7C7188; margin-top: 6px; }
.hero-sub b { font-size: 17px; color: var(--ink); }
.hero-stats {
  display: flex; margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed rgba(140, 130, 155, .22);
}
.hs { flex: 1; text-align: center; }
.hs b { display: block; font-size: 19px; }
.hs span { font-size: 11.5px; color: #8B7F92; }

/* ---------------- 进度环 ---------------- */
.ring { position: relative; flex: none; }
.ring svg { display: block; }
.ring-txt {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
}
.ring-txt b { font-size: 20px; letter-spacing: -.5px; }
.ring-txt b i { font-size: 11px; font-style: normal; margin-left: 1px; }
.ring-txt span { font-size: 10px; color: #8B7F92; }

/* ---------------- 区块标题 / 卡片 ---------------- */
.sec-title {
  display: flex; align-items: center; gap: 7px;
  margin: 20px 16px 10px; font-size: 15px; font-weight: 700; color: var(--ink);
}
.sec-title .ico { color: var(--ink-2); }
.sec-sub { font-size: 11.5px; font-weight: 400; color: var(--ink-3); margin-left: auto; }
.card {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 16px; margin: 0 16px;
}
.card-flat { padding: 6px 14px; }
.card-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 700; margin-bottom: 12px; color: var(--ink);
}
.card-title .ico { color: var(--ink-2); }

/* ---------------- 任务卡片（儿童端） ---------------- */
.task-list { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.task-card {
  background: var(--card); border-radius: var(--r-l); box-shadow: var(--shadow);
  padding: 16px; transition: .2s;
}
.task-card.st-done, .task-card.st-makeup { background: linear-gradient(150deg, #F7FBF9, #FDFEFD); }
.task-card.st-makeup { background: linear-gradient(150deg, #FFFBEE, #FFFEF8); }
.task-card.st-expired, .task-card.st-missed { opacity: .88; }
/* 待打卡：当日唯一可操作的主卡片，用暖橙描边把注意力引过来 */
.task-card.st-pending {
  box-shadow: 0 8px 24px rgba(237, 162, 85, .18), 0 0 0 1.6px #FBE3C8;
}
/* 未到时间：保留可读性但整体弱化，避免误以为现在就能点 */
.task-card.st-notstart { opacity: .94; }
.task-card.st-notstart .tc-icon { background: linear-gradient(140deg, #F7F4F8, #F1F5FA); }
.tc-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.tc-icon {
  width: 52px; height: 52px; border-radius: 17px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: linear-gradient(140deg, #FFF1F6, #F2F7FF); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9);
}
.tc-info { flex: 1; min-width: 0; }
.tc-name { font-size: 18px; font-weight: 700; letter-spacing: .3px; }
body.role-child .tc-name { font-size: 19px; }
.tc-meta { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.tc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.pts {
  font-size: 15px; font-weight: 700; color: var(--lemon-d);
  background: var(--makeup-bg); border-radius: 10px; padding: 2px 8px;
}
.pts.sm { font-size: 12.5px; padding: 1px 6px; }

/* ---------------- 鼓励语 ---------------- */
.quote-card {
  margin: 18px 16px 8px; padding: 18px 18px 16px;
  border-radius: var(--r-l); position: relative;
  background: linear-gradient(140deg, #FFF6FA, #F6F3FF);
  box-shadow: var(--shadow-s);
}
.quote-mark { font-size: 34px; line-height: .6; color: #FFC9DC; }
.quote-txt { font-size: 15.5px; line-height: 1.7; margin-top: 6px; letter-spacing: .2px; }
.quote-from { font-size: 12px; color: var(--ink-2); text-align: right; margin-top: 8px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 13px;
  font-size: 14px; font-weight: 600; letter-spacing: .3px;
  transition: .16s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-block { width: 100%; }
.btn-lg { height: 54px; font-size: 17px; border-radius: 17px; }
body.role-child .btn-lg { height: 58px; font-size: 18px; }
.btn-sm { height: 34px; font-size: 13px; padding: 0 12px; border-radius: 11px; }
.btn-xs { height: 28px; font-size: 12px; padding: 0 10px; border-radius: 9px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #FFB0C8, #FF8FB2);
  box-shadow: 0 6px 16px rgba(255, 143, 178, .34);
}
.btn-ok { color: #fff; background: linear-gradient(135deg, #8BD3AE, #63BE8E); box-shadow: 0 6px 16px rgba(99, 190, 142, .3); }
.btn-soft { color: var(--lav-d); background: #F2EEFC; }
.btn-ghost { color: var(--ink-2); background: #F6F3F5; }
.btn-danger { color: #fff; background: linear-gradient(135deg, #F49AAE, #E9738F); box-shadow: 0 6px 16px rgba(233, 115, 143, .3); }
.btn-makeup { color: #A87A11; background: var(--makeup-bg); box-shadow: inset 0 0 0 1.4px #F0DC9E; }
.btn-locked { color: #B4AEBE; background: #F3F1F5; }
.btn[disabled] { pointer-events: none; }
.btn-ghost[disabled] { opacity: .45; }
/* 并排的「数据管理」动作按钮（导出 CSV / 导出 JSON）：.btn 默认 nowrap，
   在窄屏上长文案会撑破按钮。这里允许折行 + 允许收缩，文案永远待在按钮内。 */
.act-row { align-items: stretch; }
.act-btn {
  min-width: 0; height: auto; min-height: 46px;
  padding: 8px 12px;
  font-size: 13.5px; letter-spacing: 0; line-height: 1.3;
  white-space: normal; text-align: center;
}

/* ---------------- Chip ---------------- */
.chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 8px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; letter-spacing: .2px;
}
.chip-ok { color: #3D9A6E; background: var(--ok-bg); }
.chip-pending { color: #C97F2E; background: var(--pending-bg); }
.chip-muted { color: #928C9E; background: var(--muted-bg); }
.chip-makeup { color: #A87A11; background: var(--makeup-bg); }
.chip-info { color: #5C8BD4; background: var(--info-bg); }
.chip-mint { color: #3D9A6E; background: var(--ok-bg); }
.chip-lav { color: #6E5BC0; background: #F0EBFC; }

/* ---------------- 分段控件 ---------------- */
.seg {
  display: flex; gap: 4px; padding: 4px;
  background: rgba(255, 255, 255, .8); border-radius: 14px;
  box-shadow: var(--shadow-s); margin: 0 16px;
}
.seg-item {
  flex: 1; height: 34px; border-radius: 11px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); transition: .18s;
}
.seg-item.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(186, 158, 168, .16); }
body.role-parent .seg-item.active { color: var(--lav-d); }
.wrap .seg { margin: 0; }

/* ---------------- 表单 ---------------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { margin-bottom: 4px; }
.label {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px;
}
.hint { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.hint-inline { font-weight: 400; color: var(--ink-3); font-size: 11px; }
.input {
  width: 100%; height: 44px; padding: 0 13px;
  border: 1.5px solid var(--line); border-radius: 13px;
  background: #FDFBFC; font-size: 15px; color: var(--ink);
  outline: none; transition: .18s; appearance: none;
}
.input:focus { border-color: var(--pink); background: #fff; box-shadow: 0 0 0 3px rgba(255, 176, 200, .16); }
.textarea { height: auto; padding: 11px 13px; line-height: 1.6; resize: vertical; }
select.input { background-image: none; }
.emoji-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.emoji {
  width: 40px; height: 40px; border-radius: 12px; font-size: 20px;
  background: #F8F5F7; transition: .16s; display: flex; align-items: center; justify-content: center;
}
.emoji.active { background: linear-gradient(135deg, #FFE6EE, #FFD3E3); box-shadow: inset 0 0 0 1.5px var(--pink-d); }
.member-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-item {
  display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px;
  border-radius: 14px; background: #F8F5F7; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: .16s;
}
.mp-item.active { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--lav-d), var(--shadow-s); }
.wd-pick { display: flex; gap: 6px; margin-top: 10px; }
.wd-pick.hide { display: none; }
.wd {
  flex: 1; height: 38px; border-radius: 12px; background: #F8F5F7;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: .16s;
}
.wd.active { background: linear-gradient(135deg, #E4F5EA, #C9EBD6); color: #3D9A6E; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 38px; height: 38px; border-radius: 12px; background: #F6F3F5;
  font-size: 20px; color: var(--ink-2); display: flex; align-items: center; justify-content: center;
}
.stepper b { font-size: 17px; min-width: 56px; text-align: center; }
.quick-pts { display: flex; flex-wrap: wrap; gap: 7px; }
.qp {
  height: 34px; padding: 0 13px; border-radius: 11px; font-size: 13.5px; font-weight: 600;
  background: var(--ok-bg); color: #3D9A6E;
}
.qp.minus { background: #FDF0F3; color: #D2708A; }
.ro-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rw-preview {
  width: 68px; height: 68px; border-radius: 16px; flex: none;
  background: linear-gradient(140deg, #FFF1F6, #F2F7FF) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), var(--shadow-s);
}

/* ---------------- 开关 ---------------- */
.switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.switch-row:last-child { border-bottom: none; }
.sw-main { flex: 1; }
.sw-title { font-size: 14.5px; font-weight: 600; }
.sw-desc { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.switch {
  width: 48px; height: 28px; border-radius: 14px; flex: none;
  background: #E7E2E9; position: relative; transition: .22s;
}
.switch i {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(140, 120, 140, .28); transition: .22s;
}
.switch.on { background: linear-gradient(135deg, #A9DCBF, #63BE8E); }
.switch.on i { left: 23px; }

/* ---------------- 列表 ---------------- */
.list { padding: 0 16px; display: flex; flex-direction: column; gap: 9px; }
.card-flat .list, .card .list { padding: 0; }
.list-item {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-s);
  padding: 12px 14px;
}
.card-flat .list-item, .card .list-item { box-shadow: none; padding: 11px 0; border-bottom: 1px solid var(--line-2); border-radius: 0; }
.card-flat .list-item:last-child, .card .list-item:last-child { border-bottom: none; }
.li-icon {
  width: 38px; height: 38px; border-radius: 13px; flex: none; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #FFF3F7, #F3F7FF);
}
.li-icon.ic-ok { background: var(--ok-bg); }
.li-icon.ic-muted { background: var(--muted-bg); }
.li-main { flex: 1; min-width: 0; }
.li-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.li-sub { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.li-amt { font-size: 16px; font-weight: 700; flex: none; }
.li-amt.up { color: var(--ok); }
.li-amt.down { color: #D2708A; }

/* ---------------- 成员卡片 ---------------- */
.mem-card {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line-2);
}
.mem-card:last-child { border-bottom: none; }
.mc-main { flex: 1; min-width: 0; }
.mc-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.mc-sub { font-size: 11.5px; color: var(--ink-2); margin: 3px 0 7px; }
.mc-pct { font-size: 19px; font-weight: 700; color: var(--lav-d); flex: none; }
.mc-pct i { font-size: 11px; font-style: normal; }
.mc-pts { text-align: center; flex: none; margin-right: 4px; }
.mc-pts b { display: block; font-size: 18px; color: var(--lemon-d); }
.mc-pts span { font-size: 10.5px; color: var(--ink-3); }

/* ---------------- 动态流 ---------------- */
.feed-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.feed-item:last-child { border-bottom: none; }
.fi-main { flex: 1; min-width: 0; }
.fi-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fi-sub { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }

/* ---------------- 任务管理行 ---------------- */
.task-rows { display: flex; flex-direction: column; gap: 10px; }
.task-row {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-s);
  padding: 13px 14px; transition: .18s;
}
.task-row.picked { box-shadow: inset 0 0 0 1.8px var(--lav-d), var(--shadow-s); }
.pick {
  width: 24px; height: 24px; border-radius: 8px; flex: none;
  background: #F3F0F4; color: transparent; display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px #E3DEE6;
}
.pick.on { background: var(--lav-d); color: #fff; box-shadow: none; }
.tr-icon {
  width: 44px; height: 44px; border-radius: 15px; flex: none; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #FFF3F7, #F3F7FF);
}
.tr-main { flex: 1; min-width: 0; }
.tr-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tr-meta { font-size: 11.5px; color: var(--ink-2); margin-top: 4px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.tr-note { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.tr-actions { display: flex; gap: 4px; flex: none; }
.tr-actions .icon-btn { width: 32px; height: 32px; border-radius: 10px; }
.batch-bar {
  position: fixed; bottom: calc(var(--nav-h) + 12px); left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 448px; z-index: 35;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .97); box-shadow: var(--shadow-l);
  font-size: 13px; color: var(--ink-2);
}
.batch-bar b { color: var(--lav-d); font-size: 15px; }
.batch-bar .btn { margin-left: auto; }

/* ---------------- 积分 ---------------- */
.pts-hero {
  margin: 14px 16px 0; padding: 20px 18px 16px; border-radius: var(--r-l);
  background: linear-gradient(135deg, #FFF1C9 0%, #FFE3EC 55%, #F0E9FF 100%);
  box-shadow: var(--shadow);
}
.pts-main span { font-size: 12.5px; color: #8B7F92; }
.pts-main b { display: block; font-size: 42px; line-height: 1.1; letter-spacing: -1px; margin-top: 2px; }
.pts-main em { display: block; font-size: 11.5px; color: #A87A11; font-style: normal; margin-top: 4px; }
.pts-row { display: flex; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(140, 130, 155, .22); }
.pts-cell { flex: 1; text-align: center; }
.pts-cell b { display: block; font-size: 18px; }
.pts-cell span { font-size: 11px; color: #8B7F92; }
.reward-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.reward-card {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-s);
  padding: 10px; display: flex; flex-direction: column; gap: 7px;
}
.reward-card.disabled { opacity: .74; }
.rw-img {
  height: 88px; border-radius: 14px; position: relative;
  background: linear-gradient(140deg, #FFF1F6, #F2F7FF) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; font-size: 34px;
}
.rw-cost {
  position: absolute; right: 7px; bottom: 7px;
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(255, 255, 255, .92); color: var(--lemon-d);
  font-size: 11.5px; font-weight: 700; font-style: normal;
  padding: 2px 7px; border-radius: 9px; box-shadow: var(--shadow-s);
}
.rw-name { font-size: 14px; font-weight: 700; }
.rw-desc { font-size: 11px; color: var(--ink-2); min-height: 16px; }

/* ---------------- 统计卡 ---------------- */
.stat-row { display: flex; gap: 10px; padding: 0 16px; margin-top: 14px; }
.stat-card {
  flex: 1; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-s);
  padding: 14px 8px 12px; text-align: center;
}
.stat-card b { display: block; font-size: 21px; letter-spacing: -.4px; }
.stat-card span { font-size: 10.5px; color: var(--ink-2); line-height: 1.3; display: block; margin-top: 2px; }
.sc-icon {
  width: 32px; height: 32px; border-radius: 11px; margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
}
.ic-lemon { background: var(--makeup-bg); color: var(--lemon-d); }
.ic-mint { background: var(--ok-bg); color: var(--ok); }
.ic-sky { background: var(--info-bg); color: var(--info); }

/* ---------------- 日历 ---------------- */
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-size: 14.5px; font-weight: 700; }
.cal-head .icon-btn { width: 30px; height: 30px; border-radius: 10px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.cal-week span { text-align: center; font-size: 11px; color: var(--ink-3); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-cell {
  aspect-ratio: 1 / 1; border-radius: 11px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 13.5px; color: var(--ink); transition: .15s; background: #FBF8FA;
}
.cal-cell.blank { background: none; }
.cal-cell.future { color: var(--ink-3); background: #FCFAFC; }
.cal-cell.today { background: #FFF2F6; font-weight: 700; color: var(--pink-d); }
.cal-cell.selected { box-shadow: inset 0 0 0 1.8px var(--lav-d); }
.cal-cell:not(.blank):active { transform: scale(.94); }
.cal-d { line-height: 1; }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 3px; display: block; }
.dot-ok { background: var(--ok); }
.dot-pending { background: var(--pending); }
.dot-muted { background: var(--muted); }
.dot-makeup { background: var(--makeup); }
.cal-legend {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px;
  padding-top: 10px; border-top: 1px solid var(--line-2);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-2); }
.cal-legend .cal-dot { margin-top: 0; }
.cal-sum { font-size: 12px; color: var(--ink-2); margin-top: 10px; text-align: center; }
.cal-sum b { color: var(--ok); font-size: 14px; }

/* ---------------- 素材 ---------------- */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px; }
.media-item {
  aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; position: relative;
  background: #F5F1F4; box-shadow: var(--shadow-s);
}
.media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mi-none { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.mi-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, .88); color: var(--lav-d);
  display: flex; align-items: center; justify-content: center;
}
.mi-date {
  position: absolute; left: 5px; bottom: 5px;
  font-size: 10px; color: #fff; background: rgba(0, 0, 0, .32);
  padding: 1px 5px; border-radius: 6px; backdrop-filter: blur(4px);
}
.thumb {
  width: 44px; height: 44px; border-radius: 11px; overflow: hidden; flex: none;
  position: relative; background: #F5F1F4;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-none { display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.thumb-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .22); color: #fff;
}
.thumb-del {
  position: absolute; top: -1px; right: -1px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(90, 80, 100, .72); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.up-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.up-tile { position: relative; }
.up-tile .thumb { width: 100%; height: 84px; border-radius: 14px; }
.up-del {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(90, 80, 100, .8); color: #fff; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.up-name { font-size: 10px; color: var(--ink-3); margin-top: 4px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-add {
  height: 84px; border-radius: 14px; border: 1.6px dashed #E0D6E2; background: #FDFBFC;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--ink-3); font-size: 11.5px; transition: .16s;
}
.up-add:active { background: #F8F4F8; }

/* ---------------- 打卡提交页 ---------------- */
.checkin-head {
  display: flex; align-items: center; gap: 13px;
  background: var(--card); border-radius: var(--r-l); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 18px;
}
.ch-icon {
  width: 58px; height: 58px; border-radius: 19px; flex: none; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #FFF1F6, #F2F7FF);
}
.ch-info { flex: 1; min-width: 0; }
.ch-name { font-size: 19px; font-weight: 700; }
.ch-meta { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.ch-note { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.ch-pts { text-align: center; flex: none; }
.ch-pts b { display: block; font-size: 22px; color: var(--lemon-d); }
.ch-pts span { font-size: 10.5px; color: var(--ink-3); }
.sign-block { text-align: center; padding: 26px 16px; background: var(--card); border-radius: var(--r-l); box-shadow: var(--shadow); margin-bottom: 18px; }
.sign-emoji { font-size: 54px; }
.sign-t { font-size: 17px; font-weight: 700; margin-top: 10px; }
.sign-s { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; }
/* 提交条贴「底部导航上沿」而不是视口底部：底部导航 z-index 更高且不透明，
   原先 bottom:0 会把提交按钮压掉大半，只留一条边缘可点 */
.submit-bar {
  position: fixed; bottom: var(--nav-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 35;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(255, 248, 244, 0), rgba(255, 248, 244, .96) 34%);
}
.tip-soft {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 11.5px; color: var(--ink-3); line-height: 1.55;
  background: rgba(255, 255, 255, .66); border-radius: 13px;
  padding: 10px 12px; margin-top: 16px;
}
.tip-soft .ico { margin-top: 2px; }

/* ---------------- 空态 ---------------- */
.empty { text-align: center; padding: 30px 16px; color: var(--ink-3); }
.empty .ico { color: #E2D8E6; }
.empty-t { font-size: 14px; font-weight: 600; margin-top: 8px; color: var(--ink-2); }
.empty-s { font-size: 11.5px; margin-top: 3px; }

/* ---------------- 进度条 ---------------- */
.bar { height: 6px; border-radius: 3px; background: #F1ECF0; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #CFE3FA, #8FA6E8); transition: width .4s ease; }
.bar-ok i { background: linear-gradient(90deg, #A9DCBF, #63BE8E); }
.bar-warn i { background: linear-gradient(90deg, #FBD9B8, #EDA255); }
.bar-rank i { background: linear-gradient(90deg, #E2D9F7, #8E7BD8); }

/* ---------------- 头像 ---------------- */
.avatar {
  border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85), var(--shadow-s);
}
.av-pink { background: linear-gradient(140deg, #FFE0EA, #FFC2D6); }
.av-sky { background: linear-gradient(140deg, #E1EEFC, #BCD9F5); }
.av-mint { background: linear-gradient(140deg, #E4F5EA, #B9E3C6); }

/* ---------------- 弹窗 ---------------- */
#modal-root { position: relative; z-index: 60; }
.modal-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(72, 60, 78, .34);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .22s;
}
.modal-mask.in { opacity: 1; }
.modal-mask.sheet-mode { align-items: flex-end; padding: 0; }
.modal {
  width: 100%; max-width: 420px; max-height: 84vh;
  background: #fff; border-radius: 24px;
  box-shadow: var(--shadow-l);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(14px) scale(.97); opacity: 0;
  transition: transform .26s cubic-bezier(.2, .9, .3, 1), opacity .22s;
}
.modal-mask.in .modal { transform: none; opacity: 1; }
.modal-lg { max-width: 460px; }
.modal-head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 12px; flex: none;
}
.modal-title { flex: 1; font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.modal-x { width: 32px; height: 32px; box-shadow: none; background: #F6F3F5; }
.modal-body { padding: 4px 18px 8px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-foot {
  display: flex; gap: 10px; padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  flex: none;
}
.modal-foot .btn { flex: 1; height: 46px; font-size: 15px; }
.confirm-text { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); padding: 4px 0 8px; }

/* ---------------- 打卡成功弹窗 ---------------- */
.succ { text-align: center; padding: 12px 8px 4px; }
.succ-badge {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #8BD3AE, #63BE8E);
  box-shadow: 0 10px 26px rgba(99, 190, 142, .38);
  animation: pop .46s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.succ-t { font-size: 21px; font-weight: 700; letter-spacing: .5px; }
.succ-task { font-size: 14px; color: var(--ink-2); margin-top: 5px; }
.succ-pts {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 14px;
  background: var(--makeup-bg); color: var(--lemon-d);
  padding: 7px 16px; border-radius: 14px;
}
.succ-pts b { font-size: 21px; }
.succ-pts span { font-size: 12px; }
.succ-sub { font-size: 12px; color: var(--ink-3); margin-top: 12px; }

/* ---------------- 兑换审核弹窗 ---------------- */
.rv-top { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.rv-name { font-size: 15px; font-weight: 700; }
.rv-sub { font-size: 11.5px; color: var(--ink-2); }
.rv-pts { margin-left: auto; display: flex; align-items: center; gap: 3px; color: var(--lemon-d); font-weight: 700; }
.rv-pts b { font-size: 19px; }
.rv-reward { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.rv-rw-icon {
  width: 52px; height: 52px; border-radius: 16px; flex: none; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #FFF1F6, #F2F7FF);
}
.rv-rw-name { font-size: 16px; font-weight: 700; }
.rv-rw-sub { font-size: 12px; color: var(--ink-2); margin-top: 3px; }

/* ---------------- 素材预览 ---------------- */
.pv { padding-bottom: 4px; }
.pv-stage { border-radius: 16px; overflow: hidden; background: #F7F4F6; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.pv-media { width: 100%; max-height: 56vh; object-fit: contain; display: block; }
.pv-fallback { background-position: center; background-size: cover; height: 300px; position: relative; }
.pv-fb-t {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  background: rgba(40, 32, 46, .34); color: #fff; font-size: 13px;
}
.pv-fb-t small { font-size: 10.5px; opacity: .82; }
.pv-none { color: var(--ink-3); font-size: 13px; padding: 60px 0; }
.pv-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.pv-thumb {
  width: 54px; height: 54px; border-radius: 12px; overflow: hidden; flex: none;
  opacity: .6; transition: .16s;
}
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-thumb.active { opacity: 1; box-shadow: inset 0 0 0 2px var(--lav-d); }
.pv-meta { font-size: 12px; color: var(--ink-2); text-align: center; margin-top: 10px; }

/* ---------------- 当日详情 ---------------- */
.day-head { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 12px; }
.day-item { background: #FCFAFB; border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.day-item:last-child { margin-bottom: 4px; }
.di-top { display: flex; align-items: center; gap: 10px; }
.di-icon {
  width: 38px; height: 38px; border-radius: 13px; flex: none; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #FFF3F7, #F3F7FF);
}
.di-info { flex: 1; min-width: 0; }
.di-name { font-size: 14.5px; font-weight: 700; }
.di-meta { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.di-note { font-size: 12px; color: var(--ink-2); margin-top: 8px; background: #fff; padding: 7px 10px; border-radius: 10px; }
.di-media { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.di-media .thumb { width: 52px; height: 52px; }

/* ---------------- Toast ---------------- */
.toast-root {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 16px; pointer-events: none;
}
.toast {
  display: inline-flex; align-items: center; gap: 7px;
  max-width: 100%; padding: 10px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .97); box-shadow: var(--shadow-l);
  font-size: 13.5px; font-weight: 600;
  transform: translateY(-14px); opacity: 0; transition: .26s;
}
.toast.in { transform: none; opacity: 1; }
.toast-ok { color: #3D9A6E; }
.toast-warn { color: #C97F2E; }
.toast-err { color: #D2708A; }
.toast-info { color: var(--lav-d); }

/* ---------------- 折叠展开（积分流水明细） ---------------- */
.fold-toggle {
  display: block; width: 100%; margin: 10px 0 2px; padding: 11px;
  border-radius: 12px; background: rgba(255, 255, 255, .6);
  color: var(--ink-2); font-size: 12.5px; font-weight: 600;
  box-shadow: var(--shadow-s); transition: .16s;
}
.fold-toggle:active { transform: scale(.98); }

/* 儿童个人中心样式已删除：儿童端不再展示个人中心 */
.ver { text-align: center; font-size: 11px; color: var(--ink-3); margin: 20px 0 8px; }

/* ---------------- 数据看板 ---------------- */
.board-hero { display: flex; align-items: center; gap: 16px; }
.bh-stats { flex: 1; min-width: 0; }
.bh-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed var(--line-2); }
.bh-row:last-child { border-bottom: none; }
.bh-row span { color: var(--ink-2); }
.bh-row b { font-size: 14.5px; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.rank-row:last-child { border-bottom: none; }
.rk-no { width: 22px; text-align: center; font-size: 15px; font-weight: 700; color: var(--ink-3); flex: none; }
.rk-main { flex: 1; min-width: 0; }
.rk-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.rk-val { text-align: center; flex: none; }
.rk-val b { display: block; font-size: 18px; color: var(--lav-d); }
.rk-val span { font-size: 10.5px; color: var(--ink-3); }
.mem-chips { display: flex; gap: 7px; overflow-x: auto; padding: 12px 16px 4px; margin: 0; }
.card .mem-chips, .wrap .mem-chips { padding-left: 0; padding-right: 0; }
.mchip {
  height: 32px; padding: 0 13px; border-radius: 11px; flex: none;
  background: rgba(255, 255, 255, .85); color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-s); transition: .16s;
}
.mchip.active { background: linear-gradient(135deg, #E9E3FB, #DCD2F3); color: #6E5BC0; }

/* 权限矩阵样式已删除：设置页不再展示权限矩阵栏目 */

/* ---------------- 登录页 ---------------- */
.login { max-width: 480px; margin: 0 auto; padding: 46px 20px 40px; min-height: 100vh; }
.login-hero { text-align: center; margin-bottom: 32px; }
.lg-logo {
  width: 82px; height: 82px; border-radius: 27px; margin: 0 auto 16px; font-size: 42px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #FFE6EE, #FFF3E2 55%, #E9F6FF);
  box-shadow: var(--shadow);
}
.lg-title { font-size: 25px; font-weight: 700; letter-spacing: .5px; }
.lg-sub { font-size: 13px; color: var(--ink-2); margin-top: 7px; }
.login-box {
  background: rgba(255, 255, 255, .78); border-radius: var(--r-l);
  padding: 18px 16px 8px; box-shadow: var(--shadow);
}
.lb-title { font-size: 15px; font-weight: 700; }
.login-foot { margin-top: 24px; display: flex; flex-direction: column; gap: 9px; }
.lf-item { display: flex; align-items: flex-start; gap: 7px; font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }
.lf-item .ico { margin-top: 2px; color: var(--ink-3); }

/* ---------------- 账号登录表单（v1.3） ----------------
   一个账号 + 一个密码，登录后由账号身份决定进儿童端还是家长端。
   旧的「家长入口 + 4 位数字密码闸门 + 自绘键盘」已整体移除。 */
.acct-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.lf-field { display: flex; flex-direction: column; gap: 6px; }
.lf-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.lf-label .ico { color: var(--ink-3); }
.lf-input { font-size: 16px; padding: 12px 14px; }
.lf-err { min-height: 17px; font-size: 12px; color: #E2807F; font-weight: 600; line-height: 1.4; }
.gate-sub { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; padding: 0 10px; }
.gate-sub.center { text-align: center; margin-bottom: 6px; }
.lb-fresh {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; padding: 10px 12px;
  border-radius: var(--r-s); background: var(--info-bg); color: #5E7FB8;
  font-size: 11.5px; line-height: 1.5;
}
.lb-fresh .ico { flex: none; margin-top: 2px; }

/* 头像快捷入口：只帮孩子把账号填好，密码照样要输（不是免密通道） */
.aq-title {
  display: flex; align-items: center; gap: 7px;
  margin: 26px 0 11px; font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.aq-title span { font-size: 11px; font-weight: 500; color: var(--ink-3); }
.acct-quick { display: flex; flex-direction: column; gap: 9px; }
.aq-item {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 11px 12px; border: 0; cursor: pointer; font-family: inherit; color: var(--ink);
  border-radius: var(--r); background: rgba(255, 255, 255, .8); box-shadow: var(--shadow-s);
  transition: transform .16s, background .16s;
}
.aq-item:active { transform: scale(.98); background: #FCF8FA; }
.aq-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aq-main b { font-size: 14.5px; }
.aq-main span { font-size: 11px; color: var(--ink-2); margin-top: 1px; }
.aq-tag {
  flex: none; font-size: 10.5px; font-style: normal; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; background: var(--muted-bg); color: var(--ink-3);
}
.aq-tag.aq-new { background: var(--pending-bg); color: var(--pending); }
.role-guest { background: linear-gradient(160deg, #FBF3EE 0%, #F6EFF7 45%, #EEF4FC 100%); }

/* ---------------- 成就海报弹窗 ---------------- */
.poster { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.poster-img {
  width: 100%; max-width: 330px; height: auto; display: block;
  border-radius: var(--r); box-shadow: var(--shadow);
}
.poster-hint {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11.5px; color: var(--ink-2); line-height: 1.5; text-align: center;
}
.poster-hint .ico { flex: none; color: var(--ink-3); }

/* ---------------- 儿童端「我的」页 ---------------- */
.me-hero {
  margin: 16px 16px 0; padding: 22px 18px 20px; text-align: center;
  border-radius: var(--r-l); background: rgba(255, 255, 255, .82); box-shadow: var(--shadow);
}
.me-av { display: flex; justify-content: center; margin-bottom: 10px; }
.me-name { font-size: 19px; font-weight: 700; }
.me-tag { margin-top: 7px; display: flex; justify-content: center; }
.me-hero .chip { font-size: 11px; }
.me-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 2px; border-bottom: 1px solid var(--line-2);
}
.me-row:last-child { border-bottom: 0; }
.me-rl { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.me-rl .ico { color: var(--ink-3); }
.me-rr { font-size: 14px; font-weight: 600; }
.me-hint { text-align: center; font-size: 11.5px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }

/* ---------------- 账号管理（家长端设置页） ---------------- */
.acct-list { display: flex; flex-direction: column; }
.acct-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 0; border-bottom: 1px solid var(--line-2);
}
.acct-row:last-child { border-bottom: 0; }
.ac-main { flex: 1; min-width: 0; }
.ac-name { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; }
.ac-name .chip { font-size: 10px; padding: 2px 7px; }
.ac-sub {
  display: flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: var(--ink-2); margin-top: 3px;
}
.ac-sub .ico { color: var(--ink-3); }
.ac-warn { font-style: normal; color: var(--pending); font-weight: 600; }
.acct-row .btn { flex: none; }

/* ---------------- 小屏适配 ---------------- */
@media (max-width: 360px) {
  .hero { margin: 12px 12px 4px; padding: 15px 14px 13px; }
  .wrap { padding: 12px 12px 8px; }
  .task-list, .reward-grid, .media-grid, .list, .stat-row { padding-left: 12px; padding-right: 12px; }
  .card, .seg, .sec-title { margin-left: 12px; margin-right: 12px; }
  .sec-title { margin-left: 12px; }
  .pts-hero { margin: 12px 12px 0; }
  .hero-hi { font-size: 20px; }
  .ring { transform: scale(.92); }
}
@media (min-width: 720px) {
  body { background: linear-gradient(160deg, #FBF3EE 0%, #F6EFF7 45%, #EEF4FC 100%); }
  #app { padding: 18px 0; }
  .page { border-radius: 26px; background: rgba(255, 255, 255, .42); box-shadow: 0 18px 60px rgba(170, 145, 160, .16); overflow: hidden; min-height: calc(100vh - 36px); }
  .nav { border-radius: 22px; bottom: 18px; }
  .topbar { border-radius: 26px 26px 0 0; }
}

/* ---------------- 跨设备同步弹窗 (v1.4.0) ---------------- */
.cloud-status { padding: 4px 0; }
.cloud-status .cs-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 4px; border-bottom: 1px dashed var(--border, #EFE7E1); font-size: 13px;
}
.cloud-status .cs-row:last-child { border-bottom: none; }
.cloud-status .cs-label { color: var(--ink-3); flex: none; }
.cloud-status .cs-val { color: var(--ink-1); font-weight: 500; word-break: break-all; text-align: right; }

.cloud-form { padding: 4px 0; }
.cloud-form .cf-tip {
  font-size: 12px; color: var(--ink-3); background: var(--soft-1, #FBF5F0);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; line-height: 1.55;
}
.cloud-form .cf-tabs {
  display: flex; gap: 8px; margin: 14px 0 12px;
  background: var(--soft-1, #FBF5F0); border-radius: 10px; padding: 4px;
}
.cloud-form .cf-tab {
  flex: 1; background: transparent; border: none; padding: 8px 12px;
  border-radius: 8px; font-size: 13px; color: var(--ink-3); cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.cloud-form .cf-tab.active {
  background: var(--card, #FFFFFF); color: var(--ink-1); font-weight: 500;
  box-shadow: 0 1px 4px rgba(180, 140, 130, .12);
}
.cloud-form .cf-panel { margin-top: 4px; }
.cloud-form .lf-field { margin-bottom: 10px; display: block; }
