/* 考生端。手机上单手作答，点击区域给大一点。 */

.timer {
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px;
  padding: 4px 10px; border-radius: 20px;
  background: var(--brand-soft); color: var(--brand-dark);
}
.timer.urgent { background: var(--bad-soft); color: var(--bad); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .55; } }

.paper-head { display: flex; align-items: center; gap: 10px; position: sticky; top: 49px; z-index: 20; }
.paper-head .spacer { flex: 1; }
.progress-chip {
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px;
  padding: 4px 12px; border-radius: 20px; background: #eef2f7; color: var(--ink-2);
  white-space: nowrap;
}

/* ---------- 分区标题 ---------- */
.section-head {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 2px 10px; color: var(--ink-2); font-size: 14px; font-weight: 600;
}
.section-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- 题目卡 ---------- */
.q {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow);
  scroll-margin-top: 110px;
}
.q.answered { border-color: #c3dcc9; }
.q-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 10px; flex-wrap: wrap; }
.q-no {
  font-weight: 700; color: var(--brand); font-size: 15px;
  min-width: 24px; font-variant-numeric: tabular-nums;
}
.q-text { font-size: 16px; line-height: 1.7; margin-bottom: 12px; white-space: pre-wrap; }

/* ---------- 选项 ---------- */
.opt {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 13px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  cursor: pointer; user-select: none;
  transition: border-color .12s, background .12s;
  -webkit-tap-highlight-color: transparent;
}
.opt:active { background: #f4f8fc; }
.opt.on { border-color: var(--brand); background: var(--brand-soft); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-key {
  flex: 0 0 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.opt.multi .opt-key { border-radius: 6px; }
.opt.on .opt-key { background: var(--brand); border-color: var(--brand); color: #fff; }
.opt-text { flex: 1; line-height: 1.6; padding-top: 1px; }

.essay-box { min-height: 130px; }
.essay-tip { font-size: 12px; color: var(--ink-3); margin-top: 6px; text-align: right; }

/* ---------- 交卷条 ---------- */
.submit-bar { position: sticky; bottom: 0; z-index: 20; }
.submit-bar .small { margin-bottom: 10px; }

/* ---------- 结果页 ---------- */
.result-card { padding: 30px 20px; }
.result-icon {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok);
  display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.score-big { margin: 18px 0 8px; font-weight: 700; color: var(--brand); }
.score-big span { font-size: 52px; line-height: 1; font-variant-numeric: tabular-nums; }
.score-big small { font-size: 20px; color: var(--ink-3); font-weight: 500; }

@media (max-width: 560px) {
  .paper-head { top: 45px; }
  .q { padding: 13px; }
  .q-text { font-size: 15.5px; }
}
