/* ═══════════ ③ 内容页：阅读 / 诗词 / 作文 / 单词 / 句子 / 数学 ═══════════ */
#view-content{padding:var(--sb-h) 0 0;}

/* ── 头部 ── */
.content-head{
  flex:none;display:flex;align-items:center;gap:1rem;padding:.5rem 1.7rem .7rem;
}
.ch-back{
  width:2.35rem;height:2.35rem;border-radius:50%;display:grid;place-items:center;flex:none;
  background:rgba(255,255,255,.11);border:1px solid var(--stroke-soft);color:#fff;
  transition:transform .18s,background .18s;
}
.ch-back:active{transform:scale(.92);background:rgba(255,255,255,.22);}
.ch-back .ic{width:1.2rem;height:1.2rem;}
.ch-meta{min-width:0;}
.ch-meta h2{font-size:1.22rem;font-weight:800;letter-spacing:.02em;white-space:nowrap;}
.ch-meta span{font-size:.76rem;color:var(--ink-3);}
.ch-right{margin-left:auto;display:flex;align-items:center;gap:.85rem;}
.ch-progress{display:flex;align-items:center;gap:.5rem;}
.cpr-bar{width:9rem;height:.42rem;border-radius:1rem;background:rgba(255,255,255,.16);overflow:hidden;}
.cpr-bar i{display:block;height:100%;border-radius:1rem;width:0;
  background:linear-gradient(90deg,#5ef0c0,#3fd8ff);transition:width .4s cubic-bezier(.22,.9,.28,1);}
.cpr-txt{font-size:.76rem;color:var(--ink-2);font-family:var(--font-num);font-weight:700;white-space:nowrap;}
/* 原来这里有个「AI 讲解」按钮（.ch-ai），每个模块头部都挂着，已按需求去掉。
   想找回的话：index.html 的 .content-head 里加回 <button class="ch-ai" data-action="open-ai">…。
   注意各模块内部自己的「问 AI」入口（错题、作文点评等）没动。 */

/* ── 主体 ── */
.content-body{
  flex:1;min-height:0;padding:0 1.7rem 1rem;display:flex;flex-direction:column;
}
/* 直接挂在 body 下的单面板要撑满，否则底部留白 */
.content-body > .panel{flex:1;min-height:0;}
.content-body > .empty{flex:1;}
.act{flex:1;min-height:0;display:grid;gap:1rem;}
.act.split{grid-template-columns:1.15fr 1fr;}
.act.single{grid-template-columns:1fr;}
.act.center{place-items:center;}

/* ── 面板 ── */
.panel{
  position:relative;min-height:0;display:flex;flex-direction:column;
  border-radius:var(--r-lg);padding:1.15rem 1.3rem;
  background:linear-gradient(168deg,#ffffff,#f5f7ff);
  color:#232047;
  box-shadow:0 .9rem 2rem rgba(8,4,40,.28),inset 0 1px 0 rgba(255,255,255,.9);
  overflow:hidden;
}
.panel.glass{
  background:var(--glass);border:1px solid var(--stroke);color:#fff;
  box-shadow:var(--shadow);
}
.panel.scroll{overflow-y:auto;}
.panel h3{font-size:1.05rem;font-weight:800;color:#2b2860;flex:none;}
.panel.glass h3{color:#fff;}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex:none;
  padding-bottom:.6rem;margin-bottom:.7rem;border-bottom:1px solid rgba(90,90,150,.14);}

/* ── 阅读 ── */
.rd-title{font-size:1.28rem;font-weight:800;color:#2b2860;flex:none;
  display:flex;align-items:center;gap:.6rem;}
.rd-title .rd-tag{padding:.12rem .5rem;border-radius:.45rem;background:#e8ebff;color:#5b5bd6;
  font-size:.68rem;font-weight:700;}
.rd-text{
  margin-top:.7rem;font-size:1.02rem;line-height:2.05;color:#33305c;letter-spacing:.02em;
  overflow-y:auto;flex:1;min-height:0;padding-right:.4rem;
  -webkit-user-select:text;user-select:text;
}
.rd-text p{margin-bottom:.6rem;text-indent:2em;}

/* ── 题目 ── */
.q-head{display:flex;align-items:center;justify-content:space-between;flex:none;
  font-size:.78rem;color:#7b7ba8;margin-bottom:.7rem;}
.q-step{display:flex;gap:.3rem;}
.q-step i{width:.5rem;height:.5rem;border-radius:50%;background:#d9ddf5;}
.q-step i.on{background:#5b5bd6;width:1.1rem;border-radius:1rem;}
.q-step i.done{background:#34d399;}
.q-text{font-size:1.02rem;font-weight:700;line-height:1.65;color:#26234f;flex:none;margin-bottom:.85rem;}
.opts{display:flex;flex-direction:column;gap:.55rem;overflow-y:auto;min-height:0;flex:1;}
.opt{
  display:flex;align-items:center;gap:.8rem;width:100%;text-align:left;
  padding:.82rem 1rem;border-radius:1rem;background:#f1f3ff;border:2px solid transparent;
  font-size:.98rem;color:#2a2750;font-weight:500;line-height:1.4;
  transition:background .18s,border-color .18s,transform .18s;
}
.opt:active{transform:scale(.985);}
.opt .k{
  width:1.85rem;height:1.85rem;border-radius:50%;flex:none;display:grid;place-items:center;
  background:#e0e4ff;color:#5b5bd6;font-weight:800;font-size:.9rem;
  transition:background .18s,color .18s;
}
.opt.correct{background:#e6fbef;border-color:#34d399;}
.opt.correct .k{background:#34d399;color:#fff;}
.opt.wrong{background:#ffeceb;border-color:#ff6b6b;}
.opt.wrong .k{background:#ff6b6b;color:#fff;}
.opt.dim{opacity:.5;}
.q-explain{
  flex:none;margin-top:.75rem;padding:.7rem .9rem;border-radius:.9rem;
  background:#eef7ff;border-left:.22rem solid #5b8def;font-size:.88rem;line-height:1.6;color:#3a4a72;
}
.q-explain b{color:#2b5bd6;}
.q-foot{flex:none;display:flex;align-items:center;gap:.7rem;margin-top:.85rem;}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
  padding:.72rem 1.5rem;border-radius:999px;font-size:.96rem;font-weight:800;
  transition:transform .18s,opacity .18s;
}
.btn:active{transform:scale(.96);}
.btn.pri{color:#053a2c;background:linear-gradient(100deg,#63f2bb,#3fd8ff);
  box-shadow:0 .5rem 1.2rem rgba(63,216,255,.34);}
.btn.vio{color:#fff;background:linear-gradient(100deg,#8f7bff,#5b5bd6);
  box-shadow:0 .5rem 1.2rem rgba(110,90,255,.34);}
.btn.ghost{color:#4b4a7a;background:#eef0fb;}
.btn.ghost-d{color:#fff;background:rgba(255,255,255,.13);border:1px solid var(--stroke-soft);}
.btn.wide{width:100%;}
.btn:disabled{opacity:.45;}

/* ── 诗词 ── */
.poem-wrap{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:1rem;padding:.5rem 0;}
.poem-title{display:flex;align-items:baseline;gap:.7rem;flex:none;}
.poem-title b{font-size:1.5rem;font-weight:800;color:#2b2860;letter-spacing:.06em;}
.poem-title span{font-size:.92rem;color:#8a89b5;}
.poem-lines{display:flex;flex-direction:column;gap:.55rem;align-items:center;}
.poem-line{
  font-size:1.6rem;line-height:1.5;letter-spacing:.14em;color:#2b2860;font-weight:600;
  display:flex;align-items:center;gap:.1rem;
}
.poem-line .ch{display:inline-block;min-width:1.6rem;text-align:center;}
.poem-line .blank{
  display:inline-block;min-width:1.6rem;height:2.1rem;margin:0 .08rem;border-radius:.4rem;
  border-bottom:.16rem solid #8f8fd8;background:#f0f1ff;vertical-align:middle;
  transition:background .18s,border-color .18s;
}
.poem-line .blank.on{background:#dfe3ff;border-color:#5b5bd6;box-shadow:0 0 0 2px rgba(91,91,214,.25);}
.poem-line .blank.ok{background:#e6fbef;border-color:#34d399;color:#12a06a;}
.poem-line .blank.no{background:#ffeceb;border-color:#ff6b6b;animation:shake .4s;}
.poem-line .blank .f{font-size:1.5rem;font-weight:700;color:#12a06a;line-height:2rem;}
@keyframes shake{0%,100%{transform:translateX(0);}25%{transform:translateX(-.24rem);}75%{transform:translateX(.24rem);}}
.poem-cands{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;flex:none;}
.cand{
  width:2.9rem;height:2.9rem;border-radius:.8rem;display:grid;place-items:center;
  font-size:1.35rem;font-weight:700;color:#3a3770;background:#fff;
  box-shadow:0 .35rem .9rem rgba(60,60,140,.18);transition:transform .16s;
}
.cand:active{transform:scale(.9);}
.cand.used{opacity:.22;pointer-events:none;}
.poem-actions{display:flex;gap:.6rem;flex:none;}

/* ── 作文 ── */
.comp-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:1rem;flex:1;min-height:0;}
.comp-prompt{font-size:.95rem;line-height:1.85;color:#33305c;margin-top:.45rem;
  -webkit-user-select:text;user-select:text;}
.comp-tips{display:flex;flex-direction:column;gap:.4rem;margin-top:.7rem;}
.comp-tips li{display:flex;gap:.45rem;align-items:flex-start;font-size:.86rem;color:#5a5885;line-height:1.5;}
.comp-tips li::before{content:"";width:.34rem;height:.34rem;border-radius:50%;background:#8f7bff;
  margin-top:.42rem;flex:none;}
.wbank{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.6rem;}
.wbank span{padding:.28rem .6rem;border-radius:.6rem;background:#eee9ff;color:#6a55d6;
  font-size:.82rem;font-weight:600;}
.comp-area{
  flex:1;min-height:0;width:100%;resize:none;border:0;border-radius:.9rem;
  padding:.9rem 1rem;font-size:1rem;line-height:1.95;color:#2b2860;background:#f6f7ff;
  -webkit-user-select:text;user-select:text;font-family:var(--font);
}
.comp-area::placeholder{color:#a9a9c9;}
.comp-stat{display:flex;gap:1rem;font-size:.78rem;color:#8a89b5;flex:none;margin-top:.5rem;}
.comp-report{display:flex;flex-direction:column;gap:.5rem;overflow-y:auto;min-height:0;margin-top:.5rem;}
.rp{display:flex;gap:.6rem;align-items:flex-start;padding:.65rem .8rem;border-radius:.8rem;
  background:#f2f4ff;font-size:.88rem;line-height:1.6;color:#3d3a68;}
.rp b{color:#5b5bd6;}
.rp.good{background:#e9fbf1;}
.rp.good b{color:#12a06a;}
.rp.warn{background:#fff6e6;}
.rp.warn b{color:#c47a10;}
.score-big{font-family:var(--font-num);font-size:2.6rem;font-weight:900;
  background:linear-gradient(150deg,#6b8cff,#a06bff);-webkit-background-clip:text;
  background-clip:text;color:transparent;line-height:1;}

/* ── 单词卡 ── */
.word-stage{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:1.1rem;}
.wcard{
  width:min(30rem,100%);border-radius:1.6rem;padding:1.6rem;text-align:center;
  background:linear-gradient(158deg,#ffffff,#eef1ff);
  box-shadow:0 1.2rem 2.6rem rgba(20,10,70,.3);
  display:flex;flex-direction:column;align-items:center;gap:.55rem;
  transition:transform .3s cubic-bezier(.22,.9,.28,1);
}
.wcard .w-en{font-size:2.5rem;font-weight:900;color:#2b2860;letter-spacing:.02em;
  font-family:var(--font-num);line-height:1.1;}
.wcard .w-ph{font-size:.95rem;color:#8a89b5;font-family:var(--font-num);}
.wcard .w-cn{font-size:1.4rem;font-weight:800;color:#5b5bd6;min-height:1.9rem;}
.wcard .w-ex{margin-top:.5rem;padding-top:.75rem;border-top:1px dashed #d6d9f0;font-size:.92rem;
  color:#4a4878;line-height:1.6;}
.wcard .w-ex i{font-style:normal;color:#8a89b5;display:block;font-size:.82rem;margin-top:.2rem;}
.wcard .w-hide{filter:blur(14px);opacity:.55;}
.ws-actions{display:flex;gap:.7rem;flex-wrap:wrap;justify-content:center;}
.ws-bar{display:flex;align-items:center;gap:1rem;flex:none;
  font-size:.8rem;color:var(--ink-3);}

/* 单词听写输入 */
.spell-box{display:flex;gap:.4rem;justify-content:center;flex-wrap:wrap;margin-top:.4rem;}
.spell-slot{
  width:2.2rem;height:3rem;border-radius:.7rem;background:#f1f3ff;
  border-bottom:.18rem solid #c3c8ee;display:grid;place-items:center;
  font-size:1.5rem;font-weight:800;color:#2b2860;font-family:var(--font-num);
  text-transform:lowercase;
}
.spell-slot.on{background:#e2e6ff;border-color:#5b5bd6;}
.spell-slot.ok{background:#e6fbef;border-color:#34d399;color:#12a06a;}
.spell-slot.no{background:#ffeceb;border-color:#ff6b6b;color:#e0362f;}
.spell-in{
  position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;
}
.spell-native{
  width:min(24rem,100%);margin-top:.6rem;padding:.7rem 1rem;border-radius:.8rem;
  background:#f1f3ff;font-size:1.2rem;letter-spacing:.28em;color:#2b2860;text-align:center;
  -webkit-user-select:text;user-select:text;font-family:var(--font-num);font-weight:700;
}
.spell-native::placeholder{letter-spacing:.04em;font-size:.9rem;font-weight:500;color:#a9a9c9;}

/* ── 句子跟读 ── */
.sent-list{display:flex;flex-direction:column;gap:.7rem;overflow-y:auto;min-height:0;flex:1;}
.sent{
  display:flex;align-items:center;gap:.9rem;padding:.85rem 1rem;border-radius:1rem;
  background:#f2f4ff;transition:background .18s,transform .18s;
}
.sent:active{transform:scale(.99);}
.sent .s-play{width:2.4rem;height:2.4rem;border-radius:50%;flex:none;display:grid;place-items:center;
  background:linear-gradient(150deg,#8f7bff,#5b5bd6);color:#fff;box-shadow:0 .35rem .9rem rgba(110,90,255,.36);}
.sent .s-play .ic{width:1.05rem;height:1.05rem;fill:currentColor;stroke:none;}
.sent .s-body{min-width:0;flex:1;}
.sent .s-en{font-size:1.02rem;font-weight:700;color:#2b2860;font-family:var(--font-num);}
.sent .s-cn{font-size:.84rem;color:#7b7ba8;margin-top:.15rem;}
.sent .s-scene{padding:.16rem .5rem;border-radius:.5rem;background:#e6e9ff;color:#5b5bd6;
  font-size:.68rem;font-weight:700;flex:none;}
.sent.done{background:#e9fbf1;}
.sent .s-tick{width:1.5rem;height:1.5rem;border-radius:50%;flex:none;display:grid;place-items:center;
  background:#e0e4ff;color:#fff;}
.sent.done .s-tick{background:#34d399;}
.sent .s-tick .ic{width:.9rem;height:.9rem;fill:none;stroke:currentColor;}

/* ── 数学 ── */
.math-stage{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:1rem;}
.math-q{
  font-size:3rem;font-weight:900;color:#2b2860;font-family:var(--font-num);
  letter-spacing:.04em;display:flex;align-items:center;gap:.6rem;
}
.math-q .ans{
  min-width:5rem;padding:0 .6rem;border-bottom:.22rem solid #8f8fd8;text-align:center;color:#5b5bd6;
}
/* 应用题这类整句题干：不能用算式那种超大字号，答案另起一行 */
.math-q.ask{
  font-size:1.38rem;line-height:1.8;font-weight:700;letter-spacing:0;
  flex-direction:column;gap:.75rem;max-width:36rem;text-align:center;
}
.math-q.ask .ans-line{
  display:flex;align-items:center;gap:.4rem;
  font-size:1.15rem;font-weight:800;color:#5b5bd6;
}
.math-q.ask .ans{min-width:5.5rem;}
.math-q .ans.ok{border-color:#34d399;color:#12a06a;}
.math-q .ans.no{border-color:#ff6b6b;color:#e0362f;animation:shake .4s;}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;width:min(20rem,100%);}
/* 注意：数字键盘放在浅色 panel 上，必须用深色字，否则白底白字看不见 */
.key{
  height:3rem;border-radius:.85rem;display:grid;place-items:center;
  font-size:1.25rem;font-weight:800;color:#2b2860;font-family:var(--font-num);
  background:#eef0fb;border:1px solid #e2e5f6;
  box-shadow:0 .2rem .5rem rgba(60,60,140,.09);
  transition:transform .14s,background .14s;
}
.key:active{transform:scale(.92);background:#dfe3ff;}
.key.act{
  background:linear-gradient(150deg,#63f2bb,#2fe0b0);color:#053a2c;border-color:transparent;
  box-shadow:0 .4rem 1rem rgba(47,224,176,.38);
}
.key.del{background:#ffe6e4;color:#e0362f;border-color:transparent;}
.streak{display:flex;align-items:center;gap:.4rem;font-size:.82rem;color:#c47a10;font-weight:700;}

/* 浅色 panel 内的次要文字要换成深色，否则也是白底白字 */
.panel .soft-tip{color:#8a89b5;}
.panel .ws-bar{color:#8a89b5;}

/* ── 错题本 ── */
.wrong-item{
  padding:.8rem .95rem;border-radius:1rem;background:#f2f4ff;margin-bottom:.6rem;
}
.wrong-item .wq{font-size:.95rem;font-weight:700;color:#2b2860;line-height:1.5;}
.wrong-item .wa{font-size:.82rem;color:#e0362f;margin-top:.3rem;}
.wrong-item .wc{font-size:.82rem;color:#12a06a;margin-top:.15rem;}
.empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.8rem;
  color:var(--ink-3);text-align:center;padding:2rem;}
.empty .em-ico{width:4.4rem;height:4.4rem;border-radius:1.4rem;display:grid;place-items:center;
  background:rgba(255,255,255,.1);color:rgba(255,255,255,.5);}
.empty .em-ico .ic{width:2.2rem;height:2.2rem;}
.empty b{font-size:1.05rem;color:var(--ink-2);}
.empty p{font-size:.85rem;line-height:1.7;max-width:22rem;}
.empty .em-ico.fill{color:#5b5bd6;background:rgba(255,255,255,.9);}

/* ── 内容页里的科目切换（列表选择态） ── */
.pick-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(13rem,1fr));gap:.7rem;
  overflow-y:auto;min-height:0;flex:1;align-content:start;}
.pick{
  display:flex;flex-direction:column;gap:.3rem;padding:.9rem 1rem;border-radius:1rem;
  background:#f2f4ff;text-align:left;transition:transform .18s,background .18s;
  border:2px solid transparent;
}
.pick:active{transform:scale(.98);}
.pick.done{border-color:#34d399;background:#e9fbf1;}
.pick b{font-size:.98rem;font-weight:800;color:#2b2860;}
.pick span{font-size:.76rem;color:#8a89b5;}
.pick .pk-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem;}
.pick .pk-tick{width:1.3rem;height:1.3rem;border-radius:50%;background:#dde2fb;display:grid;
  place-items:center;color:#fff;flex:none;}
.pick .pk-tick .ic{width:.8rem;height:.8rem;fill:none;stroke:currentColor;}
.pick.done .pk-tick{background:#34d399;}
.pick.done .pk-tick .ic{stroke:#fff;}

/* ── 朗诵 ── */
.ra-list{display:flex;flex-direction:column;gap:.6rem;overflow-y:auto;min-height:0;flex:1;margin-top:.6rem;}
.ra-row{
  display:flex;align-items:flex-start;gap:.9rem;padding:.8rem .95rem;border-radius:1rem;
  background:#f2f4ff;transition:background .2s;
}
.ra-row.done{background:#e9fbf1;}
.ra-txt{flex:1;min-width:0;font-size:1rem;line-height:1.95;color:#33305c;letter-spacing:.02em;}
.ra-act{display:flex;flex-direction:column;align-items:center;gap:.4rem;flex:none;}
.ra-act .s-play{
  width:2.2rem;height:2.2rem;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(150deg,#8f7bff,#5b5bd6);color:#fff;box-shadow:0 .3rem .8rem rgba(110,90,255,.35);
}
.ra-act .s-play .ic{width:1rem;height:1rem;fill:none;stroke:currentColor;}
.ra-ok{
  padding:.3rem .7rem;border-radius:999px;font-size:.76rem;font-weight:700;white-space:nowrap;
  background:#e0e4ff;color:#5b5bd6;transition:background .2s,color .2s;
}
.ra-row.done .ra-ok{background:#34d399;color:#fff;}

/* ── 单词表（整学期一览） ── */
.word-bank{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(8.6rem,1fr));gap:.5rem;
  overflow-y:auto;min-height:0;flex:1;align-content:start;
}
.wb-item{
  display:flex;flex-direction:column;gap:.15rem;padding:.55rem .7rem;border-radius:.8rem;
  background:#f2f4ff;text-align:left;transition:background .18s,transform .18s;
  border:1.5px solid transparent;
}
.wb-item:active{transform:scale(.97);}
.wb-item b{font-size:.92rem;font-weight:800;color:#2b2860;font-family:var(--font-num);}
.wb-item i{font-style:normal;font-size:.72rem;color:#8a89b5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.wb-item.ok{background:#e9fbf1;border-color:#8fe0bd;}
.wb-item.ok b{color:#12a06a;}

/* ── 写作提纲 ── */
.comp-outline{display:flex;flex-direction:column;gap:.4rem;margin-top:.5rem;}
.comp-outline li{display:flex;gap:.5rem;align-items:flex-start;font-size:.86rem;line-height:1.55;color:#5a5885;}
.comp-outline li b{
  flex:none;padding:.05rem .45rem;border-radius:.4rem;background:#eee9ff;color:#6a55d6;
  font-size:.72rem;font-weight:700;
}

/* ── 句子翻译 ── */
.tr-stage{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:.85rem;padding:.4rem 0;}
.tr-cn{
  font-size:1.35rem;font-weight:800;color:#2b2860;letter-spacing:.03em;text-align:center;
  padding:.5rem 1rem;border-radius:.9rem;background:#f2f4ff;max-width:34rem;
}
.tr-built{
  width:min(38rem,100%);min-height:3.6rem;padding:.7rem .9rem;border-radius:.9rem;
  background:#f6f7ff;border:2px dashed #d6daf2;
  display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;justify-content:center;
}
.tr-hint{font-size:.85rem;color:#a9a9c9;}
.tr-chip{
  padding:.34rem .7rem;border-radius:.6rem;font-size:.95rem;font-weight:700;color:#2b2860;
  background:#fff;box-shadow:0 .25rem .6rem rgba(60,60,140,.16);font-family:var(--font-num);
  transition:transform .14s;
}
.tr-chip:active{transform:scale(.93);}
.tr-bank{
  display:flex;flex-wrap:wrap;gap:.45rem;justify-content:center;max-width:38rem;
}
.tr-tile{
  padding:.42rem .85rem;border-radius:.7rem;font-size:.98rem;font-weight:700;color:#3a3770;
  background:linear-gradient(180deg,#ffffff,#eef1ff);
  box-shadow:0 .3rem .75rem rgba(60,60,140,.18);font-family:var(--font-num);
  transition:transform .14s,opacity .18s;
}
.tr-tile:active{transform:scale(.92);}
.tr-tile.used{opacity:.26;pointer-events:none;}

/* ── 奖励横幅 ── */
.award{
  position:fixed;left:50%;top:38%;transform:translate(-50%,-50%);z-index:96;pointer-events:none;
  display:flex;flex-direction:column;align-items:center;gap:.5rem;
  padding:1.4rem 2.6rem;border-radius:1.6rem;
  background:linear-gradient(160deg,rgba(94,240,192,.26),rgba(63,216,255,.18));
  border:1px solid rgba(94,240,192,.5);backdrop-filter:blur(16px);
  box-shadow:0 1.4rem 3rem rgba(10,40,40,.4);
  animation:awardPop 1.7s cubic-bezier(.22,.9,.28,1) forwards;
}
.award .aw-ico{width:3.2rem;height:3.2rem;color:#ffd166;}
.award .aw-ico .ic{width:100%;height:100%;fill:currentColor;stroke:none;}
.award .aw-txt{font-size:1.5rem;font-weight:900;color:#eafff7;letter-spacing:.04em;}
.award .aw-sub{font-size:.9rem;color:rgba(255,255,255,.85);}
@keyframes awardPop{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.6);}
  16%{opacity:1;transform:translate(-50%,-50%) scale(1.06);}
  26%{transform:translate(-50%,-50%) scale(1);}
  78%{opacity:1;transform:translate(-50%,-58%) scale(1);}
  100%{opacity:0;transform:translate(-50%,-72%) scale(.94);}
}

/* ══════════ 阶段测评 · 拍照评卷（浅底面板内，所以是深字浅底） ══════════ */
.pp-tabs{display:flex;gap:.5rem;flex:none;margin-bottom:.7rem;}
.pp-tab{
  padding:.46rem 1.15rem;border-radius:999px;font-size:.92rem;font-weight:700;
  background:#eceff9;color:#6a7192;transition:background .18s,color .18s;
}
.pp-tab.on{
  background:linear-gradient(100deg,#ffd58a,#f5a623);color:#4a2f00;
  box-shadow:0 .35rem .9rem rgba(245,166,35,.35);
}
.pp-hint{font-size:.84rem;color:#7c83a3;line-height:1.6;flex:none;margin-bottom:.85rem;}

.pp-subs{display:flex;gap:.45rem;flex:none;margin-bottom:.85rem;}
.pp-sub{
  padding:.34rem .95rem;border-radius:999px;font-size:.84rem;font-weight:600;
  background:#f0f2fa;color:#767d9c;transition:background .18s,color .18s;
}
.pp-sub.on{background:#5b5bd6;color:#fff;box-shadow:0 .3rem .7rem rgba(91,91,214,.35);}

.pp-pick{display:flex;gap:.7rem;flex:none;}
.pp-pickbtn{
  position:relative;flex:1;display:flex;align-items:center;justify-content:center;gap:.4rem;
  padding:1.05rem .8rem;border-radius:.9rem;cursor:pointer;
  border:2px dashed #c3cbe6;background:#f7f9ff;color:#5b6288;
  font-size:.92rem;font-weight:700;transition:background .18s,border-color .18s;
}
.pp-pickbtn:active{background:#eef2ff;border-color:#8f9bd0;}
.pp-file{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;}

.pp-thumbs{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.8rem;flex:none;}
.pp-thumb{position:relative;width:5.6rem;height:5.6rem;border-radius:.7rem;overflow:hidden;
  border:1px solid #d7dcef;background:#fff;box-shadow:0 .25rem .7rem rgba(40,50,110,.12);}
.pp-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.pp-del{
  position:absolute;top:.2rem;right:.2rem;width:1.25rem;height:1.25rem;border-radius:50%;
  background:rgba(20,24,50,.72);color:#fff;font-size:.7rem;line-height:1.25rem;text-align:center;
  font-weight:700;
}

.pp-go{margin-top:.95rem;flex:none;align-self:flex-start;padding:.6rem 1.6rem;border-radius:999px;}
.pp-go[disabled]{opacity:.55;cursor:default;}

.pp-out{
  margin-top:.9rem;padding:1rem 1.15rem;border-radius:.85rem;
  background:#f6f8ff;border:1px solid #e2e7f7;
  font-size:.88rem;line-height:1.85;color:#2f3557;
  white-space:pre-wrap;word-break:break-word;overflow:auto;
}
.pp-out.bad{background:#fff5f5;border-color:#ffd9d9;color:#8a3b3b;}
.pp-line{display:block;}

/* 包在浅色 .panel 里之后，控件配色按"浅底深字"统一 */
.pp-wrap{padding:1.15rem 1.25rem;overflow:auto;}
.pp-wrap .pp-tab{background:#eef0f8;color:#6a7192;}
.pp-wrap .pp-pickbtn{border-color:#c8d0e8;background:#f8faff;}
.pp-out{max-height:22rem;}
