:root { --ink:#1f2328; --sub:#6b7280; --line:#e5e7eb; --bg:#f5f5f2; --card:#fff; --accent:#1e4f8c; --accent-soft:#e6eef8; }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.6 -apple-system,"PingFang SC","Microsoft YaHei",sans-serif; color:var(--ink); background:var(--bg); }
.wrap { max-width:640px; margin:0 auto; padding:16px 14px 80px; }
h1 { font-size:22px; margin:8px 0 4px; }
h2 { font-size:17px; margin:0 0 10px; }
.sub, .hint { color:var(--sub); font-size:13px; margin:4px 0; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px; margin:12px 0; }
.q-title { font-weight:600; margin-bottom:10px; }
.q-no { color:var(--accent); margin-right:6px; }
.choices { display:grid; gap:8px; }
.choice { display:block; width:100%; text-align:left; padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; font-size:16px; color:var(--ink); cursor:pointer; }
.choice.picked { border-color:var(--accent); background:var(--accent-soft); font-weight:600; }
.choice:disabled { cursor:default; opacity:.75; }
.bar { margin:8px 0; }
.bar-head { display:flex; justify-content:space-between; font-size:14px; gap:8px; }
.bar-num { color:var(--sub); white-space:nowrap; }
.bar-track { height:10px; background:#eef0f3; border-radius:5px; overflow:hidden; margin-top:3px; }
.bar-fill { height:100%; background:#9aa9bd; border-radius:5px; transition:width .4s; }
.bar.mine .bar-fill { background:var(--accent); }
.tag { display:inline-block; font-size:11px; background:var(--accent); color:#fff; border-radius:4px; padding:0 5px; margin-left:6px; vertical-align:1px; }
.score { position:sticky; bottom:0; background:var(--accent); color:#fff; border-radius:12px; padding:12px 14px; margin-top:16px; }
.score b { font-size:26px; margin:0 4px; }
.banner { background:#fff6e0; border:1px solid #f1d58a; border-radius:10px; padding:8px 12px; font-size:14px; margin:10px 0; }
a { color:var(--accent); }
button.btn { padding:8px 14px; border-radius:8px; border:1px solid var(--accent); background:var(--accent); color:#fff; font-size:14px; cursor:pointer; }
button.btn.ghost { background:#fff; color:var(--accent); }
button.btn.danger { background:#fff; color:#b42318; border-color:#b42318; }
.row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
input, select, textarea { font:inherit; padding:7px 9px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.toast { position:fixed; left:50%; bottom:90px; transform:translateX(-50%); background:rgba(0,0,0,.8); color:#fff; padding:8px 14px; border-radius:8px; font-size:14px; z-index:9; }
.answer-line { display:flex; justify-content:space-between; border-bottom:1px dashed var(--line); padding:5px 0; font-size:15px; }
.choice.with-result { display:flex; justify-content:space-between; gap:8px; background:linear-gradient(to right, #e9edf2 var(--pct), #fff var(--pct)); }
.choice.with-result.picked { background:linear-gradient(to right, #c9daf0 var(--pct), var(--accent-soft) var(--pct)); }
.choice-num { color:var(--sub); font-size:14px; font-weight:400; white-space:nowrap; }
.report-score { font-size:15px; }
.report-score b { font-size:32px; color:var(--accent); margin:0 4px; }
.report-line { display:flex; justify-content:space-between; gap:10px; padding:7px 0; border-top:1px dashed var(--line); font-size:15px; }
.report-line > span:first-child { color:var(--sub); white-space:nowrap; }
.report-line b { color:var(--accent); }
.report { margin:6px 0 10px; }
