/* 礼盒获奖酷炫弹窗 */
.prizeReveal{ text-align:center; padding:18px 14px 22px; animation:prizePop .45s cubic-bezier(.18,1.4,.4,1) both; }
.prizeBurst{ font-size:22px; letter-spacing:2px; margin-bottom:6px; animation:prizeShake .6s ease-in-out infinite alternate; }
.prizeTitle{ font-size:22px; font-weight:900; color:var(--warn); text-shadow:0 2px 0 #fff,0 3px 0 rgba(0,0,0,.12); margin-bottom:10px; }
.prizeName{ font-size:26px; font-weight:900; color:var(--ink); background:linear-gradient(180deg,#FFF6D8,#FFE08A); border:2px dashed #F4B400; border-radius:14px; padding:12px 10px; margin:6px 0; box-shadow:0 4px 0 rgba(244,180,0,.35); animation:prizeGlow 1.2s ease-in-out infinite alternate; }
.prizeTag{ font-size:13px; color:#888; margin-bottom:14px; }
.prizeClose{ width:100%; font-size:18px; padding:12px; }
@keyframes prizePop{ 0%{ transform:scale(.4); opacity:0 } 100%{ transform:scale(1); opacity:1 } }
@keyframes prizeShake{ 0%{ transform:translateY(0) rotate(-2deg) } 100%{ transform:translateY(-3px) rotate(2deg) } }
@keyframes prizeGlow{ 0%{ box-shadow:0 4px 0 rgba(244,180,0,.35) } 100%{ box-shadow:0 4px 16px rgba(244,180,0,.75) } }

/* 宝贝学习乐园 —— PvZ 风格样式（竖屏 390×844 基准，大字号、卡通描边） */
:root{
  --grass:#5BA838; --grass-d:#3E7D1E; --grass-l:#7CCB4F;
  --sun:#FFD54F; --soil:#8D6E63; --soil-d:#5D4037;
  --ink:#2C3A1B; --card:#FFFFFF; --panel:#EAF7DD;
  --zombie:#7E57C2; --red:#E53935; --blue:#1E88E5;
  --bad: #EF5350; --ok:#43A047; --warn:#FB8C00;
  --shadow: 0 4px 0 rgba(0,0,0,.18);
}
*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body{ margin:0; height:100%; }
body{
  font-family: "PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  background:#2b3a1a; color:var(--ink);
  display:flex; justify-content:center;
  -webkit-user-select:none; user-select:none;
}
#phone{
  width:100%; max-width:430px; min-height:100vh;
  background:linear-gradient(180deg,#CDEBFF 0%, #E3F2FD 30%, var(--panel) 60%, var(--panel) 100%);
  display:flex; flex-direction:column; position:relative;
  box-shadow:0 0 30px rgba(0,0,0,.4);
}

/* 顶栏 */
#topbar{
  height:54px; flex:0 0 54px; display:flex; align-items:center; gap:8px;
  padding:0 10px; background:var(--grass); color:#fff;
  box-shadow:0 3px 0 var(--grass-d); position:sticky; top:0; z-index:10;
}
#appTitle{ flex:1; text-align:center; font-size:20px; font-weight:800; letter-spacing:1px;
  text-shadow:0 2px 0 var(--grass-d); }
.iconbtn{
  width:42px; height:42px; border:none; border-radius:12px; font-size:24px;
  background:rgba(255,255,255,.2); color:#fff; font-weight:800;
}
.iconbtn:active{ transform:translateY(2px); }
.hidden{ display:none !important; }

/* 主区 */
#app{ flex:1; overflow-y:auto; padding:14px 14px 28px; -webkit-overflow-scrolling:touch; }

/* 通用卡片 */
.card{ background:var(--card); border-radius:18px; padding:14px;
  box-shadow:var(--shadow); border:3px solid #fff; margin-bottom:14px; }
.card.tint{ background:var(--panel); }
.h2{ font-size:19px; font-weight:800; margin:0 0 10px; }
.collapse-card .coll-body{ display:none; }
.collapse-card.open .coll-body{ display:block; }
.coll-head{ cursor:pointer; user-select:none; display:flex; justify-content:space-between; align-items:center;
  margin:0; }
.coll-head .arrow{ font-size:13px; color:#6b7a55; transition:transform .18s ease; transform:rotate(0deg); }
.collapse-card.open .coll-head .arrow{ transform:rotate(90deg); }
.muted{ color:#6b7a55; font-size:14px; }
.big{ font-size:28px; font-weight:900; }
.row{ display:flex; align-items:center; gap:10px; }
.spread{ display:flex; justify-content:space-between; align-items:center; }

/* 按钮 */
.btn{
  height:56px; border:none; border-radius:16px; font-size:19px; font-weight:800;
  background:var(--sun); color:var(--soil-d); box-shadow:0 4px 0 #C9A227;
  display:flex; align-items:center; justify-content:center; gap:8px; width:100%;
  cursor:pointer;
}
.btn:active{ transform:translateY(3px); box-shadow:0 1px 0 #C9A227; }
.btn.green{ background:var(--grass); color:#fff; box-shadow:0 4px 0 var(--grass-d); }
.btn.blue{ background:var(--blue); color:#fff; box-shadow:0 4px 0 #1565C0; }
.btn.red{ background:var(--bad); color:#fff; box-shadow:0 4px 0 #B71C1C; }
.btn.ghost{ background:#fff; color:var(--grass-d); box-shadow:0 4px 0 #cfe3b8; border:2px solid var(--grass-l); }
.btn.orange{ background:#FB8C00; color:#fff; box-shadow:0 4px 0 #E65100; }
.btn.sm{ height:44px; font-size:16px; border-radius:12px; }
.btn:disabled{ filter:grayscale(.6) brightness(.95); opacity:.7; }

/* 首页形象大图 */
.hero{ text-align:center; background:
  repeating-linear-gradient(45deg,#bfe9a0 0 18px,#b2e292 18px 36px);
  border-radius:20px; padding:22px 10px 18px; border:3px solid #fff;
  box-shadow:var(--shadow); position:relative; overflow:hidden; }
.hero .lvtag{ position:absolute; top:10px; left:10px; background:var(--soil-d);
  color:#fff; font-weight:800; font-size:14px; padding:4px 10px; border-radius:20px; }
.hero img.avatar{ width:150px; height:150px; object-fit:contain;
  filter:drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.hero .fallback{ font-size:96px; line-height:150px; }
.hero .pname{ font-size:22px; font-weight:900; margin-top:4px; color:var(--soil-d); }
.hero .next{ margin-top:8px; font-size:15px; font-weight:700; color:var(--grass-d); }
.bar{ height:14px; background:#fff; border-radius:10px; overflow:hidden; border:2px solid #cfe3b8; }
.bar > i{ display:block; height:100%; background:linear-gradient(90deg,var(--grass-l),var(--grass)); }

/* 数据芯片 */
.chips{ display:flex; gap:10px; margin:12px 0; }
.chip{ flex:1; background:#fff; border-radius:14px; padding:10px; text-align:center;
  box-shadow:var(--shadow); border:2px solid #eaf3df; }
.chip .k{ font-size:13px; color:#6b7a55; }
.chip .v{ font-size:24px; font-weight:900; color:var(--grass-d); }

/* 四维 */
.stats{ display:flex; flex-direction:column; gap:8px; }
.stat{ display:flex; align-items:center; gap:10px; background:#fff; border-radius:12px;
  padding:8px 10px; box-shadow:0 3px 0 #eaf3df; }
.stat .nm{ width:54px; font-weight:800; font-size:15px; }
.stat .bar{ flex:1; }
.stat .nm.hintable,.stat .bar.hintable{ cursor:pointer; user-select:none; -webkit-tap-highlight-color:transparent; }
.stat .nm.hintable:active,.stat .bar.hintable:active{ opacity:.6; }
.stat .num{ width:34px; text-align:right; font-weight:900; }
.stat .plus,.stat .plus1{ width:40px; height:40px; border:none; border-radius:10px;
  font-weight:900; font-size:20px; touch-action:manipulation; user-select:none;
  -webkit-user-select:none; -webkit-touch-callout:none; }
.stat .plus{ background:var(--sun); color:var(--soil-d); box-shadow:0 3px 0 #C9A227; }
.stat .plus1{ background:var(--grass); color:#fff; box-shadow:0 3px 0 var(--grass-d); }
.stat .plus:active,.stat .plus1:active{ transform:translateY(2px); }
.stat .plus:disabled,.stat .plus1:disabled{ filter:grayscale(.6); }

/* 四宫格入口 */
.grid4{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:6px; }
.tile{ border:none; border-radius:20px; height:118px; font-size:18px; font-weight:900;
  color:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; box-shadow:var(--shadow); cursor:pointer; }
.tile .ic{ font-size:42px; }
.tile:active{ transform:translateY(3px); }
.tile.learn{ background:var(--blue); box-shadow:0 4px 0 #1565C0; }
.tile.review{ background:var(--grass); box-shadow:0 4px 0 var(--grass-d); }
.tile.battle{ background:var(--red); box-shadow:0 4px 0 #B71C1C; }
.tile.honor{ background:var(--sun); color:var(--soil-d); box-shadow:0 4px 0 #C9A227; }
.tile .badge-mini{ font-size:12px; font-weight:700; opacity:.9; }

/* 荣誉横滑 */
.scrollx{ display:flex; gap:10px; overflow-x:auto; padding:4px 2px 8px; }
.badge{ flex:0 0 auto; width:78px; text-align:center; cursor:pointer; transition:transform .12s; }
.badge:hover{ transform:translateY(-3px); }
.badge:active{ transform:scale(.95); }
.badge .medal{ width:62px; height:62px; border-radius:50%; margin:0 auto;
  display:flex; align-items:center; justify-content:center; font-size:30px;
  background:radial-gradient(circle at 30% 30%,#fff6cf,var(--sun)); border:3px solid #E0A800;
  box-shadow:var(--shadow); }
.badge.locked .medal{ background:#e7e7e7; border-color:#bbb; filter:grayscale(1); opacity:.7; }
.badge .bn{ font-size:11px; margin-top:4px; color:#5d6b48; line-height:1.2; }
.badge.epic .medal{ border-color:#9C27B0; background:radial-gradient(circle at 30% 30%,#f3d9ff,#CE93D8); }
.badge.rare .medal{ border-color:#1E88E5; background:radial-gradient(circle at 30% 30%,#d6ecff,#90CAF9); }

/* 看板（近 7 天得分 —— 竖向柱状图） */
.board{ display:flex; gap:10px; align-items:flex-end; height:150px; padding:6px 4px 0;
  border-bottom:3px solid #cfe3b0; }
.col{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
  height:100%; gap:3px; }
.col .s{ font-size:13px; font-weight:800; color:var(--grass-d); line-height:1; }
.col .track{ width:100%; flex:1; min-height:0; display:flex; align-items:flex-end;
  background:rgba(120,150,90,0.10); border-radius:8px 8px 0 0; overflow:hidden; }
.col .b{ width:100%; min-height:3px; border-radius:8px 8px 0 0;
  box-shadow:0 2px 0 rgba(0,0,0,0.08); transition:height .25s ease; }
.col .d{ font-size:12px; color:#6b7a55; line-height:1; }
.yest{ display:flex; flex-wrap:wrap; gap:8px; }
.yest .it{ display:flex; align-items:center; gap:6px; background:#fff; border-radius:12px;
  padding:8px 10px; font-size:15px; box-shadow:0 3px 0 #eaf3df; }
.dot{ width:14px; height:14px; border-radius:50%; }
.dot.ok{ background:var(--ok); } .dot.no{ background:var(--bad); }

/* 录入表单 */
.field{ margin-bottom:14px; }
.field label{ font-weight:800; font-size:16px; display:block; margin-bottom:6px; }
.field label.lblrow{ display:flex; align-items:center; justify-content:space-between; }
.partscore{ font-size:13px; font-weight:800; color:#fff; background:var(--grass);
  padding:2px 9px; border-radius:11px; box-shadow:0 2px 0 var(--grass-d); line-height:1.6; }
.partscore.zero{ background:#BDBDBD; box-shadow:0 2px 0 #9E9E9E; }
.switch{ position:relative; width:64px; height:36px; border-radius:20px; background:#ccc;
  transition:.2s; flex:0 0 64px; }
.switch.on{ background:var(--ok); }
.switch::after{ content:""; position:absolute; top:3px; left:3px; width:30px; height:30px;
  border-radius:50%; background:#fff; transition:.2s; box-shadow:0 2px 3px rgba(0,0,0,.3); }
.switch.on::after{ left:31px; }
input[type=text],input[type=number],textarea,input[type=password]{
  width:100%; font-size:18px; padding:12px; border-radius:12px; border:2px solid #cfe3b8;
  background:#fff; color:var(--ink); font-family:inherit; }
textarea{ min-height:74px; resize:vertical; }
.stepper{ display:flex; align-items:center; gap:10px; }
.stepper button{ width:46px; height:46px; border-radius:12px; border:none; font-size:24px;
  font-weight:900; background:var(--grass); color:#fff; box-shadow:0 3px 0 var(--grass-d); }
.stepper .val{ font-size:22px; font-weight:900; min-width:40px; text-align:center; }
.scorelive{ text-align:center; font-size:16px; margin:6px 0 12px; }
.scorelive b{ font-size:30px; color:var(--grass-d); }
.warnbox{ color:#E53935; font-size:13px; font-weight:600; min-height:16px; margin:-6px 0 8px; text-align:center; }

/* 复习 */
.revcard{ background:#fff; border-radius:18px; padding:18px; box-shadow:var(--shadow);
  text-align:center; min-height:230px; display:flex; flex-direction:column; justify-content:center; }
.revcard .word{ font-size:46px; font-weight:900; color:var(--blue); }
.revcard .cn{ font-size:20px; color:#555; margin-top:8px; }
.zhgrid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.zhcell{ background:#fff; border-radius:14px; padding:10px; text-align:center; box-shadow:var(--shadow); }
.zhcell .c{ font-size:46px; font-weight:900; color:var(--ink); }
.zhcell .meta{ font-size:11px; color:#8a8a8a; margin-top:4px; }
.revtoolbar{ display:flex; justify-content:space-between; margin-top:12px; gap:10px; }
.evallist{ display:flex; flex-direction:column; gap:8px; }
.evalit{ display:flex; align-items:center; gap:10px; background:#fff; border-radius:12px;
  padding:10px 12px; box-shadow:0 3px 0 #eaf3df; font-size:17px; }
.evalit .mark{ width:30px; height:30px; border-radius:8px; border:2px solid #cfe3b8;
  flex:0 0 30px; display:flex; align-items:center; justify-content:center; font-size:18px; color:var(--bad); }
.evalit.bad .mark{ background:var(--bad); color:#fff; border-color:var(--bad); }
.evalit .lab{ flex:1; }

/* 对战 */
#battleWrap{ position:relative; }
#battleCanvas{ width:100%; height:360px; border-radius:18px; display:block;
  background:#9fd17a; box-shadow:var(--shadow); }
#skillBtn{ position:absolute; left:50%; bottom:14px; transform:translateX(-50%); z-index:3;
  background:linear-gradient(180deg,#B2FF59,#7CB342); color:#1b3d0e; font-weight:900;
  border:none; border-radius:30px; padding:14px 26px; font-size:18px; box-shadow:0 4px 0 #558B2F; }
#skillBtn:disabled{ filter:grayscale(.7); opacity:.6; }
.battleHud{ text-align:center; margin-top:8px; font-size:15px; color:#5d6b48; }

/* 弹窗 */
#modalRoot .mask{ position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:50;
  display:flex; align-items:center; justify-content:center; padding:20px; }
.modal{ background:#fff; border-radius:20px; padding:18px; width:100%; max-width:360px;
  box-shadow:0 8px 0 rgba(0,0,0,.25); }
.modal h3{ margin:0 0 12px; font-size:20px; }
.modal .opt{ margin:8px 0; }
.longpress{ height:64px; border-radius:16px; border:3px dashed var(--grass);
  background:var(--panel); color:var(--grass-d); font-weight:900; font-size:18px;
  display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.longpress .fill{ position:absolute; inset:0; width:0; background:var(--grass-l); z-index:0; }
.longpress span{ position:relative; z-index:1; }
.pinbox{ display:flex; gap:8px; justify-content:center; margin:10px 0; }
.pinbox input{ width:54px; height:64px; text-align:center; font-size:28px; font-weight:900; }

/* toast */
#toast{ position:fixed; left:50%; bottom:80px; transform:translateX(-50%);
  background:rgba(0,0,0,.82); color:#fff; padding:12px 18px; border-radius:14px;
  font-size:16px; z-index:60; max-width:80%; text-align:center; }

/* 设置 */
.setrow{ display:flex; justify-content:space-between; align-items:center; gap:10px;
  padding:12px 0; border-bottom:1px dashed #cfe3b8; }
/* 自定义日期选择器触发按钮（替代原生 input[type=date]，移动端可靠点击） */
.datebtn{ border:1px solid #ddd;border-radius:8px;padding:7px 12px;font-size:15px;
  background:#fff;color:var(--ink);cursor:pointer;min-height:40px;font-weight:700;
  -webkit-appearance:none;appearance:none; }
.datebtn:active{ background:#eef6e6; }
.dateinput{ border:1px solid #ddd;border-radius:8px;padding:7px 12px;font-size:15px;
  background:#fff;color:var(--ink);min-height:40px;font-weight:700;
  -webkit-appearance:none;appearance:none; }
.dateinput:focus{ outline:none;border-color:#9ed17a; }
.dpSel{ font-size:18px;padding:10px 8px;border-radius:10px;border:2px solid #cfe3b8;
  background:#fff;color:var(--ink);font-weight:800; -webkit-appearance:none;appearance:none; }
.setrow:last-child{ border-bottom:none; }
.codebox{ font-family:ui-monospace,monospace; font-size:11px; word-break:break-all;
  background:#f3f7ee; border:2px solid #cfe3b8; border-radius:10px; padding:10px; max-height:120px; overflow:auto; }
.tip{ font-size:13px; color:#6b7a55; line-height:1.6; background:#fff7df; border-radius:12px;
  padding:10px 12px; margin-top:8px; }

/* 拍照识别按钮 */
.cam{ width:44px; height:44px; border:none; border-radius:12px; background:#FB8C00; color:#fff;
  font-size:20px; flex:0 0 auto; box-shadow:0 3px 0 #E65100; cursor:pointer; }
.cam:active{ transform:translateY(2px); }
.cam.wide{ width:100%; margin-bottom:8px; height:44px; font-size:16px; font-weight:800; }

/* 僵尸看板 */
.zombie-board .zb{ display:flex; gap:12px; align-items:center; background:var(--panel);
  border-radius:14px; padding:12px; }
.zbimg{ flex:0 0 96px; width:96px; height:108px; border-radius:12px; overflow:hidden;
  background:#cfc0e8; display:flex; flex-direction:column; }
.zimgwrap{ flex:1; min-height:0; display:flex; align-items:center; justify-content:center; }
.zbimg img{ max-width:100%; max-height:100%; object-fit:contain; }
.zbimg .zbfb{ font-size:48px; line-height:1; }
.zbinfo{ flex:1; min-width:0; }
.zname{ font-size:18px; font-weight:900; color:#5e35b1; margin-bottom:4px; }
.zbstats{ display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.zbd{ display:flex; align-items:center; gap:8px; }
.zbd .zk{ width:38px; font-size:13px; font-weight:800; color:#5d6b48; flex:0 0 38px; }
.zbd .zbar{ flex:1; height:12px; background:#fff; border-radius:8px; overflow:hidden;
  border:2px solid #e0d4f2; }
.zbd .zbar > i{ display:block; height:100%; background:linear-gradient(90deg,#BA68C8,#7E57C2); }
.zbd .zv{ width:34px; text-align:right; font-weight:900; font-size:14px; color:#5e35b1; flex:0 0 34px; }

/* ===== 对战准备界面 ===== */
.battlePrep{ position:relative; min-height:calc(100% - 20px); border-radius:18px; overflow:hidden;
  display:flex; align-items:center; justify-content:center; }
.prepBg{ position:absolute; inset:0; background-size:cover; background-position:center; filter:brightness(.82); }
.prepBg::after{ content:""; position:absolute; inset:0; background:rgba(40,12,60,.42); }
.prepPanel{ position:relative; z-index:1; width:min(420px,86%); background:rgba(255,255,255,.94);
  border-radius:18px; padding:24px 22px; box-shadow:0 10px 30px rgba(60,20,90,.35); text-align:center; }
.prepHero{ font-size:26px; font-weight:900; color:#6a1b9a; margin-bottom:18px; }
.prepRow{ display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:#f3e5f5; border-radius:12px; padding:12px 14px; margin-bottom:18px; }
.prepLab{ font-size:15px; font-weight:800; color:#5d4037; }
.prepSelect{ flex:0 0 auto; min-width:120px; font-size:15px; font-weight:800; color:#4a148c;
  border:2px solid #CE93D8; border-radius:10px; padding:8px 10px; background:#fff; cursor:pointer; }
.prepBtns{ display:flex; gap:12px; }
.prepBtns .btn{ flex:1; font-size:16px; padding:12px 0; }

/* ===== 植物/僵尸 星等 + 装饰框（对战 canvas 不显示，仅首页/看板） ===== */
.plantFrame{ position:relative; }
.plantFrame .avatar{ border-radius:18px; box-shadow:0 0 0 4px #FFE082, 0 0 18px 4px rgba(255,179,0,.55); background:radial-gradient(circle at 50% 35%, #fffde7, #fff3c4); }
.heroStars, .imgStars{ text-align:center; font-size:26px; color:#FF8F00; letter-spacing:2px;
  text-shadow:0 0 6px rgba(255,143,0,.7); margin:0 0 4px; line-height:1; }
.zombieFrame{ position:relative; border:3px solid #AB47BC; box-shadow:0 0 14px 3px rgba(171,71,188,.5); background:linear-gradient(160deg,#f3e5f5,#e1bee7); padding-top:8px; }
.imgStars{ position:static; }

/* ===== 愿望礼盒 ===== */
.giftrow{ display:flex; gap:10px; margin-top:4px; }
.giftbox{ flex:1; border-radius:14px; padding:12px 6px; text-align:center; position:relative;
  border:3px solid #ccc; background:#f5f5f5; color:#777; transition:transform .12s; cursor:pointer; }
.giftbox:active{ transform:scale(.96); }
.giftbox.green{ border-color:#66BB6A; background:linear-gradient(160deg,#e8f5e9,#c8e6c9); color:#2e7d32; }
.giftbox.blue{ border-color:#42A5F5; background:linear-gradient(160deg,#e3f2fd,#bbdefb); color:#1565c0; }
.giftbox.purple{ border-color:#AB47BC; background:linear-gradient(160deg,#f3e5f5,#e1bee7); color:#6a1b9a; }
.giftbox.ready{ animation:pulse 1.1s infinite; box-shadow:0 0 0 3px rgba(255,193,7,.6); }
.giftbox.opened{ opacity:.6; }
.giftbox.locked{ filter:grayscale(.4); }
@keyframes pulse{ 0%{box-shadow:0 0 0 0 rgba(255,193,7,.6);} 70%{box-shadow:0 0 0 10px rgba(255,193,7,0);} 100%{box-shadow:0 0 0 0 rgba(255,193,7,0);} }
.giftico{ font-size:34px; line-height:1; }
.giftname{ font-weight:900; font-size:14px; margin-top:4px; }
.giftstate{ font-size:12px; margin-top:2px; font-weight:700; }

/* ===== 近7日没记牢的内容 ===== */
.wronglist{ display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.wrongitem{ display:flex; align-items:center; gap:8px; background:#fff3e0; border-radius:10px; padding:8px 10px; }
.wtag{ font-size:11px; font-weight:900; color:#fff; border-radius:6px; padding:2px 6px; flex:0 0 auto; }
.wtag.en{ background:#42A5F5; } .wtag.zh{ background:#66BB6A; } .wtag.math{ background:#EF5350; }
.wlab{ flex:1; font-weight:700; color:#5d4037; }
.wmuted{ font-size:12px; color:#9e9e9e; flex:0 0 auto; }

/* 没记牢银行：放大显示，每条可「会了」移除 */
.wrongbig{ display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.wrongbigitem{ display:flex; align-items:center; gap:10px; background:#fff3e0; border-radius:12px; padding:12px 14px; }
.wbmain{ flex:1; display:flex; align-items:center; gap:10px; min-width:0; }
.wbtag{ font-size:14px; font-weight:900; color:#fff; background:#FB8C00; border-radius:8px; padding:3px 8px; flex:0 0 auto; }
.wbtext{ flex:1; font-size:20px; font-weight:800; color:#5d4037; line-height:1.3; word-break:break-all; min-width:0; }
.wbmuted{ font-size:12px; color:#9e9e9e; flex:0 0 auto; }
.wok{ flex:0 0 auto; border-color:#FB8C00; color:#e65100; }

/* ===== 断签弥补弹窗 ===== */
.mklist{ display:flex; flex-direction:column; gap:8px; margin:10px 0; max-height:46vh; overflow:auto; }
.mkrow{ display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:#f5f5f5; border-radius:10px; padding:8px 10px; }

/* ===== 拍照识别弹窗 ===== */
.ocrBox{ text-align:left; }
.ocrStage{ position:relative; width:100%; max-height:44vh; overflow:hidden;
  border-radius:12px; background:#eceff1; display:flex; justify-content:center;
  touch-action:none; user-select:none; -webkit-user-select:none; }
.ocrStage img{ max-width:100%; max-height:44vh; display:block; pointer-events:none; }
.ocrSel{ position:absolute; border:2px dashed #FF9800; background:rgba(255,152,0,.18);
  border-radius:4px; pointer-events:auto; cursor:move;
  box-shadow:0 0 0 9999px rgba(0,0,0,.45); }   /* 框外暗化：直观表示"只识别框内" */
.ocrSel .h{ position:absolute; width:18px; height:18px; background:#fff; border:2px solid #FF9800;
  border-radius:50%; pointer-events:auto; box-sizing:border-box; }
.ocrSel .h.nw{ left:-9px; top:-9px; cursor:nwse-resize; }
.ocrSel .h.ne{ right:-9px; top:-9px; cursor:nesw-resize; }
.ocrSel .h.sw{ left:-9px; bottom:-9px; cursor:nesw-resize; }
.ocrSel .h.se{ right:-9px; bottom:-9px; cursor:nwse-resize; }
.ocrHw{ display:flex; align-items:center; gap:6px; font-size:13px; color:#555; margin:4px 0 0; }
.ocrBar{ height:8px; background:#e0e0e0; border-radius:6px; overflow:hidden; margin:8px 0 4px; }
.ocrBarIn{ height:100%; width:0%; background:linear-gradient(90deg,#66BB6A,#43A047); transition:width .2s; }
.ocrBox textarea{ width:100%; box-sizing:border-box; border:2px solid #cfd8dc; border-radius:10px;
  padding:8px; font-size:15px; line-height:1.6; resize:vertical; margin-top:4px; }
.ocrBox .row{ display:flex; }
.ocrBox .row .btn{ flex:1; }

/* 愿望清单 */
.wishrow{ display:flex; align-items:center; gap:6px; margin:6px 0; }
.wishrow input.wishname{ flex:1; min-width:0; border:1px solid #ddd; border-radius:8px; padding:6px 8px; font-size:14px; }
.wishrow select.wishtype{ border:1px solid #ddd; border-radius:8px; padding:5px 4px; font-size:13px; background:#fff; }

/* 学习资料编辑板 */
.leDay{ border:1px solid #eee; border-radius:10px; padding:8px; margin-bottom:8px; background:#fff; }
.leHead{ font-weight:600; color:#5B8C2A; margin-bottom:6px; font-size:14px; }
/* 日历 */
.calHead{ display:flex; align-items:center; justify-content:center; gap:14px; font-weight:600; color:#5B8C2A; margin:8px 0 4px; }
.calHead .btn{ width:30px; height:30px; padding:0; line-height:1; }
.calWeek{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; margin-bottom:4px; }
.calWeek span{ text-align:center; font-size:12px; color:#999; }
.calGrid{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.calCell{ border:1px solid #eee; border-radius:8px; background:#fff; color:#444; min-height:34px; padding:0; font-size:13px; cursor:pointer; transition:background .12s; }
.calCell.empty{ background:transparent; border-color:transparent; cursor:default; }
.calTip{ font-size:11px; font-weight:500; color:#9c8b5e; }
.calCell:hover:not(.empty){ background:#f3f9e8; }
/* 有学习内容的日子：明显橙黄 + 底部小圆点（与"当前选中"的绿框明确区分） */
.calCell.hasRec{ background:#FFE082; border-color:#FFB300; color:#7a5200; font-weight:800; }
.calCell.hasRec::after{ content:""; display:block; width:5px; height:5px; border-radius:50%; background:#F57F17; margin:1px auto 0; }
/* 当前选中的日子：粗绿框 + 内圈白边 */
.calCell.sel{ outline:3px solid #2E7D32; outline-offset:-3px; box-shadow:inset 0 0 0 2px #fff; }
.leTextarea{ width:100%; min-height:72px; box-sizing:border-box; border:1px solid #ddd; border-radius:8px; padding:8px; font-size:14px; resize:vertical; font-family:inherit; }
.leTextarea:focus{ outline:none; border-color:#5B8C2A; }
.wishTA{ width:100%; min-height:90px; box-sizing:border-box; border:1px solid #ddd; border-radius:8px; padding:8px; font-size:14px; resize:vertical; font-family:inherit; }
.wishTA:focus{ outline:none; border-color:#5B8C2A; }
.leRow{ display:flex; align-items:center; gap:6px; margin:5px 0; }
.leRow input.leVal{ flex:1; min-width:0; border:1px solid #ddd; border-radius:8px; padding:6px 8px; font-size:14px; }

/* ===== 新增装饰模块样式（移植自主项目，变量名与本项目 :root 一致） ===== */
/* 庆祝彩屑 */
.fx-confetti{ position:fixed; inset:0; pointer-events:none; z-index:80; overflow:hidden; }
.fx-confetti i{ position:absolute; top:-24px; width:10px; height:14px; border-radius:2px;
  animation:confettiFall 2.6s linear forwards; }
@keyframes confettiFall{ 0%{ transform:translateY(-10px) rotate(0); opacity:1 } 100%{ transform:translateY(105vh) rotate(540deg); opacity:.9 } }
/* 解锁新植物炫酷动画 */
.unlockAnim{ text-align:center; animation:prizePop .5s cubic-bezier(.18,1.4,.4,1) both; }
.unlockPlant{ position:relative; width:150px; height:150px; margin:6px auto; border-radius:24px;
  background:radial-gradient(circle at 50% 35%,#fffde7,#fff3c4);
  box-shadow:0 0 0 4px #FFE082, 0 0 26px 6px rgba(255,179,0,.6); animation:unlockZoom .6s cubic-bezier(.18,1.5,.4,1) both; }
.unlockPlant img{ width:130px; height:130px; object-fit:contain; }
.unlockPlant .fallback{ font-size:96px; line-height:150px; }
.unlockGlow{ font-size:40px; animation:unlockSpin 1.4s ease-in-out infinite alternate; }
@keyframes unlockZoom{ 0%{ transform:scale(.3) rotate(-12deg); opacity:0 } 60%{ transform:scale(1.12) rotate(6deg) } 100%{ transform:scale(1) rotate(0) } }
@keyframes unlockSpin{ 0%{ transform:rotate(-12deg) scale(.9) } 100%{ transform:rotate(12deg) scale(1.1) } }
.winBurst{ font-size:72px; line-height:1; animation:prizeShake .6s ease-in-out infinite alternate; }

/* 我的入口 */
.mineCard{ display:flex; align-items:center; gap:12px; background:#fff; border-radius:14px;
  padding:14px 14px; margin-bottom:10px; box-shadow:var(--shadow); cursor:pointer; border:2px solid #eaf3df; }
.mineCard:active{ transform:translateY(2px); }
.mineCard .mic{ font-size:30px; flex:0 0 auto; }
.mineCard .mt{ font-size:17px; font-weight:800; color:var(--soil-d); }
.mineCard .marr{ margin-left:auto; font-size:24px; color:#b0c49a; }
.mine-home{ background:linear-gradient(180deg,#FFF3C4,#FFE08A); color:var(--soil-d); box-shadow:0 4px 0 #E0A800; font-weight:900; }

/* 贴纸墙 */
.stkGrid{ display:grid; grid-template-columns:repeat(10,1fr); gap:4px; }
.stk{ background:#f4f4f4; border-radius:10px; padding:3px; aspect-ratio:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center; border:2px solid #e6e6e6; }
.stk .stkSvg{ width:100%; height:100%; filter:grayscale(1) opacity(.5); transition:.2s; }
.stk.lit{ background:#fff; border-color:#FFD54F; box-shadow:0 0 0 2px rgba(255,213,79,.4); }
.stk.lit .stkSvg{ filter:none; opacity:1; }

/* 图鉴 */
.codexRow{ display:flex; align-items:center; gap:12px; background:#fff; border-radius:14px;
  padding:10px 12px; margin-bottom:8px; box-shadow:var(--shadow); border:2px solid #eaf3df; }
.codexRow.lock{ filter:grayscale(.7); opacity:.7; }
.codexImg{ width:54px; height:54px; object-fit:contain; flex:0 0 54px; background:#fafafa; border-radius:10px; }
.codexInfo{ flex:1; min-width:0; }
.codexName{ font-size:17px; font-weight:800; color:var(--soil-d); }
.codexTag{ font-size:12px; font-weight:800; color:#9e9e9e; flex:0 0 auto; padding:4px 8px; border-radius:10px; background:#f0f0f0; }
.codexTag.ok{ color:#fff; background:var(--grass); }

/* 花园 */
.garden{ position:relative; height:240px; border-radius:16px; overflow:hidden; margin-bottom:12px;
  background:url('assets/bg3.jpg') center/cover no-repeat; border:3px solid #fff; box-shadow:var(--shadow); touch-action:none; }
.garden::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(255,255,255,.15),rgba(0,0,0,.08)); pointer-events:none; }
.gItem{ position:absolute; width:48px; height:48px; object-fit:contain; cursor:grab; touch-action:none;
  filter:drop-shadow(0 3px 3px rgba(0,0,0,.3)); user-select:none; -webkit-user-select:none; }
.gItem:active{ cursor:grabbing; }
.gPalWrap{ display:flex; flex-wrap:wrap; gap:8px; }
.gPal{ display:flex; flex-direction:column; align-items:center; width:64px; background:#fff; border-radius:12px;
  padding:6px 2px; box-shadow:0 3px 0 #eaf3df; cursor:pointer; border:2px solid #eaf3df; }
.gPal img{ width:40px; height:40px; object-fit:contain; }
.gPal span{ font-size:11px; font-weight:700; color:#5d6b48; margin-top:2px; }
.gPal.lock{ filter:grayscale(1); opacity:.5; cursor:not-allowed; }
.gPal.used{ filter:grayscale(.6); opacity:.45; cursor:not-allowed; box-shadow:inset 0 0 0 2px #c5c5a5; }

/* 成长相册 */
.albumCard{ background:#fff; border-radius:16px; padding:12px; margin-bottom:12px; box-shadow:var(--shadow); border:3px solid #FFE082; }
.albumTop{ font-size:15px; font-weight:900; color:var(--warn); margin-bottom:8px; }
.albumBody{ display:flex; align-items:center; gap:12px; }
.albumBody img{ width:64px; height:64px; object-fit:contain; background:#fff7df; border-radius:12px; }

/* 排行榜 */
.lbRow{ display:flex; align-items:center; gap:10px; background:#fff; border-radius:14px; padding:10px 12px;
  margin-bottom:8px; box-shadow:var(--shadow); border:2px solid #eaf3df; }
.lbRow.me{ border-color:#FFD54F; background:linear-gradient(180deg,#fffbe6,#fff3c4); }
.lbRank{ font-size:22px; font-weight:900; width:34px; text-align:center; flex:0 0 34px; }
.lbAv{ font-size:30px; flex:0 0 auto; }
/* 虚拟对手卡通头像选择器 */
.rvg{ display:flex; gap:8px; margin-bottom:8px; }
.rvgBtn{ flex:1; padding:8px 0; border:2px solid #E0D5C5; border-radius:12px; background:#fff; font-size:15px; font-weight:700; color:#5D4037; cursor:pointer; }
.rvgBtn.on{ border-color:#FB8C00; background:#FFF3E0; color:#E65100; }
.rvag{ display:flex; gap:8px; }
.rvaCell{ flex:1; border:2px solid #E0D5C5; border-radius:12px; background:#fff; padding:6px 4px; cursor:pointer; text-align:center; font-size:12px; color:#5D4037; }
.rvaCell.on{ border-color:#FB8C00; background:#FFF8E1; box-shadow:0 2px 8px rgba(251,140,0,.3); }
.rvaCell svg{ display:block; margin:0 auto 4px; }
/* 每日最多对战好友数选择器 */
.pvpMaxWrap{ display:flex; gap:6px; }
.pvpMaxBtn{ width:44px; height:44px; border-radius:12px; border:2px solid #E0D5C5; background:#fff;
  font-size:18px; font-weight:900; color:#5D4037; cursor:pointer; }
.pvpMaxBtn.on{ border-color:#FB8C00; background:#FFF3E0; color:#E65100; box-shadow:0 2px 6px rgba(251,140,0,.3); }
.lbInfo{ flex:1; min-width:0; }
.lbName{ font-size:17px; font-weight:800; color:var(--soil-d); }
.lbWin{ font-size:13px; font-weight:800; text-align:center; flex:0 0 auto; padding:4px 8px; border-radius:10px; }
.lbWin.win{ color:#fff; background:var(--grass); }
.lbWin.lose{ color:#fff; background:#9e9e9e; }
/* 好友对战图标（⚔️ / 胜 / 负），位于排行榜行右侧、名次之前 */
.lbPvp{ flex:0 0 auto; font-size:15px; font-weight:800; padding:7px 11px; border:none; border-radius:12px;
  background:linear-gradient(180deg,#FFB74D,#FB8C00); color:#fff; box-shadow:0 3px 8px rgba(251,140,0,.35);
  cursor:pointer; transition:transform .1s; }
.lbPvp:active{ transform:scale(.94); }
.lbPvp.disabled{ background:#cfd8c8; box-shadow:none; opacity:.7; cursor:default; }
.lbPvp.win{ background:linear-gradient(180deg,#81C784,#43A047); box-shadow:0 3px 8px rgba(67,160,71,.35); }
.lbPvp.lose{ background:linear-gradient(180deg,#EF9A9A,#E53935); box-shadow:0 3px 8px rgba(229,57,53,.35); }

/* 里程碑纪念卡 */
.msCard{ text-align:center; animation:prizePop .5s cubic-bezier(.18,1.4,.4,1) both; }
.msConf{ font-size:56px; animation:unlockSpin 1.2s ease-in-out infinite alternate; }
.msPreview{ display:flex; align-items:center; gap:12px; justify-content:center; background:#fff7df;
  border-radius:14px; padding:12px; margin:10px 0; border:2px dashed #F4B400; }
.msPreview img{ width:60px; height:60px; object-fit:contain; }

/* ===== 知识点照片（只存图不识别）：照片条 + 裁剪弹窗 ===== */
.phRow{ display:flex; flex-direction:column; gap:4px; margin-top:6px; }
.phTip{ font-size:12px; color:#6b7a55; font-weight:700; }
.phStrip{ display:flex; flex-wrap:wrap; gap:8px; min-height:62px; align-items:center; }
.phThumb{ position:relative; width:62px; height:62px; border-radius:10px; overflow:hidden; flex:0 0 auto;
  border:2px solid #eaf3df; box-shadow:var(--shadow); background:#fafafa; cursor:pointer; }
.phThumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.phDel{ position:absolute; top:-6px; right:-6px; width:22px; height:22px; line-height:18px; text-align:center;
  border-radius:50%; background:var(--bad); color:#fff; font-size:13px; font-weight:900; border:2px solid #fff; cursor:pointer; box-sizing:border-box; }
/* 拍照存图：裁剪弹窗 */
.cropWrap{ position:relative; max-width:100%; max-height:46vh; display:flex; justify-content:center;
  background:#eceff1; border-radius:12px; overflow:hidden; touch-action:none; user-select:none; -webkit-user-select:none; }
.cropWrap img{ display:block; max-width:100%; max-height:46vh; }
.cropBox{ position:absolute; border:2px dashed #FF9800; background:rgba(255,152,0,.18); border-radius:4px;
  cursor:move; box-shadow:0 0 0 9999px rgba(0,0,0,.45); }
.crH{ position:absolute; right:-9px; bottom:-9px; width:18px; height:18px; background:#fff;
  border:2px solid #FF9800; border-radius:50%; cursor:nwse-resize; box-sizing:border-box; }

/* ===== 「我的」装饰模块样式（移植主项目 app.css 407–511 行，按学习乐园补齐） ===== */
/* 庆祝彩屑 */
.fx-confetti{ position:fixed; inset:0; pointer-events:none; z-index:80; overflow:hidden; }
.fx-confetti i{ position:absolute; top:-24px; width:10px; height:14px; border-radius:2px;
  animation:confettiFall 2.6s linear forwards; }
@keyframes confettiFall{ 0%{ transform:translateY(-10px) rotate(0); opacity:1 } 100%{ transform:translateY(105vh) rotate(540deg); opacity:.9 } }
@keyframes unlockSpin{ 0%{ transform:rotate(-12deg) scale(.9) } 100%{ transform:rotate(12deg) scale(1.1) } }
.winBurst{ font-size:72px; line-height:1; animation:prizeShake .6s ease-in-out infinite alternate; }

/* 我的入口 */
.mineCard{ display:flex; align-items:center; gap:12px; background:#fff; border-radius:14px;
  padding:14px 14px; margin-bottom:10px; box-shadow:var(--shadow); cursor:pointer; border:2px solid #eaf3df; }
.mineCard:active{ transform:translateY(2px); }
.mineCard .mic{ font-size:30px; flex:0 0 auto; }
.mineCard .mt{ font-size:17px; font-weight:800; color:var(--soil-d); }
.mineCard .marr{ margin-left:auto; font-size:24px; color:#b0c49a; }
.mine-home{ background:linear-gradient(180deg,#FFF3C4,#FFE08A); color:var(--soil-d); box-shadow:0 4px 0 #E0A800; font-weight:900; }

/* 贴纸墙 */
.stkGrid{ display:grid; grid-template-columns:repeat(10,1fr); gap:4px; }
.stk{ background:#f4f4f4; border-radius:10px; padding:3px; aspect-ratio:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center; border:2px solid #e6e6e6; }
.stk .stkSvg{ width:100%; height:100%; filter:grayscale(1) opacity(.5); transition:.2s; }
.stk.lit{ background:#fff; border-color:#FFD54F; box-shadow:0 0 0 2px rgba(255,213,79,.4); }
.stk.lit .stkSvg{ filter:none; opacity:1; }

/* 图鉴 */
.codexRow{ display:flex; align-items:center; gap:12px; background:#fff; border-radius:14px;
  padding:10px 12px; margin-bottom:8px; box-shadow:var(--shadow); border:2px solid #eaf3df; }
.codexRow.lock{ filter:grayscale(.7); opacity:.7; }
.codexImg{ width:54px; height:54px; object-fit:contain; flex:0 0 54px; background:#fafafa; border-radius:10px; }
.codexInfo{ flex:1; min-width:0; }
.codexName{ font-size:17px; font-weight:800; color:var(--soil-d); }
.codexTag{ font-size:12px; font-weight:800; color:#9e9e9e; flex:0 0 auto; padding:4px 8px; border-radius:10px; background:#f0f0f0; }
.codexTag.ok{ color:#fff; background:var(--grass); }

/* 花园 */
.garden{ position:relative; height:240px; border-radius:16px; overflow:hidden; margin-bottom:12px;
  background:url('assets/bg3.jpg') center/cover no-repeat; border:3px solid #fff; box-shadow:var(--shadow); touch-action:none; }
.garden::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(255,255,255,.15),rgba(0,0,0,.08)); pointer-events:none; }
.gItem{ position:absolute; width:48px; height:48px; object-fit:contain; cursor:grab; touch-action:none;
  filter:drop-shadow(0 3px 3px rgba(0,0,0,.3)); user-select:none; -webkit-user-select:none; }
.gItem:active{ cursor:grabbing; }
.gPalWrap{ display:flex; flex-wrap:wrap; gap:8px; }
.gPal{ display:flex; flex-direction:column; align-items:center; width:64px; background:#fff; border-radius:12px;
  padding:6px 2px; box-shadow:0 3px 0 #eaf3df; cursor:pointer; border:2px solid #eaf3df; }
.gPal img{ width:40px; height:40px; object-fit:contain; }
.gPal span{ font-size:11px; font-weight:700; color:#5d6b48; margin-top:2px; }
.gPal.lock{ filter:grayscale(1); opacity:.5; cursor:not-allowed; }
.gPal.used{ filter:grayscale(.6); opacity:.45; cursor:not-allowed; box-shadow:inset 0 0 0 2px #c5c5a5; }

/* 成长相册 */
.albumCard{ background:#fff; border-radius:16px; padding:12px; margin-bottom:12px; box-shadow:var(--shadow); border:3px solid #FFE082; }
.albumTop{ font-size:15px; font-weight:900; color:var(--warn); margin-bottom:8px; }
.albumBody{ display:flex; align-items:center; gap:12px; }
.albumBody img{ width:64px; height:64px; object-fit:contain; background:#fff7df; border-radius:12px; }

/* 排行榜 */
.lbRow{ display:flex; align-items:center; gap:10px; background:#fff; border-radius:14px; padding:10px 12px;
  margin-bottom:8px; box-shadow:var(--shadow); border:2px solid #eaf3df; }
.lbRow.me{ border-color:#FFD54F; background:linear-gradient(180deg,#fffbe6,#fff3c4); }
.lbRank{ font-size:22px; font-weight:900; width:34px; text-align:center; flex:0 0 34px; }
.lbAv{ font-size:30px; flex:0 0 auto; }
.lbInfo{ flex:1; min-width:0; }
.lbName{ font-size:17px; font-weight:800; color:var(--soil-d); }
.lbWin{ font-size:13px; font-weight:800; text-align:center; flex:0 0 auto; padding:4px 8px; border-radius:10px; }
.lbWin.win{ color:#fff; background:var(--grass); }
.lbWin.lose{ color:#fff; background:#9e9e9e; }
/* 好友对战图标（⚔️ / 胜 / 负），位于排行榜行右侧、名次之前 */
.lbPvp{ flex:0 0 auto; font-size:15px; font-weight:800; padding:7px 11px; border:none; border-radius:12px;
  background:linear-gradient(180deg,#FFB74D,#FB8C00); color:#fff; box-shadow:0 3px 8px rgba(251,140,0,.35);
  cursor:pointer; transition:transform .1s; }
.lbPvp:active{ transform:scale(.94); }
.lbPvp.disabled{ background:#cfd8c8; box-shadow:none; opacity:.7; cursor:default; }
.lbPvp.win{ background:linear-gradient(180deg,#81C784,#43A047); box-shadow:0 3px 8px rgba(67,160,71,.35); }
.lbPvp.lose{ background:linear-gradient(180deg,#EF9A9A,#E53935); box-shadow:0 3px 8px rgba(229,57,53,.35); }

/* 虚拟对手卡通头像选择器（家长设定） */
.rvg{ display:flex; gap:8px; margin-bottom:8px; }
.rvgBtn{ flex:1; padding:8px 0; border:2px solid #E0D5C5; border-radius:12px; background:#fff; font-size:15px; font-weight:700; color:#5D4037; cursor:pointer; }
.rvgBtn.on{ border-color:#FB8C00; background:#FFF3E0; color:#E65100; }
.rvag{ display:flex; gap:8px; }
.rvaCell{ flex:1; border:2px solid #E0D5C5; border-radius:12px; background:#fff; padding:6px 4px; cursor:pointer; text-align:center; font-size:12px; color:#5D4037; }
.rvaCell.on{ border-color:#FB8C00; background:#FFF8E1; box-shadow:0 2px 8px rgba(251,140,0,.3); }
.rvaCell svg{ display:block; margin:0 auto 4px; }
/* 每日最多对战好友数选择器 */
.pvpMaxWrap{ display:flex; gap:6px; }
.pvpMaxBtn{ width:44px; height:44px; border-radius:12px; border:2px solid #E0D5C5; background:#fff;
  font-size:18px; font-weight:900; color:#5D4037; cursor:pointer; }
.pvpMaxBtn.on{ border-color:#FB8C00; background:#FFF3E0; color:#E65100; box-shadow:0 2px 6px rgba(251,140,0,.3); }

/* 里程碑纪念卡 */
.msCard{ text-align:center; animation:prizePop .5s cubic-bezier(.18,1.4,.4,1) both; }
.msConf{ font-size:56px; animation:unlockSpin 1.2s ease-in-out infinite alternate; }
.msPreview{ display:flex; align-items:center; gap:12px; justify-content:center; background:#fff7df;
  border-radius:14px; padding:12px; margin:10px 0; border:2px dashed #F4B400; }
.msPreview img{ width:60px; height:60px; object-fit:contain; }

/* 好友对战准备页：对手名字行 */
.prepSub{ font-size:14px; font-weight:800; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.5); margin-top:2px; }

/* ===== 知识点照片存储（只存不识图） ===== */
.phRow{ margin-top:8px; }
.phTip{ display:block; font-size:12px; color:#8a8a8a; margin-bottom:4px; }
.phStrip{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; min-height:26px; }
.phThumb{ position:relative; display:inline-block; width:56px; height:56px; border-radius:10px; overflow:hidden;
  border:2px solid #eaf3df; background:#fafafa; box-shadow:0 2px 0 #eaf3df; cursor:pointer; }
.phThumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.phThumb .phDel{ position:absolute; top:0; right:0; width:18px; height:18px; line-height:18px; text-align:center;
  font-size:11px; font-weight:900; color:#fff; background:rgba(229,57,53,.9); border-bottom-left-radius:8px; cursor:pointer; }
/* 可拖动选框裁剪 */
.cropWrap{ position:relative; display:inline-block; max-width:100%; line-height:0; touch-action:none;
  border-radius:10px; overflow:hidden; background:#222; }
.cropWrap img{ max-width:100%; display:block; user-select:none; -webkit-user-select:none; pointer-events:none; }
.cropBox{ position:absolute; border:2px dashed #FFD54F; background:rgba(255,213,79,.16); cursor:move;
  box-shadow:0 0 0 9999px rgba(0,0,0,.35); box-sizing:border-box; }
.cropBox .crH{ position:absolute; right:-9px; bottom:-9px; width:20px; height:20px; border-radius:50%;
  background:#FB8C00; border:2px solid #fff; box-shadow:0 2px 6px rgba(0,0,0,.4); cursor:nwse-resize; }
