:root{
  --bg:#F7F8FA;
  --card:#FFFFFF;
  --text:#333333;
  --muted:#666666;
  --line:#E9ECF2;
  --accent:#4A90E2;
  --ok:#2E7D32;
  --bad:#C62828;
  --shadow:0 6px 20px rgba(20,24,36,.06);
  --radius:14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif;
  color:var(--text);
  background:var(--bg);
}

.appbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; gap:12px;
  padding:10px 12px;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.iconbtn{
  border:0; background:transparent;
  width:40px; height:40px;
  border-radius:10px;
  font-size:18px;
}
.iconbtn:active{ background:#F0F2F6; }
.title{ flex:1; min-width:0; }
.title-main{ font-weight:700; }
.title-sub{ font-size:12px; color:var(--muted); margin-top:2px; }

.container{
  max-width:520px;
  margin:0 auto;
  padding:12px 12px 22px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow);
  margin:10px 0;
}
.hidden{ display:none !important; }

.row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.h{ font-weight:700; }
.muted{ color:var(--muted); font-size:13px; line-height:1.4; }

.pill{
  display:inline-block;
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--line);
  padding:4px 8px;
  border-radius:999px;
  margin-bottom:10px;
}
.q{ white-space: pre-wrap; font-size:16px; line-height:1.6; margin:2px 0 8px; }

.options{ display:flex; flex-direction:column; gap:10px; margin-top:4px; }
.option{
  border:1px solid var(--line);
  background:var(--card);
  border-radius:var(--radius);
  padding:12px 12px;
  display:flex;
  gap:10px;
  align-items:center;
  box-shadow:var(--shadow);
  cursor:pointer;
  user-select:none;
}
.option:active{ transform:scale(.995); }
.opt-letter{
  width:28px; height:28px; flex:0 0 28px;
  border-radius:10px;
  display:grid; place-items:center;
  background:#F2F5FB;
  color:#334;
  font-weight:700;
}
.opt-main{ flex:1; }
.opt-de{ font-weight:700; }

.option.selected{ border-color:rgba(74,144,226,.55); background:rgba(74,144,226,.06); }
.option.correct{ border-color:rgba(46,125,50,.45); background:rgba(46,125,50,.07); }
.option.wrong{ border-color:rgba(198,40,40,.45); background:rgba(198,40,40,.07); }

.actions{ display:flex; gap:10px; margin:12px 0 4px; }
.btn{
  border:1px solid var(--line);
  background:var(--card);
  color:var(--text);
  padding:12px 14px;
  border-radius:14px;
  font-weight:700;
  width:100%;
  cursor:pointer;
}
.btn:disabled{ opacity:.55; cursor:not-allowed; }
.btn-primary{
  border-color:rgba(74,144,226,.35);
  background:var(--accent);
  color:#fff;
}
.btn-ghost{
  width:auto;
  padding:10px 12px;
  border-radius:12px;
}

.bar{
  height:10px;
  border-radius:999px;
  background:#EEF1F7;
  overflow:hidden;
  margin-top:10px;
}
.bar-fill{
  height:100%;
  width:0%;
  background:var(--accent);
  border-radius:999px;
  transition:width .25s ease;
}

.dots{ display:flex; gap:6px; align-items:center; }
.dot{
  width:10px; height:10px;
  border-radius:999px;
  background:#D9DFEA;
}
.dot.on{ background:var(--accent); }

.card.ad{ position:relative; }
.ad-badge{
  position:absolute; top:12px; right:12px;
  font-size:11px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  background:rgba(255,255,255,.9);
}

.card-install{
  border-color:rgba(74,144,226,.35);
  background:linear-gradient(180deg, rgba(74,144,226,.08), rgba(255,255,255,1));
}

.footer{
  padding:10px 2px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}
