/* 模拟赛 · 答题与评分通用组件（配 manual.css 使用） */
.ex-bar{position:sticky;top:0;z-index:50;background:#fff;border-bottom:2px solid #bc1927;box-shadow:0 6px 18px #1b2a4a14}
.ex-bar .in{max-width:1180px;margin:0 auto;padding:10px 26px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.ex-bar .who{font-weight:700;color:#152642}
.ex-bar .who small{font-weight:400;color:#5b6b84;margin-left:8px}
.ex-bar .clock{margin-left:auto;font-variant-numeric:tabular-nums;font-size:22px;font-weight:800;color:#152642;background:#f5f8ff;border:1px solid #dfe4f0;border-radius:10px;padding:2px 14px}
.ex-bar .clock.warn{color:#bc1927;background:#fff5f6;border-color:#f0c3c8;animation:exblink 1s steps(2) infinite}
@keyframes exblink{50%{opacity:.55}}
.ex-bar .prog{color:#5b6b84;font-size:14px}
.btn{display:inline-flex;align-items:center;gap:6px;border:none;border-radius:10px;padding:9px 18px;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit;line-height:1.4}
.btn.pri{background:#bc1927;color:#fff}.btn.pri:hover{background:#a3141f}
.btn.blue{background:#155aef;color:#fff}.btn.blue:hover{background:#0f49c4}
.btn.ghost{background:#fff;color:#2b3f6d;border:1px solid #cfd8ec}.btn.ghost:hover{border-color:#155aef;color:#155aef}
.btn.sm{padding:6px 12px;font-size:13.5px}
.btn:disabled{opacity:.45;cursor:not-allowed}
.field{display:flex;flex-direction:column;gap:6px;margin:0 0 14px}
.field label{font-size:14px;color:#2b3f6d;font-weight:700}
.field input[type=text],.field input[type=number],.field select,.field textarea{font:inherit;font-size:15px;padding:9px 12px;border:1px solid #cfd8ec;border-radius:10px;background:#fff;color:#1f2937;width:100%}
.field textarea{min-height:140px;line-height:1.6;font-family:"Microsoft YaHei","PingFang SC",Menlo,monospace;font-size:14px}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid #155aef33;border-color:#155aef}
.field .hint{font-size:13px;color:#6b7a95}
.frow{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0 18px}
.ans-table td input,.ans-table td select{font:inherit;font-size:14px;padding:6px 9px;border:1px solid #cfd8ec;border-radius:8px;background:#fff;width:100%}
.ans-table td.r{text-align:center}
.ans-table tr.ok td{background:#f2fbf6}.ans-table tr.ng td{background:#fff5f6}
.ans-table .mk{font-weight:800}.ans-table .mk.ok{color:#1f9d63}.ans-table .mk.ng{color:#bc1927}
.ans-table .exp{font-size:13px;color:#6b4a12;background:#fffbf1;border-radius:6px;padding:3px 8px;display:inline-block;margin-top:4px}
.score-card{display:grid;grid-template-columns:250px 1fr;gap:22px;align-items:center;background:linear-gradient(135deg,#fff5f6,#f5f8ff);border:1px solid #e3e8f3;border-radius:16px;padding:22px 26px;margin:0 0 18px}
.score-card .big{font-size:64px;font-weight:900;color:#bc1927;line-height:1;text-align:center}
.score-card .big small{display:block;font-size:13px;line-height:1.5;color:#5b6b84;font-weight:600;margin-top:8px;letter-spacing:2px}
.score-card .sub{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.score-card .sub div{background:#fff;border:1px solid #e3e8f3;border-radius:10px;padding:10px 14px}
.score-card .sub b{display:block;font-size:22px;color:#152642}
.score-card .sub span{font-size:13px;color:#6b7a95}
.bar{height:10px;background:#eef2fd;border-radius:999px;overflow:hidden;min-width:120px}
.bar i{display:block;height:100%;background:#155aef;border-radius:999px}
.bar.r i{background:#bc1927}.bar.g i{background:#1f9d63}
.chk{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px 16px;margin:0 0 12px}
.chk label{display:flex;gap:9px;align-items:flex-start;font-size:14.5px;color:#2b3f6d;background:#f7f8fc;border:1px solid #e3e8f3;border-radius:10px;padding:9px 12px;cursor:pointer}
.chk label input{margin-top:4px}
.chk label.on{border-color:#1f9d63;background:#f2fbf6}
.chk label.off{border-color:#f0c3c8;background:#fff5f6}
.sub-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:16px 0 0}
.result-box{display:none}
.result-box.show{display:block}
.pill{display:inline-block;border-radius:999px;padding:2px 10px;font-size:12.5px;font-weight:700;background:#eef3ff;color:#2b4ea8;margin-right:6px}
.pill.ok{background:#e6f7ee;color:#1f7a4c}.pill.ng{background:#fde8ea;color:#a3141f}.pill.wn{background:#fff3dc;color:#8a5a0a}
.ta-copy{position:relative}
.sim-out{background:#0f172a;color:#e2e8f0;border-radius:12px;padding:16px 18px;font-family:Menlo,Consolas,monospace;font-size:13.5px;line-height:1.7;white-space:pre-wrap}
.sim-out b{color:#fbbf24}.sim-out .g{color:#4ade80}.sim-out .r{color:#f87171}
.locked{opacity:.6;pointer-events:none}
.drop{border:2px dashed #cfd8ec;border-radius:14px;padding:26px;text-align:center;background:#f7f8fc;color:#5b6b84;cursor:pointer}
.drop.on{border-color:#155aef;background:#eef3ff}
.drop b{color:#155aef}
@media (max-width:900px){.score-card{grid-template-columns:1fr}}
