/* =========================================================
 * 5W1H 策略性提问 · 打卡   main.css
 * 面向 iPad / 桌面的儿童学习界面
 * ========================================================= */
:root{
  --blue:#2b7fff; --blue-d:#1a5fd8; --orange:#f5961d; --green:#16a34a;
  --ink:#1f2430; --sub:#6b7280; --line:#e7ebf2; --bg:#f5f8fd; --card:#fff;

  --c-who:#2b7fff;    /* 何人 */
  --c-what:#f5961d;   /* 何事 */
  --c-when:#8b5cf6;   /* 何时 */
  --c-where:#10b981;  /* 何地 */
  --c-why:#ec4899;    /* 何因 */
  --c-how:#06b6d4;    /* 何法 */

  --safe-b: env(safe-area-inset-bottom, 0px);
  --r:18px;
}
*{box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent;}
html,body{height:100%; max-width:100%; overflow-x:hidden;}
body{
  font-family:"Segoe UI","Microsoft YaHei",-apple-system,system-ui,sans-serif;
  background:var(--bg); color:var(--ink);
  -webkit-text-size-adjust:100%;
  padding-bottom:calc(24px + var(--safe-b));
  overscroll-behavior-y:none;
}
a{text-decoration:none; color:inherit;}
button{font-family:inherit; cursor:pointer; border:0; background:none; color:inherit;}
img{max-width:100%; display:block;}

/* ---------- 布局 ---------- */
.wrap{max-width:1040px; margin:0 auto; padding:14px 14px 0;}

/* 顶部导航 */
.topbar{
  position:sticky; top:0; z-index:60;
  display:flex; align-items:center; gap:10px;
  padding:9px 14px; background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar .tb-title{font-weight:800; font-size:15.5px; color:#2b3a66; flex:1 1 0; min-width:0;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.pill{
  display:inline-flex; align-items:center; gap:5px; flex:0 0 auto;
  padding:6px 13px; border-radius:99px; font-size:13px; font-weight:800;
  background:#eef4ff; color:var(--blue); white-space:nowrap;
  border:1px solid #dbe7ff;
}
.pill.gray{background:#f1f3f7; color:var(--sub); border-color:var(--line);}
.pill.shelly{background:linear-gradient(135deg,#ffe9c9,#ffd9a8); color:#9a5b00; border-color:#ffd9a8;}

/* 首页 hero */
.hero{
  text-align:center; padding:26px 16px 22px; border-radius:22px; margin-bottom:16px;
  background:linear-gradient(135deg,#eaf2ff 0%,#f3f0ff 55%,#fff4ec 100%);
  box-shadow:0 10px 30px rgba(47,103,255,.10);
}
.hero h1{font-size:27px; font-weight:900; color:#26325a; letter-spacing:.5px;}
.hero h1 .em{color:var(--blue);}
.hero .sub{margin-top:8px; color:#5b6478; font-size:14px; line-height:1.6;}
.hero .badges{margin-top:14px; display:flex; gap:8px; justify-content:center; flex-wrap:wrap;}
.hero .badges span{background:#fff; color:var(--sub); font-size:12.5px; font-weight:700;
  padding:5px 12px; border-radius:99px; box-shadow:0 3px 10px rgba(20,30,60,.06);}
/* 首页标题：六个提问词海报（点击翻页看对话） */
.hero .h6{display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin:0 0 14px;}
@media (min-width:600px){ .hero .h6{grid-template-columns:repeat(3,1fr);} }
@media (min-width:980px){ .hero .h6{grid-template-columns:repeat(6,1fr);} }

.hcard{
  position:relative; height:250px; perspective:1000px; cursor:pointer; outline:none;
  -webkit-tap-highlight-color:transparent;
}
@media (min-width:600px){ .hcard{height:270px;} }
.hcard:focus-visible .hfront{box-shadow:0 0 0 3px rgba(43,127,255,.35);}

.hinner{
  position:relative; width:100%; height:100%;
  transform-style:preserve-3d;
  transition:transform .62s cubic-bezier(.35,.15,.2,1);
}
.hcard.on .hinner{transform:rotateY(180deg);}

.hface{
  position:absolute; inset:0; border-radius:14px; overflow:hidden; background:#fff;
  border:1.5px solid #e4ecfa; box-shadow:0 6px 18px rgba(20,30,60,.10);
  backface-visibility:hidden; -webkit-backface-visibility:hidden;
}

/* 正面：海报图 */
.hfront{display:flex; flex-direction:column; padding:5px 5px 6px;}
.hfront img{flex:1; min-height:0; width:100%; object-fit:contain;}
.hfront .htap{
  flex:none; margin:5px auto 0; padding:3px 11px; border-radius:99px;
  font-size:10.5px; font-weight:800; color:#fff; background:var(--qc,#2b7fff);
  white-space:nowrap; box-shadow:0 3px 9px rgba(20,30,60,.20);
}

/* 背面：一组问答对话 */
.hback{
  transform:rotateY(180deg); padding:8px 9px; display:flex; flex-direction:column;
  gap:6px; text-align:left; overflow-y:auto; -webkit-overflow-scrolling:touch;
}
.hhead{display:flex; align-items:center; justify-content:space-between; gap:6px;}
.hhead span{font-size:11.5px; font-weight:900; color:var(--qc,#2b7fff); letter-spacing:.2px;}
.hhead .hflip{
  flex:none; width:21px; height:21px; border-radius:7px; font-style:normal;
  background:#f1f5fb; color:#7b8798; font-size:12px; line-height:21px; text-align:center;
}
.hrow{display:flex; align-items:flex-start; gap:5px;}
.hrow .hb{
  flex:none; width:16px; height:16px; margin-top:1px; border-radius:5px;
  background:var(--qc,#2b7fff); color:#fff; font-size:10.5px; font-weight:900;
  line-height:16px; text-align:center;
}
.hrow p{
  flex:1; min-width:0; font-size:12.5px; font-weight:800; color:#26325a;
  line-height:1.42; overflow-wrap:break-word; word-break:break-word;
}
.hrow .hspk{
  flex:none; width:21px; height:21px; border-radius:50%; font-size:10.5px;
  line-height:21px; text-align:center; background:#eef4ff;
}
.hmid{flex:1; display:flex; flex-direction:column; justify-content:center; gap:6px; min-height:0;}
.hzh{
  flex:none; padding:6px 4px; border-radius:9px; font-size:11.5px; font-weight:800;
  background:#f4f7fd; color:#4b5872; border:1px solid var(--line);
}
.hzhbox{padding:6px 8px; border-radius:9px; background:#fffaf1; border:1px dashed #f0dcae;}
.hzhbox p{font-size:11.5px; font-weight:700; color:#8a6c2c; line-height:1.5;}
.hzhbox p + p{margin-top:2px;}

/* 模式卡 */
.modes{display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px;}
.mode{
  display:block; background:var(--card); border-radius:var(--r); padding:16px 16px 15px;
  box-shadow:0 6px 20px rgba(20,30,60,.07); border:2px solid transparent;
  transition:transform .14s, border-color .14s, box-shadow .14s; position:relative; overflow:hidden;
}
.mode:active{transform:scale(.975);}
.mode:hover{border-color:#dbe7ff; box-shadow:0 10px 26px rgba(20,30,60,.11);}
.mode .ic{font-size:29px; line-height:1;}
.mode .nm{font-size:16.5px; font-weight:900; margin-top:9px; color:#26325a;}
.mode .ds{font-size:12.8px; color:var(--sub); margin-top:5px; line-height:1.55;}
.mode .tagline{
  position:absolute; top:0; right:0; font-size:11px; font-weight:800; color:#fff;
  padding:4px 10px; border-bottom-left-radius:12px;
}
.mode[data-c=learn] .tagline{background:#6366f1}
.mode[data-c=pic2word] .tagline{background:var(--orange)}
.mode[data-c=audio2pic] .tagline{background:#10b981}
.mode[data-c=audio2word] .tagline{background:var(--blue)}
.mode[data-c=ask] .tagline{background:#ec4899}
.mode[data-c=card] .tagline{background:#0ea5e9}
.mode[data-c=poster] .tagline{background:#8b5cf6}
.mode[data-c=dialog] .tagline{background:#f43f5e}

/* 区块标题 */
.sec-h{display:flex; align-items:center; gap:9px; margin:22px 2px 11px;}
.sec-h b{font-size:16px; font-weight:900; color:#26325a;}
.sec-h i{font-style:normal; font-size:12.5px; color:var(--sub); font-weight:600;}
.sec-h .line{flex:1; height:1px; background:var(--line);}

/* ---------- 通用卡片 ---------- */
.card{background:var(--card); border-radius:var(--r); box-shadow:0 6px 20px rgba(20,30,60,.07);}
.pad{padding:16px;}

/* ---------- 提问词配色 ---------- */
[data-q=who]{--qc:var(--c-who)} [data-q=what]{--qc:var(--c-what)}
[data-q=when]{--qc:var(--c-when)} [data-q=where]{--qc:var(--c-where)}
[data-q=why]{--qc:var(--c-why)} [data-q=how]{--qc:var(--c-how)}

.qbadge{
  display:inline-flex; align-items:center; gap:6px;
  background:var(--qc,var(--blue)); color:#fff; font-weight:900;
  padding:6px 15px; border-radius:99px; font-size:15px; letter-spacing:.4px;
  box-shadow:0 4px 14px rgba(0,0,0,.13);
}
.qbadge .qq{opacity:.85; font-size:12.5px; font-weight:700;}

/* ---------- 单词卡 ---------- */
.wcard{
  background:#fff; border-radius:22px; box-shadow:0 8px 26px rgba(20,30,60,.09);
  padding:18px 16px 16px; text-align:center; position:relative; overflow:hidden;
  border:1px solid #eef1f7;
}
.wcard .art{
  height:190px; display:flex; align-items:center; justify-content:center;
  font-size:112px; line-height:1; user-select:none;
  background:linear-gradient(180deg,#fbfdff,#f4f8ff); border-radius:16px;
}
.wcard .art img{max-height:186px; width:auto; border-radius:12px;}
.wcard .wtxt{font-size:40px; font-weight:900; color:#22293c; margin-top:12px; letter-spacing:.5px;
  word-break:break-word; line-height:1.15;}
.wcard .wphon{font-size:14px; color:#98a2b3; margin-top:5px; letter-spacing:1.5px; font-weight:700;}
.wcard .wzh{font-size:20px; color:var(--blue); font-weight:800; margin-top:7px;}
.wcard .wsent{margin-top:12px; font-size:14.5px; color:#475069; line-height:1.6;
  background:#f7f9fc; border-radius:12px; padding:9px 12px;}
.wcard .wsent .cn{display:block; color:var(--sub); font-size:13px; margin-top:3px;}

/* 发音键 */
.spk{
  width:52px; height:52px; border-radius:50%; background:var(--blue); color:#fff;
  font-size:22px; display:inline-flex; align-items:center; justify-content:center;
  box-shadow:0 5px 16px rgba(43,127,255,.35); transition:transform .12s;
}
.spk:active{transform:scale(.92);}
.spk.sm{width:38px; height:38px; font-size:16px; box-shadow:0 3px 10px rgba(43,127,255,.3);}
.spk.gr{background:#16a34a; box-shadow:0 5px 16px rgba(22,163,74,.32);}

/* ---------- 选项网格 ---------- */
.opts{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px;}
.opts.c3{grid-template-columns:1fr 1fr 1fr;}
.opts.c6{grid-template-columns:repeat(3,1fr);}
.opt{
  position:relative; min-width:0; word-break:break-word;
  background:#fff; border:2.5px solid var(--line); border-radius:16px;
  padding:16px 10px; font-size:22px; font-weight:900; color:#26325a;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  min-height:78px; transition:transform .12s, border-color .12s, background .12s;
  box-shadow:0 4px 14px rgba(20,30,60,.06);
}
.opt:active{transform:scale(.96);}
.opt .sub{font-size:12.5px; font-weight:700; color:var(--sub);}
.opt.pic{border:2.5px solid #eaf0fa; background:linear-gradient(180deg,#fdfeff,#f6f9ff);}
.opt.pic .em{font-size:52px; line-height:1;}
.opt.pic img{height:74px; width:auto; border-radius:10px;}
.opt .em{font-size:40px; line-height:1;}
.opt.ok{border-color:#22c55e; background:#f0fdf4; animation:pop .32s;}
.opt.ok::after{content:"✅"; position:absolute; top:6px; right:8px; font-size:17px;}
.opt.no{border-color:#f43f5e; background:#fff1f3; animation:shake .32s;}
.opt[disabled]{pointer-events:none;}
@keyframes pop{0%{transform:scale(1)}55%{transform:scale(1.06)}100%{transform:scale(1)}}
@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}

/* ---------- 进度 / 统计 ---------- */
.qbar{display:flex; align-items:center; gap:10px; margin:4px 2px 14px;}
.qbar .pbar{flex:1; height:11px; background:#e6ecf7; border-radius:99px; overflow:hidden;}
.qbar .pbar i{display:block; height:100%; width:0; border-radius:99px;
  background:linear-gradient(90deg,#2b7fff,#7aa8ff); transition:width .3s;}
.qbar .num{font-size:13.5px; font-weight:800; color:var(--sub); white-space:nowrap;}

.score{display:flex; gap:10px; margin-bottom:14px;}
.score .sc{flex:1; background:#fff; border-radius:15px; padding:13px 10px; text-align:center;
  box-shadow:0 5px 16px rgba(20,30,60,.06);}
.score .sc .n{font-size:24px; font-weight:900; color:var(--blue); line-height:1.1;}
.score .sc .n.g{color:#16a34a;} .score .sc .n.r{color:#f43f5e;} .score .sc .n.o{color:#f5961d;}
.score .sc .t{font-size:11.5px; color:var(--sub); font-weight:700; margin-top:3px;}

/* ---------- 底部工具条 ---------- */
.dock{
  position:fixed; left:0; right:0; bottom:0; z-index:70;
  display:flex; gap:10px; padding:10px 14px calc(10px + var(--safe-b));
  background:rgba(255,255,255,.95); backdrop-filter:blur(10px);
  border-top:1px solid var(--line);
}
.dock button{
  flex:1 1 0; min-width:0; padding:13px 6px; border-radius:14px; font-size:14px; font-weight:800;
  background:#eef2f9; color:#334155; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.dock button.pri{background:var(--blue); color:#fff; box-shadow:0 5px 16px rgba(43,127,255,.3);}
.dock button.gr{background:#16a34a; color:#fff; box-shadow:0 5px 16px rgba(22,163,74,.3);}
.dock button.rd{background:#f43f5e; color:#fff; box-shadow:0 5px 16px rgba(244,63,94,.3);}
.dock button:active{transform:scale(.97);}
.dock button[disabled]{opacity:.45; pointer-events:none;}
.has-dock{padding-bottom:calc(88px + var(--safe-b));}

/* ---------- 5W1H 六词教学 ---------- */
.qgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px;}
.qcard{
  background:#fff; border-radius:20px; padding:0; overflow:hidden;
  box-shadow:0 8px 26px rgba(20,30,60,.09); border-top:6px solid var(--qc,var(--blue));
}
.qcard .qh{padding:15px 16px 12px;}
.qcard .qw{font-size:34px; font-weight:900; color:var(--qc,var(--blue)); letter-spacing:.5px; line-height:1;}
.qcard .qz{font-size:15px; font-weight:800; color:#26325a; margin-top:7px;}
.qcard .qd{font-size:13.2px; color:var(--sub); margin-top:6px; line-height:1.55;}
.qcard .qimg{width:100%; height:210px; object-fit:cover; object-position:top; background:#f4f7fc;}
.qcard .qrow{display:flex; align-items:center; gap:9px; padding:0 16px 15px; flex-wrap:wrap;}
.qcard .qex{padding:0 16px 16px;}
.qcard .qex .lab{font-size:12px; font-weight:800; color:var(--sub); margin-bottom:7px;}
.chips{display:flex; flex-wrap:wrap; gap:7px;}
.chip{
  display:inline-flex; align-items:center; gap:5px; background:#f2f6fd;
  border:1.5px solid #e3ebf8; color:#33405c; font-weight:700; font-size:13.5px;
  padding:7px 13px; border-radius:99px;
}
.chip:active{transform:scale(.96);}
.chip .em{font-size:16px;}
.chip.playing{background:#e6f0ff; border-color:#b9d3ff;}

/* ---------- 单词卡跟读（card.html） ---------- */
.cardstage{display:flex; flex-direction:column; align-items:center; gap:14px;}
.cardstage .wcard{width:100%; max-width:560px;}
.cardnav{display:flex; align-items:center; justify-content:center; gap:14px; margin-top:4px;}
.cardnav .idx{font-size:14px; font-weight:800; color:var(--sub); min-width:96px; text-align:center;}

/* ---------- 5W1H 问答认词卡（dialog.html） ---------- */
.dwrap{max-width:660px; margin:0 auto;}
.dbar{display:flex; gap:8px; align-items:center; margin:2px 2px 12px; flex-wrap:wrap;}
.dbar .filters{margin-top:0;}
.weekpick{
  padding:8px 12px; border-radius:99px; font-size:13px; font-weight:800;
  background:#fff; color:var(--blue); border:1.5px solid #dbe7ff; font-family:inherit;
}
.dcard{
  background:#fff; border-radius:22px; overflow:hidden;
  box-shadow:0 8px 26px rgba(20,30,60,.09); border-top:6px solid var(--qc,var(--blue));
}
.dcard .dimg{width:100%; aspect-ratio:4/3; object-fit:cover; background:#f4f7fc; display:block;}
.dcard .dbody{padding:12px 14px 16px;}
.drow{display:flex; gap:10px; align-items:flex-start; padding:11px 12px; border-radius:14px;}
.drow.q{background:#f6f9ff;}
.drow.a{background:#f4fdf7;}
.drow .lab{
  width:27px; height:27px; border-radius:9px; flex:0 0 auto; margin-top:2px;
  display:flex; align-items:center; justify-content:center;
  font-weight:900; color:#fff; font-size:14px;
}
.drow.q .lab{background:var(--qc,var(--blue));}
.drow.a .lab{background:#16a34a;}
.drow .txt{flex:1 1 0; min-width:0;}
.drow .en{font-size:19px; font-weight:800; color:#22293c; line-height:1.4; word-break:break-word;}
.drow .cn{font-size:13.5px; color:var(--sub); font-weight:600; margin-top:4px; line-height:1.5;}
.drow.a.mask .en, .drow.a.mask .cn{filter:blur(7px); opacity:.5; user-select:none;}
.dacts{display:flex; gap:9px; margin-top:13px; justify-content:center; flex-wrap:wrap;}
.dacts button{
  padding:12px 17px; border-radius:14px; font-size:14px; font-weight:800;
  background:#eef2f9; color:#334155;
}
.dacts button.pri{background:var(--blue); color:#fff; box-shadow:0 5px 16px rgba(43,127,255,.28);}
.dacts button.gr{background:#16a34a; color:#fff; box-shadow:0 5px 16px rgba(22,163,74,.28);}
.dacts button.rd{background:#f43f5e; color:#fff; box-shadow:0 5px 16px rgba(244,63,94,.28);}
.dacts button:active{transform:scale(.97);}
.kws{display:flex; flex-wrap:wrap; gap:7px; margin-top:12px;}
.dlist{display:grid; grid-template-columns:repeat(auto-fill,minmax(148px,1fr)); gap:10px;}
.ditem{
  position:relative; background:#fff; border-radius:14px; overflow:hidden; text-align:left;
  box-shadow:0 4px 14px rgba(20,30,60,.07); border:2px solid transparent;
}
.ditem.on{border-color:var(--qc,var(--blue));}
.ditem img{width:100%; height:108px; object-fit:cover;}
.ditem .t{padding:7px 9px 10px;}
.ditem .b{
  display:inline-block; font-size:10.5px; color:#fff; font-weight:800;
  background:var(--qc,var(--blue)); padding:2px 9px; border-radius:99px;
}
.ditem .q{font-size:12.3px; font-weight:800; color:#33405c; margin-top:5px; line-height:1.35;}
.ditem.done::after{content:"✅"; position:absolute; top:6px; right:8px; font-size:14px;}

/* ---------- 海报墙 ---------- */
.pgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px;}
.pgrid a{background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 6px 18px rgba(20,30,60,.08);}
.pgrid img{width:100%; height:290px; object-fit:cover; object-position:top;}
.pgrid .cap{padding:9px 12px; font-size:13px; font-weight:800; color:#33405c;}

/* 大图查看 */
.lightbox{
  position:fixed; inset:0; z-index:200; background:rgba(12,16,28,.94);
  display:none; align-items:center; justify-content:center; padding:16px;
}
.lightbox.on{display:flex;}
.lightbox img{max-width:100%; max-height:88vh; border-radius:14px;}
.lightbox .close{position:absolute; top:14px; right:16px; width:44px; height:44px;
  border-radius:50%; background:rgba(255,255,255,.16); color:#fff; font-size:22px;}

/* ---------- 录音 ---------- */
.recbar{
  display:flex; align-items:center; gap:10px; background:#fff; border-radius:16px;
  padding:11px 14px; box-shadow:0 6px 20px rgba(20,30,60,.08); margin-bottom:13px;
}
.recbar .st{flex:1; font-size:12.8px; color:var(--sub); font-weight:600; line-height:1.45;}
.recbar .st b{color:#f43f5e;}
.recbtn{
  display:inline-flex; align-items:center; gap:7px; background:#f43f5e; color:#fff;
  font-weight:800; font-size:14px; padding:10px 17px; border-radius:13px;
  box-shadow:0 5px 16px rgba(244,63,94,.32); white-space:nowrap;
}
.recbtn.gr{background:#16a34a; box-shadow:0 5px 16px rgba(22,163,74,.32);}
.recbtn:active{transform:scale(.97);}
.blink{display:inline-block; width:9px; height:9px; border-radius:50%; background:#f43f5e;
  animation:bl 1s infinite; margin-right:6px; vertical-align:middle;}
@keyframes bl{0%,100%{opacity:1}50%{opacity:.25}}

/* 录制面板 */
.recpanel{
  position:fixed; inset:0; z-index:210; background:rgba(12,16,28,.55);
  display:none; align-items:center; justify-content:center; padding:16px;
}
.recpanel.on{display:flex;}
.recpanel .box{
  background:#fff; border-radius:20px; padding:20px; width:100%; max-width:440px; text-align:center;
  box-shadow:0 20px 50px rgba(0,0,0,.3);
}
.recpanel .box h3{font-size:18px; font-weight:900; color:#26325a;}
.recpanel .box p{font-size:13.2px; color:var(--sub); margin-top:8px; line-height:1.6;}
.recpanel .vid{margin-top:12px; font-size:13px; color:#16a34a; font-weight:700; word-break:break-all;}
.recpanel .acts{display:flex; gap:10px; margin-top:16px; flex-wrap:wrap;}
.recpanel .acts a, .recpanel .acts button{
  flex:1; min-width:120px; padding:13px 10px; border-radius:13px; font-size:14.5px; font-weight:800;
  background:#eef2f9; color:#334155; display:flex; align-items:center; justify-content:center; gap:6px;
}
.recpanel .acts a.pri{background:#16a34a; color:#fff;}
.recpanel .acts button.pri{background:var(--blue); color:#fff;}

/* ---------- 结束页 ---------- */
.done{text-align:center; padding:26px 16px;}
.done .big{font-size:56px; line-height:1;}
.done h2{font-size:23px; font-weight:900; color:#26325a; margin-top:12px;}
.done p{font-size:14px; color:var(--sub); margin-top:8px; line-height:1.6;}
.done .btns{display:flex; gap:10px; margin-top:20px; flex-wrap:wrap; justify-content:center;}
.done .btns a, .done .btns button{
  padding:13px 22px; border-radius:14px; font-size:15px; font-weight:800;
  background:#eef2f9; color:#334155;
}
.done .btns .pri{background:var(--blue); color:#fff;}

/* ---------- 提示 ---------- */
.toast{
  position:fixed; left:50%; bottom:96px; transform:translateX(-50%) translateY(10px);
  background:rgba(31,36,48,.93); color:#fff; font-size:14px; font-weight:700;
  padding:11px 20px; border-radius:99px; opacity:0; pointer-events:none;
  transition:.25s; z-index:300; max-width:90vw; text-align:center;
}
.toast.on{opacity:1; transform:translateX(-50%) translateY(0);}

.loading{text-align:center; padding:60px 20px; color:var(--sub); font-size:15px;}

/* ---------- 设置行 ---------- */
.filters{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px;}
.filters button{
  padding:8px 14px; border-radius:99px; font-size:13px; font-weight:800;
  background:#fff; color:var(--sub); border:1.5px solid var(--line);
}
.filters button.on{background:var(--blue); color:#fff; border-color:var(--blue);}

@media (max-width:560px){
  .hero h1{font-size:22px;}
  .opts{gap:9px;}
  .opts.c3{grid-template-columns:1fr 1fr;}
  .opts.c6{grid-template-columns:1fr 1fr;}
  .opt{font-size:19px; padding:13px 8px; min-height:66px;}
  .opt .em{font-size:34px;}
  .wcard .art{height:150px; font-size:86px;}
  .wcard .wtxt{font-size:32px;}
  .qgrid{grid-template-columns:1fr;}
  .dock{gap:7px; padding:9px 10px calc(9px + var(--safe-b));}
  .dock button{font-size:12.5px; padding:12px 4px;}
  .topbar{padding:8px 10px; gap:7px;}
  .topbar .tb-title{font-size:13.5px;}
  .pill{padding:6px 10px; font-size:12px;}
  .wrap{padding:10px 10px 0;}
  .qbadge{font-size:14px; padding:5px 12px;}
  .qcard .qw{font-size:29px;}
  .recpanel .box{padding:16px;}
}
