/* ===== 孩子端 v2：柔和奶油风 + 精致排版 ===== */
body.kid-mode{
  min-height:100vh;
  display:flex;align-items:center;justify-content:center;gap:40px;
  padding:26px 20px;
  background:
    radial-gradient(900px 520px at 12% -8%, #FFF6E2 0%, rgba(255,246,226,0) 62%),
    radial-gradient(760px 480px at 96% 92%, #FFEDF2 0%, rgba(255,237,242,0) 60%),
    radial-gradient(600px 400px at 70% 10%, #EDF6FF 0%, rgba(237,246,255,0) 62%),
    #FBF4E9;
  position:relative;
}
body.kid-mode::before{
  content:'';position:fixed;inset:0;pointer-events:none;z-index:0;
  background-image:radial-gradient(rgba(255,197,61,.28) 1.3px,transparent 1.4px);
  background-size:26px 26px;
  mask-image:radial-gradient(circle at 50% 45%,rgba(0,0,0,.85),transparent 78%);
}

/* ------- 手机壳 ------- */
.phone{
  position:relative;z-index:2;
  width:392px;height:844px;flex:0 0 auto;
  background:#FFFCF6;
  border-radius:54px;
  border:10px solid #221A12;
  box-shadow:
    0 0 0 2px #3A2E22,
    0 34px 70px -12px rgba(58,40,22,.35),
    0 70px 120px -40px rgba(58,40,22,.28),
    inset 0 0 0 1px rgba(255,255,255,.14);
  display:flex;flex-direction:column;overflow:hidden;
}
/* 灵动岛/顶部 */
.statusbar{
  height:48px;flex:0 0 auto;position:relative;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 26px 0 30px;font-size:12.5px;font-weight:700;color:#3B2C1E;
  letter-spacing:.3px;
}
.island{
  position:absolute;left:50%;top:9px;transform:translateX(-50%);
  width:104px;height:29px;border-radius:99px;background:#1A1310;
}
.statusbar .right{display:flex;gap:5px;align-items:center;}
.statusbar .sig{display:flex;align-items:flex-end;gap:2px;height:9px;}
.statusbar .sig i{width:3px;background:#3B2C1E;border-radius:1px;}
.statusbar .sig i:nth-child(1){height:4px;}
.statusbar .sig i:nth-child(2){height:6px;}
.statusbar .sig i:nth-child(3){height:8px;}
.statusbar .sig i:nth-child(4){height:9px;opacity:.35;}
.statusbar .batt{
  width:23px;height:11.5px;border:1.4px solid rgba(59,44,30,.45);border-radius:3.5px;position:relative;
}
.statusbar .batt::after{
  content:'';position:absolute;left:1.4px;top:1.4px;bottom:1.4px;width:72%;
  background:#3B2C1E;border-radius:1.5px;
}
.capsule{
  position:absolute;right:14px;top:56px;z-index:6;
  width:78px;height:29px;border-radius:99px;
  background:rgba(255,255,255,.62);
  border:1px solid rgba(255,255,255,.9);
  backdrop-filter:blur(12px);
  box-shadow:0 1px 3px rgba(90,66,35,.08);
  display:flex;align-items:center;justify-content:center;gap:9px;
  font-size:12px;color:#5B4A3A;font-weight:700;
}
.capsule .dots{letter-spacing:1.5px;font-size:13px;line-height:1;}
.capsule .divider{width:1px;height:12px;background:rgba(91,74,58,.2);}

/* 手动输入时长兜底（微信等不支持网页语音识别的环境） */
.pick-area{margin:14px 0 4px;}
.pick-chips{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;}
.pick-chips .pk{
  min-width:64px;padding:10px 12px;border-radius:16px;text-align:center;
  background:#FFF6E3;border:2px solid #F0DDB0;color:#3B2C1E;
  font-size:15px;font-weight:800;cursor:pointer;user-select:none;
}
.pick-chips .pk b{font-size:17px;}
.pick-chips .pk:active{transform:scale(.95);}
.pick-chips .pk.on{
  background:linear-gradient(160deg,var(--btn-grad-a),var(--btn-grad-b));border-color:var(--btn-grad-b);color:var(--btn-ink);
  box-shadow:0 3px 10px -2px rgba(242,161,11,.5);
}
.pick-custom{
  margin-top:12px;display:flex;align-items:center;justify-content:center;gap:8px;
  font-size:13.5px;font-weight:700;color:#5B4A3A;
}
.pick-custom input{
  width:74px;padding:8px 6px;text-align:center;font-size:16px;font-weight:800;
  color:#3B2C1E;background:#FFF6E3;border:2px solid #F0DDB0;border-radius:12px;outline:none;
}
.pick-custom input:focus{border-color:#F2B441;}
/* 孩子端的迷你确定按钮（时长「确定」、喂养「喂它」共用） */
.mini-btn{
  padding:10px 18px;border:none;border-radius:14px;cursor:pointer;
  background:linear-gradient(160deg,var(--btn-grad-a),var(--btn-grad-b));color:var(--btn-ink);
  font-size:14px;font-weight:800;font-family:inherit;
  box-shadow:0 3px 9px -2px var(--btn-edge);
}
.mini-btn:active{transform:scale(.94);box-shadow:0 1px 4px -1px rgba(242,161,11,.5);}
/* 打卡面板里的「确定」与输入框高度对齐 */
.pick-custom .mini-btn{padding:10px 16px;}

/* ------- 滚动区 ------- */
.screen{
  flex:1;overflow-y:auto;overflow-x:hidden;
  padding:8px 18px 104px;
  scroll-behavior:smooth;
}
.screen::-webkit-scrollbar{width:0;}

/* ------- Hero ------- */
.hero{
  position:relative;overflow:hidden;
  border-radius:30px;padding:20px 20px 18px;
  background:linear-gradient(150deg,#FFE79A 0%,#FFD05C 46%,#FFBE45 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 14px 30px -10px rgba(242,161,11,.45);
  animation:rise .45s cubic-bezier(.2,.9,.3,1) both;
}
.hero::before{
  content:'';position:absolute;width:210px;height:210px;border-radius:50%;
  right:-74px;top:-96px;background:rgba(255,255,255,.26);filter:blur(2px);
}
.hero::after{
  content:'';position:absolute;width:120px;height:120px;border-radius:50%;
  right:24px;bottom:-74px;background:rgba(255,255,255,.16);
}
.hero-top{position:relative;z-index:2;}
.hello{
  font-size:21px;font-weight:800;letter-spacing:-.2px;color:#3D2A0C;line-height:1.25;
}
.hello span{color:#A85E00;}
.hero .date{
  font-size:11.5px;color:#8C6420;margin-top:5px;font-weight:700;letter-spacing:.3px;
  display:flex;align-items:center;gap:6px;
}
.hero .date .sep{width:3px;height:3px;border-radius:50%;background:#B08842;opacity:.7;}
/* 蛋仔动画（GIF 跟随皮肤颜色）：圆形头像式呈现 */
.egg-gif{
  object-fit:cover;border-radius:50%;
  border:2.5px solid rgba(255,255,255,.92);
  box-shadow:0 8px 20px rgba(60,40,0,.20),0 1px 0 rgba(255,255,255,.6) inset;
  background:#fff;
}
.hero-egg-gif{
  position:absolute;right:6px;bottom:8px;z-index:0;
  animation:eggFloat 3.8s ease-in-out infinite;
}
@keyframes eggFloat{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-5px);}
}
@media (prefers-reduced-motion:reduce){.hero-egg-gif{animation:none;}}

/* 环形进度 */
.ring-wrap{
  display:flex;align-items:center;gap:14px;margin-top:18px;
  position:relative;z-index:2;
  background:rgba(255,255,255,.34);
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.5);
  border-radius:20px;padding:12px 14px;
}
.ring{position:relative;width:62px;height:62px;flex:0 0 auto;}
.ring svg{transform:rotate(-90deg);display:block;}
.ring .num{
  position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  font-weight:800;font-size:16px;color:#8A4E00;font-family:var(--num);letter-spacing:-.5px;
}
.ring .num small{font-size:8.5px;font-weight:700;color:#A67C2E;letter-spacing:.6px;margin-top:1px;}
.progress-txt{font-size:12.5px;line-height:1.55;font-weight:700;color:#6E4A10;min-width:0;}
.progress-txt b{font-size:14.5px;font-weight:800;color:#4A3005;display:block;margin-bottom:2px;}
.progress-txt span{color:#9A7434;font-weight:600;}

.hero-badges{display:flex;gap:8px;margin-top:12px;position:relative;z-index:2;flex-wrap:wrap;}
.badge{
  display:inline-flex;align-items:center;gap:5px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.9);
  border-radius:999px;padding:6px 11px;
  font-size:11.5px;font-weight:800;color:#7A5518;
  box-shadow:0 1px 2px rgba(150,110,40,.1);
}
.badge b{font-family:var(--num);font-size:13px;}

/* 积分徽章：可点的样子（有下箭头 + 按压反馈） */
.badge.pts-btn{
  font-family:inherit;cursor:pointer;
  background:rgba(255,255,255,.85);
  border-color:rgba(255,255,255,1);
  box-shadow:0 2px 6px -2px rgba(150,110,40,.28);
  transition:transform .14s,box-shadow .18s;
}
.badge.pts-btn:active{transform:scale(.95);box-shadow:0 1px 3px -1px rgba(150,110,40,.3);}
.badge.pts-btn .b-arrow{
  font-style:normal;font-size:13px;font-weight:900;color:#C79A3E;
  margin-left:1px;transform:translateY(-1px);
}

/* ------- 积分记录弹层 ------- */
.ledger-sheet{display:flex;flex-direction:column;max-height:82vh;}
.lg-sum{
  display:flex;align-items:center;gap:14px;
  margin:2px 0 12px;padding:14px 16px;border-radius:20px;
  background:linear-gradient(135deg,#FFF6D9,#FFE9A8);
  border:1px solid #FFE09A;
  box-shadow:0 6px 16px -10px rgba(200,140,20,.6);
}
.lg-sum .lg-bal{display:flex;flex-direction:column;gap:2px;flex:none;}
.lg-sum .lg-bal span{font-size:11px;font-weight:800;color:#9A7221;}
.lg-sum .lg-bal b{
  font-family:var(--num);font-size:30px;font-weight:900;line-height:1;letter-spacing:-1px;
  background:linear-gradient(180deg,#FF9A1F,#F26A0C);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#F26A0C;
}
.lg-sum .lg-bal i{font-style:normal;font-size:10.5px;font-weight:800;color:#B0741A;margin-top:-1px;}
.lg-sum .lg-io{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0;}
.lg-sum .io{display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:5px 10px;border-radius:11px;background:rgba(255,255,255,.72);}
.lg-sum .io span{font-size:11px;font-weight:800;color:#93815F;}
.lg-sum .io b{font-family:var(--num);font-size:13.5px;font-weight:900;}
.lg-sum .io.in b{color:#1E9E6E;}
.lg-sum .io.out b{color:#D9645B;}

.lg-tabs{display:flex;gap:7px;margin-bottom:10px;}
.lg-tab{
  flex:1;border:none;cursor:pointer;font-family:inherit;
  padding:9px 0;border-radius:13px;font-size:12.5px;font-weight:800;
  background:#F6EFE2;color:#A89681;transition:.15s;
}
.lg-tab.on{background:linear-gradient(160deg,#FFE08A,#FFBE3D);color:#6B4400;box-shadow:0 2px 7px -3px rgba(230,160,20,.7);}

.lg-list{overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px;}
.lg-day{
  font-size:11px;font-weight:900;color:#B9A894;
  margin:10px 2px 6px;letter-spacing:.3px;
}
.lg-row{
  display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;
  padding:10px 12px;border-radius:15px;background:#fff;
  border:1px solid #F4EDE1;margin-bottom:7px;
}
.lg-row .lg-ic{
  width:36px;height:36px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  font-size:18px;background:linear-gradient(150deg,#FFF7E3,#FFEEC6);
}
.lg-row.out .lg-ic{background:linear-gradient(150deg,#F2EEF9,#E8E1F5);}
.lg-row .lg-tx{display:flex;flex-direction:column;gap:2px;min-width:0;}
.lg-row .lg-n{font-size:13.5px;font-weight:800;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.lg-row .lg-s{font-size:10.5px;font-weight:700;color:#B3A490;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.lg-row .lg-p{font-family:var(--num);font-size:16px;font-weight:900;white-space:nowrap;}
.lg-row.in .lg-p{color:#1E9E6E;}
.lg-row.out .lg-p{color:#D9645B;}
@media (prefers-reduced-motion: reduce){.badge.pts-btn{transition:none;}}

/* ------- 区块标题 ------- */
.sec-title{
  display:flex;align-items:baseline;justify-content:space-between;
  margin:24px 4px 12px;
}
.sec-title h3{
  margin:0;font-size:15.5px;font-weight:800;letter-spacing:-.1px;
  display:flex;align-items:center;gap:8px;
}
.sec-title h3::before{
  content:'';width:4px;height:15px;border-radius:99px;
  background:linear-gradient(180deg,#FFD05C,#FF9A3D);
}
.sec-title .link{font-size:11.5px;color:#B4894A;font-weight:700;}

/* ------- 任务卡 ------- */
.task{
  position:relative;
  display:flex;align-items:center;gap:13px;
  background:#fff;border-radius:22px;padding:14px;
  box-shadow:var(--sh-sm);
  border:1px solid rgba(240,230,214,.9);
  margin-bottom:10px;
  transition:transform .14s cubic-bezier(.2,.9,.3,1.3),box-shadow .18s;
  cursor:pointer;
  animation:rise .4s cubic-bezier(.2,.9,.3,1) both;
}
.task:hover{transform:translateY(-1px);box-shadow:var(--sh-md);}
.task:active{transform:scale(.988);}
.task .icon{
  width:46px;height:46px;border-radius:15px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;font-size:22px;
  position:relative;
  overflow:hidden;   /* 照片版图标需要裁圆角 */
}
.task .icon.yellow{background:linear-gradient(150deg,#FFF0C4,#FFE29B);}
.task .icon.blue{background:linear-gradient(150deg,#E2F1FF,#C6E2FF);}
.task .icon.pink{background:linear-gradient(150deg,#FFE6EC,#FFD2DE);}
.task .icon.green{background:linear-gradient(150deg,#E1F8EC,#C8F0DD);}
.task .icon.purple{background:linear-gradient(150deg,#EFE8FF,#DFD2FF);}
.task .info{flex:1;min-width:0;}
/* 积分徽章和任务名同一行 */
.task .name-row{
  display:flex;align-items:center;gap:8px;min-width:0;
}
.task .name{
  flex:1 1 auto;min-width:0;
  font-size:14px;font-weight:800;color:var(--ink);letter-spacing:-.1px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.task .name-row .pts.big{flex:0 0 auto;font-size:14px;padding:3px 10px 3px 7px;}
.task .name-row .pts.big em{font-size:10px;}
.task .name-row .pts.big .coin{font-size:12px;}
.task .meta{
  display:flex;align-items:center;gap:8px;margin-top:5px;
  font-size:11px;color:var(--ink-3);font-weight:600;
}
/* 任务类型标签 + 积分：同一行，尺寸完全一致，只用颜色区分 */
.task .name-sub{margin-top:6px;display:flex;align-items:center;gap:8px;}
.ttype,
.task .name-sub .pts.big{
  display:inline-flex;align-items:center;
  height:22px;padding:0 9px;
  border-radius:99px;
  font-family:var(--font);
  font-size:11.5px;font-weight:800;line-height:1;letter-spacing:.2px;
}
.ttype{gap:4px;flex:0 0 auto;}
.ttype.must{background:#FFEFE6;color:#C96A34;border:1px solid rgba(226,132,72,.32);}
.ttype.opt{background:#EDF2FA;color:#567CA8;border:1px solid rgba(120,150,190,.28);}
.ttype.must::before{content:'';width:4px;height:4px;border-radius:50%;background:#DE8147;}
.ttype.opt::before{content:'';width:4px;height:4px;border-radius:50%;background:#7C9CC4;}

/* 积分：同尺寸标签，金色配色 + 金币翻转/轻微呼吸 */
.task .name-sub .pts.big{
  margin-left:auto;gap:3px;
  background:linear-gradient(160deg,var(--pts-bg-a),var(--pts-bg-b));
  color:var(--pts-ink);border:1px solid var(--pts-line);
  transform-origin:right center;
  animation:ptsPulse 2.4s ease-in-out infinite;
}
.task .name-sub .pts.big .coin{
  font-size:12px;font-style:normal;display:inline-block;
  animation:coinSpin 2.6s ease-in-out infinite;
}
.task .name-sub .pts.big em{font-size:11.5px;font-style:normal;font-weight:800;margin-left:0;}
.task.done .name-sub{opacity:.68;}
.task.done .name-sub .pts.big,
.task.done .name-sub .pts.big .coin{animation:none;}
@keyframes ptsPulse{
  0%,100%{transform:scale(1);}
  50%{transform:scale(1.06);}
}
.task .meta .dot{width:2.5px;height:2.5px;border-radius:50%;background:#D9C9B4;}
.task .pts{
  display:inline-flex;align-items:center;gap:2px;
  background:var(--pts-chip-bg);color:var(--pts-chip-ink);border-radius:99px;
  padding:2.5px 7px;font-weight:800;font-size:10.5px;font-family:var(--num);
}
/* 大号动态积分徽章 */
.task .pts.big{
  gap:4px;padding:4px 12px 4px 8px;
  background:linear-gradient(160deg,var(--pts-bg-a),var(--pts-bg-b));
  color:var(--pts-ink);border:1.5px solid var(--pts-line);
  box-shadow:0 2px 8px -2px var(--pts-glow);
  font-size:16px;letter-spacing:.3px;
  animation:ptsPulse 2.2s ease-in-out infinite;
}
.task .pts.big .coin{font-size:14px;font-style:normal;display:inline-block;animation:coinSpin 3s ease-in-out infinite;}
.task .pts.big em{font-style:normal;font-size:10.5px;font-weight:800;margin-left:1px;opacity:.85;}
@keyframes ptsPulse{
  0%,100%{transform:scale(1);box-shadow:0 2px 8px -2px var(--pts-glow);}
  50%{transform:scale(1.12);box-shadow:0 4px 14px -2px var(--pts-glow);}
}
@keyframes coinSpin{
  0%,100%{transform:rotateY(0);}
  50%{transform:rotateY(180deg);}
}
.task.done .pts.big{animation:none;opacity:.8;}
.task.done .pts.big .coin{animation:none;filter:none;}
.task .go{
  flex:0 0 auto;height:36px;min-width:62px;padding:0 14px;
  border:none;border-radius:999px;cursor:pointer;
  background:linear-gradient(180deg,var(--btn-grad-a),var(--btn-grad-b));
  box-shadow:0 2px 0 var(--btn-edge);
  color:var(--btn-ink);font-weight:800;font-size:12.5px;
  transition:transform .1s,box-shadow .1s,background .2s;
}
.task .go:hover{filter:brightness(1.04);}
.task .go:active{transform:translateY(2px);box-shadow:none;}
.task.done{background:#FDFEFC;border-color:#E6F2EA;}
.task.done .name{color:#9DAF9F;text-decoration:line-through;text-decoration-thickness:1.5px;text-decoration-color:#CBDCCF;}
.task.done .icon{filter:saturate(.4) opacity(.8);}
.task.done .meta{color:#B6C4B8;}
.task.done .go{
  background:#EAF7EF;color:#2E8A5E;box-shadow:none;font-weight:800;
}
.task.done::after{
  content:'✓';position:absolute;right:-2px;top:-6px;
  width:0;height:0;
}

/* ------- 奖励小铺 ------- */
.shop-body{padding:0 4px;}
/* 积分钱包：大数字 + 微光流动，看一眼就被吸引 */
.shop-wallet{
  position:relative;overflow:hidden;
  display:flex;align-items:center;gap:13px;
  margin:-2px 2px 14px;padding:16px 18px;border-radius:24px;
  background:linear-gradient(135deg,var(--wallet-a) 0%,var(--wallet-b) 45%,var(--wallet-c) 100%);
  border:1px solid var(--wallet-line);
  box-shadow:
    0 10px 24px -10px var(--wallet-glow),
    inset 0 -3px 0 rgba(255,255,255,.42);
  animation:walletGlow 3.4s ease-in-out infinite;
}
/* 斜向流动的微光 */
.shop-wallet::after{
  content:'';position:absolute;top:-60%;left:-70%;
  width:52%;height:220%;pointer-events:none;
  background:linear-gradient(100deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.72) 50%,rgba(255,255,255,0) 100%);
  transform:rotate(16deg);
  animation:walletShine 3.8s ease-in-out infinite;
}
@keyframes walletGlow{
  0%,100%{box-shadow:0 10px 24px -10px rgba(214,146,10,.5),inset 0 -3px 0 rgba(255,255,255,.42);}
  50%{box-shadow:0 14px 30px -10px rgba(214,146,10,.72),inset 0 -3px 0 rgba(255,255,255,.42);}
}
@keyframes walletShine{
  0%{left:-70%;}
  55%,100%{left:130%;}
}
.shop-wallet .w-coin{
  flex:none;width:46px;height:46px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;font-size:25px;
  background:radial-gradient(circle at 34% 28%,#FFFCF0,#FFD35C 62%,#F5A623);
  box-shadow:0 3px 0 #DE940F,0 6px 14px -4px rgba(190,120,0,.5);
  animation:coinBob 2.4s ease-in-out infinite;
}
@keyframes coinBob{
  0%,100%{transform:translateY(0) rotate(-5deg);}
  50%{transform:translateY(-3px) rotate(5deg);}
}
.shop-wallet .w-txt{display:flex;flex-direction:column;gap:1px;min-width:0;}
.shop-wallet .w-label{
  font-size:12px;font-weight:800;color:var(--wallet-label);letter-spacing:.4px;
}
.shop-wallet .w-num{display:flex;align-items:baseline;gap:6px;line-height:1;}
.shop-wallet .w-num b{
  font-size:38px;font-weight:900;line-height:1;letter-spacing:-1px;
  font-family:var(--num);
  background:linear-gradient(180deg,var(--wallet-num-a) 6%,var(--wallet-num-b) 92%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:#F26A0C;
  filter:drop-shadow(0 2px 0 rgba(255,255,255,.85));
  transition:transform .2s cubic-bezier(.2,.9,.3,1.4);
  transform-origin:left bottom;
}
.shop-wallet .w-num b.pop{transform:scale(1.22);}
.shop-wallet .w-num i{
  font-style:normal;font-size:15px;font-weight:900;color:var(--wallet-unit);
  transform:translateY(-2px);
}
/* 四散小星星 */
.shop-wallet .w-spark{
  position:absolute;color:var(--wallet-unit);font-size:11px;pointer-events:none;
  opacity:0;animation:sparkTwinkle 3.2s ease-in-out infinite;
}
.shop-wallet .w-spark::before{content:'✦';}
.shop-wallet .w-spark.s1{right:18px;top:14px;animation-delay:.2s;}
.shop-wallet .w-spark.s2{right:44px;bottom:12px;font-size:9px;animation-delay:1.3s;}
.shop-wallet .w-spark.s3{right:12px;bottom:26px;font-size:8px;animation-delay:2.2s;}
@keyframes sparkTwinkle{
  0%,100%{opacity:0;transform:scale(.6) rotate(0deg);}
  45%{opacity:.95;transform:scale(1.15) rotate(30deg);}
  70%{opacity:.3;transform:scale(.85) rotate(50deg);}
}
/* 数值变化时整块轻轻跳一下 */
.shop-wallet.bump{animation:walletBump .6s cubic-bezier(.2,.9,.3,1.3);}
@keyframes walletBump{
  0%{transform:scale(1);}
  28%{transform:scale(1.035);}
  62%{transform:scale(.995);}
  100%{transform:scale(1);}
}
@media (prefers-reduced-motion: reduce){
  .shop-wallet,.shop-wallet::after,.shop-wallet .w-coin,.shop-wallet .w-spark{animation:none;}
}
.reward-scroll{position:relative;}
/* 奖励纵向罗列：一行一个，图标在左、名称和按钮在右 */
.reward-row{
  display:flex;flex-direction:column;gap:11px;padding:2px 2px 6px;
}
.reward{
  display:grid;grid-template-columns:78px 1fr auto;align-items:center;
  gap:13px;padding:12px 14px 12px 12px;
  background:#fff;border-radius:22px;
  border:1px solid rgba(240,230,214,.9);
  box-shadow:var(--sh-sm);text-align:left;
  transition:transform .14s,box-shadow .18s;cursor:pointer;
}
.reward:hover{transform:translateY(-2px);box-shadow:var(--sh-md);}
.reward .r-ic{
  width:78px;height:78px;grid-row:span 1;border-radius:18px;
  display:flex;align-items:center;justify-content:center;font-size:38px;line-height:1;
  background:linear-gradient(150deg,#FFF7E3,#FFEEC6);
}
.reward .r-main{min-width:0;}
.reward .r-name{
  font-size:15px;font-weight:800;line-height:1.3;
  color:var(--ink);word-break:break-word;
}
.mini-bar{height:5px;border-radius:99px;background:#F4EADD;overflow:hidden;margin:9px 0 6px;}
.mini-bar i{
  display:block;height:100%;border-radius:99px;
  background:linear-gradient(90deg,#FFD45C,#FF9F3D);
  transition:width .5s cubic-bezier(.2,.9,.3,1);
}
/* 奖励所需积分：大号渐变数字 + 小徽章感 */
.reward .r-cost{
  display:inline-flex;align-items:baseline;gap:3px;
  font-size:22px;font-weight:900;line-height:1.05;letter-spacing:-.5px;
  font-family:var(--num);
  background:linear-gradient(180deg,var(--pts-num-a) 0%,var(--pts-num-b) 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:var(--pts-num-b);
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.9));
}
.reward .r-cost em{font-style:normal;font-size:11.5px;font-weight:900;letter-spacing:0;
  -webkit-text-fill-color:var(--pts-num-em);color:var(--pts-num-em);margin-left:1px;}
.reward.ready .r-cost{
  background:linear-gradient(180deg,#25B57F 0%,#0F8B5E 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:#0F8B5E;
}
.reward.ready .r-cost em{-webkit-text-fill-color:#2C8A66;color:#2C8A66;}
.reward.ready{background:linear-gradient(180deg,#FFFDF4,#FFFAE8);border-color:#FFE7A6;}
.reward.ready .r-ic{background:linear-gradient(150deg,#FFF0BE,#FFDF8A);}
/* 奖励图片 */
.reward .r-ic.has-img{
  width:78px;height:78px;border-radius:18px;overflow:hidden;padding:0;
  background:#FFF7E3;position:relative;
}
.reward .r-ic.has-img img{width:100%;height:100%;object-fit:cover;display:block;}
.reward .r-ic .zoom{
  position:absolute;right:4px;bottom:4px;width:19px;height:19px;border-radius:50%;
  background:rgba(0,0,0,.42);color:#fff;font-size:10px;line-height:19px;text-align:center;
  pointer-events:none;
}
.reward .r-btn{
  grid-column:3;margin:0;min-width:88px;border:none;border-radius:99px;padding:11px 14px;
  font-size:12.5px;font-weight:800;background:#F5EDE0;color:#A89681;
  cursor:pointer;transition:.15s;white-space:nowrap;
}
.reward.ready .r-btn{
  background:linear-gradient(180deg,#7EE7BC,#43C994);color:#fff;
  box-shadow:0 2px 0 #2FA97A;
}

/* ------- 底部 tabbar ------- */
.tabbar{
  position:absolute;left:0;right:0;bottom:0;height:80px;
  background:rgba(255,253,248,.86);
  backdrop-filter:blur(18px) saturate(1.6);
  border-top:1px solid rgba(240,230,214,.9);
  display:flex;align-items:center;justify-content:space-around;
  padding:0 26px 12px;
  z-index:10;
}
.tab{
  border:none;background:none;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:4px;
  color:#B3A490;font-size:10px;font-weight:800;padding:6px 12px;
  transition:color .15s;
}
.tab .ti{font-size:20px;filter:grayscale(.85);opacity:.62;transition:.2s;}

/* 导航图标上的未读提醒点（家长有新的奖励/扣除时亮起） */
.tab{position:relative;}
.tab .ti-dot{
  position:absolute;top:2px;left:calc(50% + 6px);
  min-width:15px;height:15px;padding:0 4px;border-radius:99px;
  background:linear-gradient(180deg,#FF8A5C,#F0453A);
  border:2px solid #FFFDF8;
  box-shadow:0 2px 6px -1px rgba(220,60,40,.6);
  display:flex;align-items:center;justify-content:center;
  font-size:9.5px;font-weight:900;color:#fff;line-height:1;
  letter-spacing:0;
  animation:dotPulse 1.6s ease-in-out infinite;
}
.tab .ti-dot[hidden]{display:none;}
@keyframes dotPulse{
  0%,100%{transform:scale(1);box-shadow:0 2px 6px -1px rgba(220,60,40,.55);}
  50%{transform:scale(1.16);box-shadow:0 3px 10px -1px rgba(220,60,40,.75);}
}
.tab .ti-dot::after{
  content:'';position:absolute;inset:-4px;border-radius:99px;
  border:2px solid rgba(240,69,58,.45);
  animation:dotRing 1.6s ease-out infinite;
}
@keyframes dotRing{
  0%{transform:scale(.7);opacity:.85;}
  100%{transform:scale(1.7);opacity:0;}
}
@media (prefers-reduced-motion: reduce){
  .tab .ti-dot,.tab .ti-dot::after{animation:none;}
}
.tab.on{color:#D8860A;}
.tab.on .ti{filter:none;opacity:1;}

/* ------- 弹层 ------- */
.sheet-mask{
  position:absolute;inset:0;z-index:30;
  background:rgba(43,32,20,.38);
  backdrop-filter:blur(3px);
  display:none;align-items:flex-end;
}
.sheet-mask.on{display:flex;animation:fade .2s;}
@keyframes fade{from{opacity:0}to{opacity:1}}
.sheet{
  width:100%;max-height:90%;overflow-y:auto;
  background:#FFFCF6;
  border-radius:34px 34px 0 0;
  padding:12px 20px 28px;
  box-shadow:0 -20px 50px rgba(43,32,20,.22);
  animation:up .34s cubic-bezier(.2,.9,.3,1.05);
  position:relative;
}
@keyframes up{from{transform:translateY(70px);opacity:.5}to{transform:none;opacity:1}}
.sheet .grab{width:40px;height:4.5px;border-radius:99px;background:#EADCC7;margin:0 auto 16px;}
.sheet h4{
  margin:0;font-size:17px;font-weight:800;letter-spacing:-.2px;
  display:flex;align-items:center;gap:8px;
}
.sheet .sub{font-size:12.5px;color:var(--ink-3);margin-top:5px;font-weight:600;}
.close-x{
  position:absolute;right:20px;top:18px;
  width:30px;height:30px;border-radius:50%;border:none;
  background:#F3EAD9;color:#8C7B68;font-size:13px;cursor:pointer;
  transition:.15s;
}
.close-x:hover{background:#EADFCC;}

/* 麦克风 */
.mic-area{display:flex;flex-direction:column;align-items:center;margin:22px 0 6px;}
.mic{
  position:relative;width:104px;height:104px;border-radius:50%;border:none;cursor:pointer;
  background:
    radial-gradient(circle at 34% 26%,#FFF3B8 0%,#FFD75E 42%,#FFB524 78%,#F09A06 100%);
  box-shadow:
    0 4px 0 #D08F08,
    0 18px 34px -8px rgba(240,154,6,.55),
    inset 0 -6px 14px rgba(200,120,0,.18),
    inset 0 6px 12px rgba(255,255,255,.6);
  display:flex;align-items:center;justify-content:center;font-size:38px;
  transition:transform .12s cubic-bezier(.2,.9,.3,1.4),box-shadow .12s;
}
.mic:hover{filter:brightness(1.04);}
.mic:active{transform:translateY(4px) scale(.97);box-shadow:0 1px 0 #D08F08,0 8px 18px -8px rgba(240,154,6,.5);}
.mic.rec{
  background:radial-gradient(circle at 34% 26%,#FFC6C6 0%,#FF7B7B 45%,#F25252 80%);
  box-shadow:0 4px 0 #C23E3E,0 18px 34px -8px rgba(242,82,82,.55),inset 0 6px 12px rgba(255,255,255,.5);
}
.mic.rec::before,.mic.rec::after{
  content:'';position:absolute;inset:-8px;border-radius:50%;
  border:2.5px solid rgba(242,82,82,.4);animation:pulse 1.8s infinite cubic-bezier(.2,.9,.3,1);
}
.mic.rec::after{animation-delay:.9s;}
@keyframes pulse{0%{transform:scale(1);opacity:.9}100%{transform:scale(1.55);opacity:0}}
.mic-tip{font-size:12.5px;font-weight:700;color:var(--ink-3);margin-top:16px;text-align:center;line-height:1.5;}
.wave{display:flex;gap:3.5px;height:24px;align-items:center;margin-top:10px;}
.wave i{width:3.5px;border-radius:99px;background:linear-gradient(180deg,#FFD45C,#FF9F3D);height:5px;opacity:.55;}
.wave.on i{animation:wv .95s infinite ease-in-out;opacity:1;}
@keyframes wv{0%,100%{height:5px}50%{height:22px}}

/* 识别结果 */
.heard{
  margin-top:18px;background:#fff;border-radius:18px;padding:13px 15px;
  min-height:62px;border:1.5px solid #F3E8D6;box-shadow:var(--sh-sm);
}
.heard .label{
  font-size:10.5px;color:#A89681;font-weight:800;letter-spacing:.6px;margin-bottom:5px;
  display:flex;align-items:center;gap:5px;
}
.heard .label::before{content:'';width:5px;height:5px;border-radius:50%;background:#FFC53D;}
.heard #heardText{font-size:14px;font-weight:700;color:var(--ink);line-height:1.5;word-break:break-all;}
.skip-tip{
  margin-top:13px;padding:10px 14px;border-radius:14px;
  background:#FFFBF0;border:1.5px dashed #FFE9B8;
  font-size:12px;color:#9A7A32;font-weight:700;text-align:center;line-height:1.5;
}

.result{
  margin-top:14px;border-radius:18px;padding:13px 15px;
  font-size:12.5px;font-weight:700;display:flex;gap:11px;align-items:center;line-height:1.55;
  animation:rise .25s both;
}
.result .big{
  width:30px;height:30px;border-radius:50%;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:900;
}
.result.ok{background:#EFFBF4;color:#1E7A50;border:1.5px solid #C9EEDC;}
.result.ok .big{background:#43C994;color:#fff;}
.result.bad{background:#FFF5F3;color:#BD463C;border:1.5px solid #FFDAD5;}
.result.bad .big{background:#F2605C;color:#fff;}
.result.soft{background:#FFFBF0;color:#9A7A32;border:1.5px solid #FFEFC6;}
.result.soft .big{background:#FFC94D;color:#7A5A10;}

.sheet .actions{display:flex;gap:10px;margin-top:18px;}

/* ------- 成功页 ------- */
.success{
  position:absolute;inset:0;z-index:40;
  background:rgba(255,251,242,.94);
  backdrop-filter:blur(14px);
  display:none;flex-direction:column;align-items:center;justify-content:center;
  padding:34px;text-align:center;
}
.success.on{display:flex;animation:fade .25s;}
.success .egg-big-gif{width:128px;height:128px;border-width:3px;margin-bottom:26px;}
.success h2{
  font-size:23px;font-weight:800;margin:0 0 8px;color:#D8860A;letter-spacing:-.3px;
}
.success p{font-size:13px;color:var(--ink-3);margin:0;font-weight:600;line-height:1.6;}
.plus{
  display:inline-flex;align-items:center;gap:5px;
  background:linear-gradient(180deg,#FFF3D1,#FFE7A8);
  color:#A8700A;padding:9px 18px;border-radius:99px;
  font-weight:800;font-size:18px;margin:16px 0 24px;
  font-family:var(--num);
  box-shadow:0 1px 2px rgba(200,140,20,.15);
}
.confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none;}
.confetti i{position:absolute;width:8px;height:12px;border-radius:2.5px;animation:fall linear forwards;}
@keyframes fall{
  from{transform:translateY(-50px) rotate(0);opacity:1}
  to{transform:translateY(820px) rotate(620deg);opacity:.85}
}

/* ------- 数据页 ------- */
.hero.cool{
  background:linear-gradient(150deg,#CFE8FF 0%,#A9D3FF 48%,#8FC4FF 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 14px 30px -10px rgba(110,170,240,.5);
}
.hero.cool .hello{color:#12456F;}
.hero.cool .hello span{color:#1B6FB8;}
.hero.cool .date{color:#3E7CA8;}
.hero.cool .ring-wrap{background:rgba(255,255,255,.4);border-color:rgba(255,255,255,.6);}
.hero.cool .progress-txt b{color:#12456F;}
.hero.cool .progress-txt span{color:#3E7CA8;}

.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.stat-card{
  background:#fff;border-radius:20px;padding:15px;
  border:1px solid rgba(240,230,214,.9);box-shadow:var(--sh-sm);
}
.stat-card .v{
  font-size:25px;font-weight:800;color:#E08A12;font-family:var(--num);letter-spacing:-.5px;
}
.stat-card .k{font-size:11px;color:var(--ink-3);font-weight:700;margin-top:3px;}
/* 可点的统计卡（累计获得积分 → 积分记录） */
.stat-card.stat-tap{
  position:relative;cursor:pointer;
  transition:transform .14s ease,box-shadow .18s ease,border-color .18s ease;
}
.stat-card.stat-tap:active{transform:scale(.975);}
@media (hover:hover){
  .stat-card.stat-tap:hover{transform:translateY(-2px);box-shadow:0 10px 22px -14px var(--pts-glow);border-color:var(--pts-line);}
}
.stat-card.stat-tap:focus-visible{outline:2px solid var(--pts-num-a);outline-offset:2px;}
.stat-card .st-hint{
  position:absolute;top:9px;right:11px;
  font-size:9px;font-weight:800;letter-spacing:.2px;
  color:var(--pts-chip-ink);background:var(--pts-chip-bg);
  padding:2px 6px;border-radius:8px;line-height:1.4;
  border:1px solid var(--pts-line);
}

.cal-head{
  display:grid;grid-template-columns:repeat(7,1fr);gap:6px;
  font-size:10px;font-weight:800;color:#C0B09C;text-align:center;margin-bottom:7px;
}
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;}
.cal .d{
  aspect-ratio:1;border-radius:11px;background:#F7F0E4;
  display:flex;align-items:center;justify-content:center;
  font-size:10.5px;font-weight:800;color:#C4B5A3;
  transition:.2s;
}
.cal .d.ok{
  background:linear-gradient(160deg,var(--btn-grad-a),var(--btn-grad-b));color:var(--btn-ink);
  box-shadow:0 2px 6px rgba(242,161,11,.28);
}
.cal .d.part{background:#FFF0C6;color:#A8710E;}
.cal .d.today{box-shadow:0 0 0 2.5px #FF8A3D;}
.cal .d.blank{background:transparent;}
.cal .d[data-date]{cursor:pointer;}
.cal .d[data-date]:active{transform:scale(.9);}
#dayList{max-height:46vh;overflow:auto;}

.log-item{
  display:flex;gap:11px;align-items:center;padding:11px 0;
  border-bottom:1px solid #F6EFE3;font-size:12.5px;
}
.log-item:last-child{border-bottom:none;}
.log-item .t{color:#B9A894;font-weight:800;width:40px;flex:0 0 auto;font-family:var(--num);font-size:11.5px;}
.log-item .n{flex:1;font-weight:700;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.log-item .n .muted{font-weight:600;font-size:11px;}
/* 家长奖励/扣除：未读高亮 + 「新」小标签 */
.log-item.adj.fresh{background:linear-gradient(90deg,#FFF6E2,#FFFDF8 70%);border-radius:12px;}
.log-item .new-tag{
  display:inline-block;font-style:normal;
  margin-left:3px;padding:1px 5px;border-radius:7px;
  background:linear-gradient(180deg,#FF9A6B,#F0453A);color:#fff;
  font-size:9.5px;font-weight:900;line-height:1.4;
  vertical-align:1px;
  animation:newTagPulse 1.5s ease-in-out infinite;
}
@keyframes newTagPulse{0%,100%{opacity:1;}50%{opacity:.6;}}
/* 区块标题旁的「N 条新的」提示 */
.sec-title .link[hidden]{display:none;}
.log-item .p{color:#B4820F;font-weight:800;font-family:var(--num);font-size:12px;}

/* 兑换记录 */
.log-item.rdm .p.neg{color:#C0674E;}
.log-item.rdm .rdm-right{display:flex;align-items:center;gap:6px;flex:0 0 auto;}
.rdm-tag{
  font-size:10px;font-weight:800;padding:2.5px 7px;border-radius:99px;white-space:nowrap;
}
.rdm-tag.wait{background:#FFF3DA;color:#B4820F;}
.rdm-tag.ok{background:#E6F7ED;color:#2F9464;}

/* 侧栏 */
.side-note{
  width:268px;z-index:2;color:var(--ink-2);font-size:12.5px;line-height:1.85;
  background:rgba(255,255,255,.62);
  border:1px solid rgba(255,255,255,.9);
  border-radius:22px;padding:22px 22px 20px;
  box-shadow:var(--sh-md);
  backdrop-filter:blur(10px);
}
.side-note h4{
  font-size:11px;margin:0 0 14px;color:#A89681;letter-spacing:1.2px;font-weight:800;
}
.side-note ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:13px;}
.side-note li{position:relative;padding-left:20px;}
.side-note li::before{
  content:'';position:absolute;left:0;top:7px;width:8px;height:8px;border-radius:50%;
  background:linear-gradient(160deg,var(--btn-grad-a),var(--btn-grad-b));box-shadow:0 0 0 3px var(--sun-soft);
}
.side-note b{color:var(--ink);font-weight:800;}
.side-note code{
  background:#FFF4D9;padding:1.5px 6px;border-radius:6px;font-size:11px;color:#8A6428;font-weight:700;
}
.side-note .foot{
  margin-top:16px;padding-top:14px;border-top:1px dashed #E8DAC4;
  font-size:11px;color:#B0A08C;line-height:1.7;
}

.parent-fab{
  position:fixed;right:24px;bottom:24px;z-index:9;
  display:flex;align-items:center;gap:7px;
  background:rgba(255,255,255,.82);backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.9);
  border-radius:99px;padding:10px 17px;
  font-size:12px;font-weight:800;color:#7A6650;
  box-shadow:var(--sh-md);cursor:pointer;transition:.18s;
}
.parent-fab:hover{transform:translateY(-1px);box-shadow:var(--sh-lg);color:#5C4A36;}

@media (max-width:900px){.side-note{display:none;}}
@media (max-width:430px){
  body.kid-mode{padding:0;display:block;}
  .phone{width:100vw;height:100vh;height:100dvh;border-radius:0;border:none;box-shadow:none;}
  .island{display:none;}
  .screen{padding-top:calc(10px + env(safe-area-inset-top));}
  .parent-fab{bottom:96px;right:14px;font-size:11px;padding:8px 13px;}
}

/* ===== 家庭与同步状态 ===== */
.sync-box{
  margin-top:14px;background:rgba(255,255,255,.7);
  border:1px solid rgba(240,230,214,.9);border-radius:20px;
  padding:14px 16px 12px;
}
.sb-row{display:flex;align-items:center;justify-content:space-between;padding:5px 0;font-size:12.5px;}
.sb-label{color:#A89681;font-weight:700;}
.sb-code{
  font-family:var(--num,monospace);font-weight:800;letter-spacing:2.5px;
  color:#8A5A00;background:#FFF6DC;padding:3px 10px;border-radius:8px;font-size:13px;
}
.sb-status{display:flex;align-items:center;gap:6px;font-weight:800;color:#8C7B68;font-size:12px;}
.sb-status i{
  width:7px;height:7px;border-radius:50%;background:#D6C4AC;display:inline-block;
  box-shadow:0 0 0 3px rgba(214,196,172,.2);
}
.sb-status em{font-style:normal;}
.sb-status.ok{color:#2E8B5F;}
.sb-status.ok i{background:#43C994;box-shadow:0 0 0 3px rgba(67,201,148,.2);}
.sb-status.syncing{color:#B4894A;}
.sb-status.syncing i{background:#FFB524;animation:sbpulse 1s infinite;}
.sb-status.err{color:#C4544C;}
.sb-status.err i{background:#E4605A;}
@keyframes sbpulse{0%,100%{opacity:1}50%{opacity:.25}}
.sb-btn{
  width:100%;margin-top:10px;border:none;background:#FBF4E7;color:#8C7B68;
  border-radius:12px;padding:9px;font-size:11.5px;font-weight:800;
  font-family:inherit;cursor:pointer;transition:.15s;
}
.sb-btn:active{transform:scale(.98);}
.sb-acts{display:flex;gap:8px;margin-top:10px;}
.sb-acts .sb-btn{margin-top:0;text-decoration:none;text-align:center;display:block;box-sizing:border-box;}
.sb-btn.ghost{background:transparent;border:1.5px solid #EFE3D0;flex:0 0 34%;}
.sb-acts .sb-btn:not(.ghost){flex:1 1 auto;background:#FFF1C9;color:#8A5A00;}

/* ================= 宠物领养与养成 ================= */
.pet-hero{background:linear-gradient(150deg,#FFE9F3,#E8F4FF);}
.pet-hero .hello span{color:#B05A8E;}
#dzToast{
  position:fixed;left:50%;bottom:96px;transform:translateX(-50%) translateY(14px);
  background:rgba(60,45,30,.92);color:#FFF7E8;font-size:13px;font-weight:700;
  padding:10px 18px;border-radius:99px;opacity:0;pointer-events:none;
  transition:.25s;z-index:999;max-width:82vw;text-align:center;
}
#dzToast.on{opacity:1;transform:translateX(-50%) translateY(0);}

/* 领养网格 */
.pet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}
.pet-card{
  border:1.5px solid #F0E4D0;background:#FFFDF8;border-radius:18px;
  padding:14px 6px 11px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:7px;
  transition:.15s;font-family:var(--font);
}
.pet-card:hover{border-color:#F0C46A;background:#FFFBF0;transform:translateY(-2px);}
.pet-card:active{transform:scale(.94);}
.pet-emoji{font-size:34px;line-height:1;}
.pet-name{font-size:11.5px;font-weight:800;color:#8A7561;}

/* 宠物小窝 */
.pet-home{text-align:center;padding:20px 16px 16px;}
.pet-stage{
  position:relative;height:230px;margin-bottom:10px;border-radius:18px;overflow:hidden;
  background:linear-gradient(180deg,#BFE4FF 0%,#E3F6FF 58%,#DFF3D8 58%,#C9E8BC 100%);
  border:1.5px solid #E4EFE0;
}
.pet-cloud{position:absolute;font-size:22px;opacity:.9;animation:pet-float 4s ease-in-out infinite;z-index:1;}
.pet-cloud.c1{top:12px;left:10%;animation-delay:.6s;}
.pet-cloud.c2{top:30px;right:14%;font-size:17px;}
.pet-sun{position:absolute;top:8px;right:8px;font-size:20px;animation:pet-float 5s ease-in-out infinite;z-index:1;}
.pet-house{position:absolute;left:2%;bottom:6px;width:104px;z-index:2;filter:drop-shadow(0 3px 4px rgba(120,90,40,.18));}
.house-svg{display:block;width:100%;}
.pet-creature{
  position:absolute;bottom:2px;left:50%;transform:translateX(-50%);
  width:84px;z-index:3;transition:left 1.6s cubic-bezier(.45,.05,.55,.95);
  animation:pet-float 3.4s ease-in-out infinite;
}
.pet-creature.flip{transform:translateX(-50%) scaleX(-1);}
.pet-creature.walk{animation:pet-step .32s ease-in-out infinite, pet-float 3.4s ease-in-out infinite;}
.pet-art{display:block;}
.pet-svg{display:block;width:100%;filter:drop-shadow(0 2px 3px rgba(120,90,30,.18));}
.pet-img{display:block;width:100%;object-fit:contain;filter:drop-shadow(0 3px 4px rgba(120,90,30,.22));user-select:none;-webkit-user-drag:none;}
/* 领养列表里的图片统一填满方框，大小看起来一致 */
.pet-card .pet-art .pet-img{width:100%;height:100%;object-fit:contain;}
.pet-card .pet-art .pet-svg{max-height:100%;}
.pet-card .pet-art{
  width:78px;height:78px;margin:0 auto;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;overflow:hidden;
}
/* 形态阶段：越长越大 */
.st1 .pet-creature{width:64px;}
.st2 .pet-creature{width:84px;}
.st3 .pet-creature{width:104px;}
.st4.max .pet-creature{width:122px;}
.st4.max .pet-stage{background:linear-gradient(180deg,#FFE7F5 0%,#FFF3D6 58%,#E8F3CE 58%,#D2E8B4 100%);}
.pet-badge{position:absolute;top:-14px;right:-10px;font-size:20px;z-index:4;animation:pet-float 2.6s ease-in-out infinite;}
.pet-badge.crown{font-size:24px;top:-18px;}
/* 状态标签 */
.pet-stage-tag{
  font-family:inherit;font-size:10.5px;font-weight:800;color:#B05A8E;
  background:#FBE9F4;border:1px solid rgba(176,90,142,.25);
  border-radius:99px;padding:4px 9px;line-height:1.1;cursor:pointer;
  display:inline-flex;align-items:center;gap:3px;transition:.15s;
}
.pet-stage-tag:hover{background:#F9DEF0;border-color:rgba(176,90,142,.45);}
.pet-stage-tag:active{transform:scale(.94);}
.pet-stage-tag .tag-q{
  font-style:normal;display:inline-flex;align-items:center;justify-content:center;
  width:12px;height:12px;border-radius:50%;background:rgba(176,90,142,.16);
  font-size:8.5px;line-height:1;
}

/* 成长所需积分浮层（点阶段标签弹出） */
#planMask{position:fixed;inset:0;z-index:60;}
#planMask .plan-sheet{
  max-width:420px;width:100%;margin:0 auto;
  padding-bottom:calc(14px + env(safe-area-inset-bottom));
}
@media (min-width:720px){
  #planMask{align-items:center;justify-content:center;padding:24px;}
  #planMask .plan-sheet{border-radius:26px;padding:20px 20px 18px;}
}
.plan-sheet h4{text-align:center;}
.plan-sheet .sub{text-align:center;margin-bottom:10px;}
.plan-list{
  max-height:min(46vh, 340px);overflow-y:auto;padding:2px 2px 2px 0;
  border-radius:12px;
}
.plan-list::-webkit-scrollbar{width:4px;}
.plan-list::-webkit-scrollbar-thumb{background:#EBDCC3;border-radius:9px;}
.plan-row{
  display:grid;grid-template-columns:92px 1fr auto 18px;align-items:center;gap:6px;
  font-size:12.5px;font-weight:800;color:#8A7561;padding:7px 9px;border-radius:10px;
}
.plan-row:nth-child(odd){background:#FFF9EC;}
.plan-row.done{color:#A9BBA0;}
.plan-row.done .pl-need,.plan-row.done .pl-cum{text-decoration:line-through;opacity:.75;}
.plan-row.now{background:linear-gradient(90deg,#FFE9B8,#FFF6DF);color:#8A5A00;box-shadow:inset 0 0 0 1.5px #F5C96B;}
.plan-row.now .pl-need{color:#C07900;font-size:14px;}
.pl-lv{font-family:var(--num);}
.pl-need{font-family:var(--num);}
.pl-cum{font-size:10.5px;font-weight:700;color:#B7A188;text-align:right;}
.pl-mark{text-align:right;font-size:10px;}
.plan-foot{
  margin-top:9px;padding-top:9px;border-top:1px dashed #EFE2CB;
  font-size:11.5px;font-weight:800;color:#A8781E;text-align:center;line-height:1.5;
}
.st4 .pet-stage-tag{background:#FFF1C9;color:#8A5A00;border-color:rgba(240,196,106,.4);}
.pet-line1{gap:6px;flex-wrap:wrap;}
/* 走路小碎步 */
@keyframes pet-step{
  0%,100%{margin-bottom:0;}
  50%{margin-bottom:3px;}
}
/* 互动气泡 */
.pet-bubble{
  position:absolute;top:10px;right:10px;max-width:60%;
  background:#FFF;border:1.5px solid #F0E4D0;color:#8A7561;
  font-size:11.5px;font-weight:800;padding:7px 11px;border-radius:14px 14px 14px 4px;
  opacity:0;transform:translateY(6px) scale(.9);transition:.3s;box-shadow:0 2px 8px rgba(160,120,50,.12);
  pointer-events:none;
}
.pet-bubble.on{opacity:1;transform:translateY(0) scale(1);}
/* 互动爱心 */
.pet-hearts{position:absolute;inset:0;pointer-events:none;overflow:hidden;}
.ph{
  position:absolute;bottom:56px;font-size:16px;opacity:0;
  animation:ph-rise 1.4s ease-out forwards;
}
@keyframes ph-rise{
  0%{opacity:0;transform:translateY(0) scale(.6);}
  20%{opacity:1;}
  100%{opacity:0;transform:translateY(-70px) scale(1.3) rotate(14deg);}
}
/* 互动按钮 */
.pet-interact{
  display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:12px;
}
.pet-ia{
  border:1.5px solid #F0E4D0;background:#FFFDF6;border-radius:13px;
  font-family:var(--font);font-size:11.5px;font-weight:800;color:#8A6A3E;
  padding:9px 2px;cursor:pointer;transition:.15s;white-space:nowrap;
  line-height:1.25;
}
.pet-ia:hover{background:#FFF4D9;border-color:#F0C46A;}
.pet-ia:active{transform:scale(.93);background:#FFEFC7;}
/* 状态标签 */
.pet-stage-tag{
  font-size:10.5px;font-weight:800;color:#B05A8E;
  background:#FBE9F4;border:1px solid rgba(176,90,142,.25);
  border-radius:99px;padding:3px 9px;line-height:1;
}
.st4 .pet-stage-tag{background:#FFF1C9;color:#8A5A00;border-color:rgba(240,196,106,.4);}
.pet-line1{gap:6px;flex-wrap:wrap;}
.pet-line1{display:flex;align-items:baseline;justify-content:center;gap:8px;margin:4px 0 8px;}
.pet-title{font-size:17px;font-weight:900;color:var(--ink);}
.pet-lv{
  font-family:var(--num);font-size:13px;font-weight:900;color:#FFF;
  background:linear-gradient(180deg,#FFB84D,#F09A2E);border-radius:99px;padding:3px 10px;
}
.pet-lv i{font-style:normal;font-size:10px;opacity:.85;font-weight:800;}
.pet-prog{height:10px;background:#F4EAD8;border-radius:99px;overflow:hidden;}
.pet-prog-in{
  height:100%;border-radius:99px;min-width:8px;
  background:linear-gradient(90deg,#FFD666,#FFAA33);
  transition:width .6s cubic-bezier(.22,1,.36,1);
}
.pet-sub{font-size:11.5px;color:#A08B72;font-weight:700;margin-top:6px;}
.pet-adopt-next{margin-top:12px;width:100%;}

/* 喂养 */
.pet-feed{margin-top:14px;text-align:left;}
.pet-feed-t{font-size:12.5px;font-weight:800;color:#8A7561;margin-bottom:8px;text-align:center;}
.pet-feed-t b{color:#C98A12;font-family:var(--num);font-size:14px;}
/* 自填积分喂养 */
.pet-custom-row{
  margin-top:4px;display:flex;align-items:center;justify-content:center;gap:9px;
  font-size:13.5px;font-weight:800;color:#5B4A3A;
}
.pet-custom-row input{
  flex:1;max-width:160px;min-width:0;padding:11px 10px;text-align:center;
  font-size:16px;font-weight:800;color:#3B2C1E;background:#FFF6E3;
  border:2px solid #F0DDB0;border-radius:14px;outline:none;
}
.pet-custom-row input:focus{border-color:#F2B441;background:#FFFDF4;}
.pet-custom-row input::placeholder{font-size:13px;font-weight:700;color:#C9B79E;}
.pet-custom-row .unit{color:#8A7561;}
.feed-btn{padding:11px 20px;font-size:15px;border-radius:16px;white-space:nowrap;}
.pet-tip{
  margin-top:9px;font-size:10.5px;color:#B49B7E;font-weight:600;
  background:#FFF8EA;border-radius:10px;padding:7px 10px;line-height:1.5;text-align:center;
}

/* 已养成图鉴 */
.pet-dex{padding:6px 14px;}
.pd-item{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px dashed #F0E6D6;}
.pd-item:last-child{border-bottom:none;}
.pd-emoji{font-size:26px;line-height:1;}
.pd-info{flex:1;min-width:0;}
.pd-info b{display:block;font-size:13px;color:var(--ink);}
.pd-info em{font-style:normal;font-size:10.5px;color:#B49B7E;font-weight:700;}
.pd-star{font-size:16px;}

/* 宠物动画 */
@keyframes pet-bounce{0%,100%{transform:translateY(0);}50%{transform:translateY(-9px);}}
@keyframes pet-wiggle{0%,100%{transform:rotate(0);}25%{transform:rotate(-7deg);}75%{transform:rotate(7deg);}}
@keyframes pet-hop{0%,100%{transform:translateY(0) scaleY(1);}30%{transform:translateY(-12px) scaleY(1.06);}60%{transform:translateY(0) scaleY(.94);}}
@keyframes pet-sway{0%,100%{transform:translateX(0) rotate(0);}50%{transform:translateX(5px) rotate(4deg);}}
@keyframes pet-tilt{0%,100%{transform:rotate(0);}40%{transform:rotate(-8deg) translateX(-3px);}70%{transform:rotate(5deg);}}
@keyframes pet-peck{0%,100%{transform:translateY(0) rotate(0);}50%{transform:translateY(4px) rotate(10deg);}}
@keyframes pet-waddle{0%,100%{transform:rotate(-5deg) translateX(-2px);}50%{transform:rotate(5deg) translateX(2px);}}
@keyframes pet-jump{0%,100%{transform:translateY(0);}45%{transform:translateY(-14px);}55%{transform:translateY(-12px);}}
@keyframes pet-float{0%,100%{transform:translateY(0);}50%{transform:translateY(-7px) scale(1.03);}}
@keyframes pet-crawl{0%,100%{transform:translateX(-4px);}50%{transform:translateX(4px);}}
.pet-bounce{animation:pet-bounce 1.6s ease-in-out infinite;}
.pet-wiggle{animation:pet-wiggle 2s ease-in-out infinite;}
.pet-hop{animation:pet-hop 1.4s ease-in-out infinite;}
.pet-sway{animation:pet-sway 2.4s ease-in-out infinite;}
.pet-tilt{animation:pet-tilt 2.2s ease-in-out infinite;}
.pet-peck{animation:pet-peck 1.2s ease-in-out infinite;}
.pet-waddle{animation:pet-waddle 1.5s ease-in-out infinite;}
.pet-jump{animation:pet-jump 1.8s ease-in-out infinite;}
.pet-float{animation:pet-float 2.6s ease-in-out infinite;}
.pet-crawl{animation:pet-crawl 2.8s ease-in-out infinite;}

/* 奖励图片大图 */
.rw-zoom{
  position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;
  background:rgba(30,22,12,.62);backdrop-filter:blur(4px);
  opacity:0;pointer-events:none;transition:opacity .22s;padding:22px;
}
.rw-zoom.on{opacity:1;pointer-events:auto;}
.rwz-box{
  width:100%;max-width:360px;background:#fff;border-radius:22px;overflow:hidden;
  box-shadow:0 18px 50px rgba(0,0,0,.3);transform:scale(.92);transition:transform .24s cubic-bezier(.2,.9,.3,1.1);
}
.rw-zoom.on .rwz-box{transform:scale(1);}
.rwz-box img{display:block;width:100%;max-height:62vh;object-fit:contain;background:#FFF8EA;}
.rwz-name{font-size:15px;font-weight:800;color:var(--ink);text-align:center;padding:12px 14px 2px;}
.rwz-cost{font-size:11.5px;font-weight:800;color:#B4820F;text-align:center;font-family:var(--num);}
.rwz-tip{font-size:10.5px;color:#B7A692;font-weight:700;text-align:center;padding:8px 0 14px;}

/* ---------- 打卡截止时间 ---------- */
.cutoff-tip{
  display:flex;align-items:center;gap:7px;
  margin-top:12px;padding:11px 15px;border-radius:18px;
  background:linear-gradient(120deg,#EEF2FA,#E4ECFA);
  border:1px solid rgba(120,150,190,.22);
  color:#4A6180;font-size:12.5px;font-weight:700;line-height:1.55;
  animation:rise .3s both;
}
.cutoff-tip b{color:#2F4A6B;font-family:var(--num);font-size:13.5px;}
/* 已截止：任务卡变灰，按钮不可点 */
.task.locked{background:#FAFAF7;border-color:#EDEAE3;}
.task.locked .icon{filter:grayscale(.55) opacity(.72);}
.task.locked .name{color:#A39A8E;}
.task.locked .name-sub{opacity:.62;}
.task.locked .name-sub .pts.big{animation:none;}
.task.locked .go{
  background:#F1EDE6;color:#B0A595;box-shadow:none;cursor:default;
}
.task.locked:active{transform:none;box-shadow:var(--sh-sm);}

/* ---------- 打卡上传照片 ---------- */
.photo-area{margin-top:14px;animation:rise .28s both;}
.pa-head{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  font-size:12.5px;font-weight:800;color:#7A5400;margin-bottom:8px;
}
.pa-head b{color:#B0741A;}
.pa-head em{
  font-style:normal;font-size:10px;font-weight:900;letter-spacing:.4px;
  color:#fff;background:linear-gradient(180deg,#FF9B6A,#F26A3C);
  padding:3px 8px;border-radius:99px;
}
.pa-slot{
  position:relative;width:100%;height:132px;border-radius:20px;overflow:hidden;
  border:2px dashed var(--pts-line,#F2D69B);background:var(--pts-chip-bg,#FFF6DE);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  transition:border-color .16s,transform .14s;
}
.pa-slot:active{transform:scale(.985);}
.pa-slot.has{border-style:solid;border-color:var(--pts-num-a,#FFA320);background:#fff;}
.pa-empty{display:flex;flex-direction:column;align-items:center;gap:6px;}
.pa-empty .pa-ic{
  width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:26px;font-weight:400;line-height:1;color:#fff;
  background:linear-gradient(180deg,var(--btn-grad-a,#FFD966),var(--btn-grad-b,#FFC02E));
  box-shadow:0 4px 12px -4px var(--btn-edge,rgba(178,120,10,.5));
}
.pa-empty span:last-child{font-size:12px;font-weight:800;color:var(--pts-ink,#7A5400);}
.pa-slot img{display:block;width:100%;height:100%;object-fit:cover;}
.pa-slot .pa-swap{
  position:absolute;right:8px;bottom:8px;padding:5px 10px;border-radius:99px;border:none;
  background:rgba(30,22,12,.6);color:#fff;font-size:11px;font-weight:800;font-family:var(--font);
  backdrop-filter:blur(4px);
}
.pa-tip{font-size:11px;font-weight:700;color:#B0A091;margin-top:7px;text-align:center;}
.pa-tip.warn{color:#DD5B4E;}
.pa-tip.ok{color:#2A9463;}
.pa-busy{font-size:12px;font-weight:800;color:var(--pts-ink,#7A5400);}

/* 积分记录行预留「照片」列（没照片时该列为空，不占位） */
.lg-row{grid-template-columns:36px 1fr auto auto;}

/* 打卡记录里的小照片缩略图（点开看大图） */
.log-item .lg-photo,
.lg-photo.sm{
  flex:0 0 auto;width:34px;height:34px;padding:0;border:none;border-radius:10px;overflow:hidden;
  background:#F3EDE2;cursor:zoom-in;box-shadow:0 2px 7px -3px rgba(120,80,20,.5);
  transition:transform .14s;margin-left:2px;
}
.log-item .lg-photo:active{transform:scale(.94);}
.log-item .lg-photo img,
.lg-photo.sm img{display:block;width:100%;height:100%;object-fit:cover;}

/* 今天列表：打完卡的任务用孩子自己拍的照片替换图标 */
.task .icon.has-photo{
  padding:0;border:none;overflow:hidden;cursor:zoom-in;
  background:#F3EDE2;box-shadow:0 3px 10px -4px rgba(120,80,20,.55);
  transition:transform .14s;
}
.task .icon.has-photo:active{transform:scale(.94);}
.task .icon.has-photo img{display:block;width:100%;height:100%;object-fit:cover;}
.task .icon.has-photo .zoom{
  position:absolute;right:2px;bottom:2px;width:16px;height:16px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;font-size:8.5px;
  background:rgba(255,255,255,.92);box-shadow:0 1px 3px rgba(0,0,0,.2);
}

/* ---------- 成功页：换个照片 ---------- */
.success .ok-edit{
  min-width:160px;margin:-10px 0 12px;font-size:13px;padding:9px 16px;
}

/* ---------- 打卡照片大图（可删除重拍） ---------- */
.ph-zoom{
  position:absolute;inset:0;z-index:125;display:flex;align-items:center;justify-content:center;
  background:rgba(30,22,12,.72);backdrop-filter:blur(6px);padding:20px;
  opacity:0;pointer-events:none;transition:opacity .2s;
}
.ph-zoom.on{opacity:1;pointer-events:auto;}
.pz-box{
  width:100%;max-width:340px;background:#FFFCF6;border-radius:24px;overflow:hidden;
  box-shadow:0 20px 50px rgba(0,0,0,.35);
  transform:scale(.93);transition:transform .24s cubic-bezier(.2,.9,.3,1.1);
}
.ph-zoom.on .pz-box{transform:scale(1);}
.pz-box img{display:block;width:100%;max-height:54vh;object-fit:contain;background:#FFF8EA;}
.pz-name{font-size:14.5px;font-weight:800;color:var(--ink);text-align:center;padding:12px 16px 3px;}
.pz-tip{font-size:10.5px;font-weight:700;color:#B7A692;text-align:center;padding:0 16px 12px;}
.pz-acts{display:flex;gap:9px;padding:0 14px 14px;}
.pz-btn{
  flex:1;height:42px;border-radius:14px;border:1.5px solid #F0E4D0;background:#fff;
  color:#8A7050;font-family:var(--font);font-size:13px;font-weight:800;cursor:pointer;
  transition:transform .12s,background .16s;
}
.pz-btn:active{transform:scale(.97);}
.pz-btn.danger{
  flex:1.3;border-color:#FFD9D2;background:linear-gradient(180deg,#FFF2EF,#FFE4DE);color:#C4513F;
}
.pz-btn.danger:active{background:#FFD9D2;}

/* 历史照片：不可修改时的提示样式 */
.ph-zoom.locked .pz-tip{color:#B98A1E;font-weight:800;}
.ph-zoom.locked .pz-acts{padding-top:0;}

/* ================= 英语学习（每天 2 词） ================= */
/* 单元选择条 */
.ew-units{
  display:flex;gap:8px;overflow-x:auto;padding:4px 2px 10px;margin-bottom:2px;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.ew-units::-webkit-scrollbar{display:none;}
.ew-chip{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;
  padding:9px 14px;border-radius:99px;border:1.5px solid #EADFCE;
  background:#fff;color:#8A7A66;font-size:12.5px;font-weight:800;
  cursor:pointer;-webkit-tap-highlight-color:transparent;transition:all .15s;
}
.ew-chip i{font-style:normal;font-size:10.5px;font-weight:800;color:#B3A490;background:#F5EFE4;border-radius:99px;padding:1px 6px;}
.ew-chip.on{
  background:linear-gradient(135deg,var(--btn-grad-a,#FFD966),var(--btn-grad-b,#FFC02E));
  border-color:transparent;color:#5F4200;box-shadow:0 4px 10px -4px rgba(242,161,11,.5);
}
.ew-chip.on i{background:rgba(255,255,255,.55);color:#5F4200;}
.ew-chip:active{transform:scale(.94);}

.ew-hero{
  margin:2px 2px 12px;padding:16px 18px;border-radius:24px;
  background:linear-gradient(150deg,var(--pts-bg-a,#FFF3C4),var(--pts-bg-b,#FFD95E));
  border:1px solid var(--pts-line,rgba(242,169,59,.55));
  box-shadow:0 10px 22px -12px var(--pts-glow,rgba(242,161,11,.45));
  color:var(--pts-ink,#7A5400);
}
.ew-hero h3{margin:0;font-size:16.5px;font-weight:900;letter-spacing:-.2px;}
.ew-hero p{margin:4px 0 0;font-size:12px;font-weight:700;opacity:.85;}
/* 音标拼读引导 */
.ew-ph{
  margin-top:12px;padding:14px 12px 12px;border-radius:18px;
  background:#F3F7FF;border:1.5px dashed #B9CDF2;
}
.ew-ph-title{font-size:13px;font-weight:900;color:#4A72B8;margin-bottom:10px;}
.ew-ph-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;}
.ew-phchip{
  display:flex;flex-direction:column;align-items:center;gap:2px;
  min-width:76px;padding:10px 18px;border-radius:18px;border:2px solid #C9D8F2;
  background:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:all .15s;
}
.ew-phchip b{font-size:18px;font-weight:800;color:#5E7DA8;font-family:Georgia,'Times New Roman',serif;line-height:1.1;}
.ew-phchip i{font-style:normal;font-size:23px;font-weight:900;letter-spacing:1.2px;line-height:1.15;}
/* 按音节配色：第 1 块橙、第 2 块绿、第 3 块紫、第 4 块粉（循环） */
.ew-phchip.c0{background:#FFF7EA;border-color:#FFD9A8;}
.ew-phchip.c0 i{color:#E8821E;}
.ew-phchip.c1{background:#EFF9F2;border-color:#BFE7D2;}
.ew-phchip.c1 i{color:#2E9E6B;}
.ew-phchip.c2{background:#F3F1FF;border-color:#D5CEFA;}
.ew-phchip.c2 i{color:#6C5CE7;}
.ew-phchip.c3{background:#FDF0F5;border-color:#F5C3D8;}
.ew-phchip.c3 i{color:#D9598E;}
.ew-phchip:active{transform:scale(.92);}
.ew-phchip.saying{
  background:linear-gradient(135deg,#DCEAFF,#B9D4FF);border-color:#7FA6E8;
  transform:scale(1.08);box-shadow:0 4px 12px -4px rgba(74,114,184,.55);
}
.ew-phchip.saying b{color:#1F4E97;}
.ew-progress{
  display:flex;gap:6px;margin-top:10px;align-items:center;font-size:11.5px;font-weight:800;
}
.ew-progress i{
  flex:1;height:9px;border-radius:99px;background:rgba(255,255,255,.55);overflow:hidden;position:relative;
}
.ew-progress i b{
  position:absolute;inset:0;width:0;border-radius:99px;
  background:linear-gradient(90deg,var(--btn-grad-a,#FFD966),var(--btn-grad-b,#FFC02E));
  transition:width .5s cubic-bezier(.2,.9,.3,1.2);
}
/* 词卡 */
.ew-card{
  background:#fff;border-radius:24px;padding:20px 18px;margin-bottom:12px;
  border:1px solid rgba(240,230,214,.9);box-shadow:var(--sh-sm);
  animation:rise .35s both;
}
.ew-card.done{border-color:#CDEBD9;background:#FBFEFC;}
.ew-word{font-size:31px;font-weight:900;letter-spacing:.5px;color:var(--ink);font-family:var(--num);line-height:1.1;}
.ew-ipa{font-size:13px;color:#B3A490;font-weight:700;font-family:var(--num);margin-top:3px;}
.ew-zh{font-size:15px;font-weight:800;color:var(--sun-deep,#F2994A);margin-top:5px;}
.ew-unit{font-size:10.5px;color:#C4B49E;font-weight:700;margin-top:2px;}
.ew-actions{display:flex;gap:9px;margin-top:14px;}
.ew-btn{
  flex:1;height:44px;border:none;border-radius:15px;cursor:pointer;
  font-family:var(--font);font-size:13.5px;font-weight:800;
  background:linear-gradient(180deg,var(--btn-grad-a,#FFD966),var(--btn-grad-b,#FFC02E));
  color:var(--btn-ink,#5C3A00);box-shadow:0 2px 0 var(--btn-edge,rgba(178,120,10,.5));
  transition:transform .1s,box-shadow .1s;
}
.ew-btn:active{transform:translateY(2px);box-shadow:none;}
.ew-btn.ghost{
  background:#FFF6E2;color:#A8700A;box-shadow:none;border:1.5px solid #F5E5C2;
}
.ew-btn.hear{flex:0 0 auto;width:52px;height:44px;font-size:19px;border-radius:15px;}
/* 拼写区 */
.ew-slots{
  display:flex;flex-wrap:wrap;gap:7px;justify-content:center;
  min-height:56px;padding:10px 6px;margin-bottom:14px;
  border-radius:16px;background:#FFFBF2;border:1.5px dashed #EADFC8;
}
.ew-slot{
  width:42px;height:50px;border-radius:12px;border:2px solid #EADFCC;background:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:22px;font-weight:900;font-family:var(--num);color:var(--ink);
}
.ew-slot.filled{border-color:var(--pts-num-a,#FFA320);background:#FFF8EA;cursor:pointer;}
.ew-slot.ok{border-color:#5BC98F;background:#F0FAF4;color:#1E7A50;}
.ew-slot.hint{border-color:#7EB8F0;background:#EDF6FF;color:#2F6FB2;}
.ew-pool{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;}
.ew-tile{
  min-width:44px;height:50px;padding:0 8px;border:none;border-radius:13px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  font-size:22px;font-weight:900;font-family:var(--num);color:#fff;text-transform:lowercase;
  background:linear-gradient(180deg,var(--btn-grad-a,#FFD966),var(--btn-grad-b,#FFC02E));
  box-shadow:0 3px 0 var(--btn-edge,rgba(178,120,10,.5));
  transition:transform .12s,opacity .15s;
}
.ew-tile:active{transform:scale(.92);}
.ew-tile.used{opacity:.22;pointer-events:none;transform:scale(.9);}
.ew-msg{
  text-align:center;font-size:12.5px;font-weight:800;min-height:20px;margin-top:12px;
  color:#B3A490;
}
.ew-msg.bad{color:#DD5B4E;}
.ew-msg.good{color:#1E9E6E;}
.ew-msg.hint{color:#2F6FB2;}
@keyframes ewShake{
  0%,100%{transform:translateX(0)}
  20%{transform:translateX(-7px)}
  40%{transform:translateX(7px)}
  60%{transform:translateX(-5px)}
  80%{transform:translateX(5px)}
}
.ew-slots.shake{animation:ewShake .45s;}
/* 复习模式横幅 */
.ew-done-banner{
  text-align:center;padding:26px 16px;border-radius:22px;margin-bottom:12px;
  background:linear-gradient(150deg,#E9F9F0,#D6F3E4);border:1.5px solid #BCE6CF;
  color:#1E7A50;font-weight:900;font-size:15.5px;animation:rise .3s both;
}
.ew-done-banner small{display:block;font-size:11.5px;font-weight:700;color:#5FA57F;margin-top:5px;}
/* 星星评分小行 */
.ew-earn{
  display:inline-flex;align-items:center;gap:4px;margin-top:10px;
  padding:5px 12px;border-radius:99px;font-size:12px;font-weight:900;
  background:var(--pts-chip-bg,#FFF6DE);color:var(--pts-chip-ink,#B4820F);
}

/* ================= 今日作业 ================= */
.hw-sheet{display:flex;flex-direction:column;max-height:80vh;}
.hw-list{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:4px 2px 8px;}
.hw-item{
  display:flex;align-items:flex-start;gap:10px;
  padding:11px 4px;border-bottom:1px dashed #F0E6D6;
}
.hw-item:last-child{border-bottom:none;}
.hw-item .no{
  flex:none;width:26px;height:26px;border-radius:9px;margin-top:1px;
  display:flex;align-items:center;justify-content:center;
  font-size:12.5px;font-weight:900;color:#fff;
  background:linear-gradient(135deg,#FFB559,#FF8A2B);
}
.hw-item:nth-child(3n+2) .no{background:linear-gradient(135deg,#5ED6A8,#2BB585);}
.hw-item:nth-child(3n) .no{background:linear-gradient(135deg,#7FB3FF,#4D7CFE);}
.hw-item .tx{flex:1;font-size:14.5px;line-height:1.55;color:#4a3f33;font-weight:600;word-break:break-all;}
.hw-empty{
  padding:34px 10px;text-align:center;color:#B9A894;font-size:13.5px;font-weight:700;
}
.hw-empty .big{font-size:40px;display:block;margin-bottom:10px;}

/* 今日作业：学科分组 */
.hw-ghead{
  display:flex;align-items:center;gap:7px;
  margin:14px 2px 2px;font-size:13.5px;font-weight:900;color:#6b5c4c;
  letter-spacing:.5px;
}
.hw-ghead.first{margin-top:6px;}
.hw-gico{
  flex:none;width:24px;height:24px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;font-size:13px;
  background:#FFF3DF;
}
.hw-sub-item{padding:7px 4px;}
.hw-sub-item .tx{font-size:14px;font-weight:600;}

/* 打卡页内嵌：任务匹配校内语/数/英作业时显示当天作业 */
.hw-in-sheet{
  margin:10px 0 2px;padding:10px 12px;border-radius:14px;
  background:#FFF8EA;border:1px solid #F5E4C4;
}
.hwis-item{
  padding:4px 2px;font-size:16.5px;line-height:1.65;font-weight:600;color:#4a3f33;
}
.hwis-item + .hwis-item{border-top:1px dashed #F0E0BC;margin-top:4px;padding-top:10px;}
.hwis-day{margin-top:8px;padding-top:6px;border-top:1px dashed #F0E0BC;font-size:12.5px;font-weight:700;color:#B9A24F;}
.hwis-empty{padding:2px;font-size:13.5px;font-weight:700;color:#B9A24F;}

/* ===== 给家长打分（每日态度 0-10 分） ===== */
.score-sheet{display:flex;flex-direction:column;align-items:center;max-height:82vh;}
.sc-face{font-size:44px;line-height:1;margin:10px 0 4px;transition:transform .15s;}
.sc-face.bump{animation:scBump .25s cubic-bezier(.3,1.5,.5,1);}
@keyframes scBump{0%{transform:scale(.7)}100%{transform:scale(1)}}
.sc-word{font-size:14px;font-weight:800;color:#8a7350;margin-bottom:12px;}
.sc-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;width:100%;justify-items:center;}
.sc-chip{
  border:none;background:#FFF3D6;color:#8a6a1f;font-family:inherit;
  width:100%;max-width:44px;padding:10px 0;border-radius:12px;
  font-size:15px;font-weight:900;cursor:pointer;
  transition:transform .12s,background .12s,color .12s;
}
.sc-chip:active{transform:scale(.92);}
.sc-chip.on{background:#FFB559;color:#fff;box-shadow:0 4px 10px rgba(255,150,40,.35);}
.sc-chip.ten{background:#FFE3EA;color:#D62953;}
.sc-chip.ten.on{background:#F2547E;color:#fff;}
.sc-chip.zero{background:#EFEAE1;color:#A89681;}
.sc-chip.zero.on{background:#9C8B7A;color:#fff;}
.sc-submit{
  margin-top:14px;border:none;cursor:pointer;font-family:inherit;
  background:linear-gradient(180deg,#FFD05C,#FFBE45);color:#5e4400;
  font-size:15.5px;font-weight:900;padding:13px 0;border-radius:999px;width:100%;
  box-shadow:0 2px 0 rgba(214,140,20,.5),0 6px 16px rgba(242,161,11,.3);
}
.sc-submit:disabled{opacity:.45;box-shadow:none;cursor:default;}
.sc-done{margin-top:10px;font-size:12.5px;font-weight:700;color:#B9A24F;min-height:16px;text-align:center;}

/* ===== 英语拼写：方式切换 + 手写板 ===== */
.ew-modebar{display:flex;gap:8px;justify-content:center;margin:2px 0 12px;}
.ew-mbtn{
  border:1.5px solid #EADFCB;background:#FFFBF2;color:#8a7a66;font-family:inherit;
  font-size:12.5px;font-weight:800;padding:7px 16px;border-radius:99px;cursor:pointer;
}
.ew-mbtn.on{background:#FFB559;border-color:#FFB559;color:#fff;box-shadow:0 3px 8px rgba(255,150,40,.3);}
.ew-write-head{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:8px;}
.ew-blanks{display:inline-flex;gap:7px;flex-wrap:wrap;justify-content:center;}
.ew-blank{width:26px;height:30px;border-bottom:3px solid #C9B37E;display:inline-block;}
.ew-mini-hear{
  border:none;background:#FFF3D6;border-radius:50%;width:40px;height:40px;
  font-size:17px;cursor:pointer;flex:none;
}
.ew-pad{
  width:100%;max-width:420px;height:190px;display:block;margin:0 auto 8px;
  background:#FFFDF6;border:2px dashed #E3D3A8;border-radius:18px;
  background-image:linear-gradient(rgba(227,211,168,.35) 1px,transparent 1px),linear-gradient(90deg,rgba(227,211,168,.35) 1px,transparent 1px);
  background-size:40px 40px;
  touch-action:none;cursor:crosshair;
}
.ew-ans{
  display:flex;align-items:center;justify-content:center;gap:10px;
  background:#FFF6E3;border:1.5px solid #F0E4CC;border-radius:14px;padding:10px 14px;margin:0 auto 8px;max-width:420px;
}
.ew-ans-lab{font-size:12px;font-weight:800;color:#B9A24F;}
.ew-ans b{font-size:22px;font-weight:900;color:#4a3f33;letter-spacing:3px;}

/* ===== 打分原因：推荐标签 + 语音/文字输入 ===== */
.sc-rlab{width:100%;text-align:left;font-size:13px;font-weight:800;color:#8a7350;margin-top:14px;}
.sc-rlab em{font-style:normal;font-weight:700;font-size:11px;color:#B9A894;}
.sc-chips2{display:flex;flex-wrap:wrap;gap:7px;width:100%;margin-top:8px;min-height:10px;}
.sc-rchip{
  border:1.5px solid #F0E4CC;background:#FFFDF6;color:#8a6a3f;font-family:inherit;
  font-size:12.5px;font-weight:800;padding:7px 13px;border-radius:999px;cursor:pointer;
}
.sc-rchip:active{transform:scale(.94);}
.sc-rchip.on{background:#FFF3D6;border-color:#FFB559;color:#C77714;}
.sc-rin{display:flex;gap:8px;width:100%;margin-top:10px;align-items:center;}
.sc-rin input{
  flex:1;min-width:0;border:1.5px solid #F0E4CC;background:#FFFDF6;border-radius:14px;
  padding:11px 14px;font-size:14px;font-weight:700;color:#5c4d3b;font-family:inherit;outline:none;
}
.sc-rin input:focus{border-color:#FFB559;}
.sc-rin input::placeholder{color:#C6B79F;font-weight:700;}
.sc-mic{
  flex:none;border:none;background:linear-gradient(180deg,#FFD05C,#FFBE45);color:#5e4400;
  width:44px;height:44px;border-radius:50%;font-size:18px;cursor:pointer;
  box-shadow:0 3px 9px rgba(242,161,11,.3);
}
.sc-mic.rec{background:linear-gradient(180deg,#FF8A8A,#F2547E);color:#fff;animation:micPulse 1s ease-in-out infinite;}
@keyframes micPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
.sc-rtip{width:100%;min-height:14px;font-size:11.5px;font-weight:700;color:#B9A894;text-align:center;margin-top:5px;}
