/* contestant.css —— 选手端（登录 A01 + 答题 A02） */
/* 登录布局样式见 common.css（与评委端共用） */

/* ===== 答题页 ===== */
#view-answer { height: 100%; overflow-y: auto; }
.answer-wrap {
  max-width: 1720px;
  margin: 0 auto;
  padding: 34px 40px 60px;
}
.answer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.answer-head-left { display: flex; align-items: baseline; gap: 16px; }
#caseTitle {
  position: relative;
  font-size: 34px;
  font-weight: 800;
  padding-left: 14px;
}
/* 标题前竖线：短于文字高度 */
#caseTitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 26px;
  border-radius: 3px;
  background: #fff;
}
.case-note { font-size: 16px; color: #dbe3ff; }
.countdown { display: flex; align-items: center; gap: 12px; }
.cd-label { font-size: 30px; font-weight: 800; }
.cd-box {
  width: 215px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: url("../img/time.png") center / 100% 100% no-repeat;
}
.cd-box b { color: var(--accent-red); font-size: 40px; font-weight: 900; }

/* 案例框 */
.case-box {
  display: flex;
  gap: 30px;
  background: rgba(30, 63, 208, .35);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 10px;
  padding: 26px 30px;
  margin-bottom: 26px;
}
.case-text {
  flex: 1;
  font-size: 18px;
  line-height: 1.9;
  white-space: pre-wrap;
  color: #f2f5ff;
}
.case-figure { width: 480px; flex-shrink: 0; }
.case-img { cursor: zoom-in; border-radius: 6px; overflow: hidden; background: #fff; }
.case-img img { width: 100%; display: block; }
.zoom-tip {
  margin-top: 12px;
  text-align: right;
  font-size: 15px;
  color: #dbe3ff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.zoom-tip img { width: 18px; }

.sub-title { font-size: 26px; font-weight: 800; margin: 6px 0 18px; }

/* 题目区 */
.question-box {
  background: rgba(30, 63, 208, .35);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 10px;
  padding: 26px 30px;
  margin-bottom: 30px;
}
.q-item { font-size: 18px; line-height: 1.9; margin-bottom: 18px; }
.q-item:last-child { margin-bottom: 0; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 40px; margin-top: 6px; padding-left: 22px; }
.q-opts.single-col { grid-template-columns: 1fr; }

/* 作答区 */
.answer-box {
  display: flex;
  flex-direction: column;
  background: rgba(30, 63, 208, .35);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 10px;
  padding: 26px 30px;
  min-height: 520px;
}
.ans-item { margin-bottom: 22px; }
.ans-label { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.ans-item input,
.ans-item textarea {
  width: 100%;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  padding: 12px 14px;
  font-size: 17px;
  color: #222;
  font-family: inherit;
}
.ans-item textarea { min-height: 90px; resize: vertical; }

/* 确认提交：位于作答框内右下角 */
.answer-box .submit-bar { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 22px; }

/* ===== 提交成功 ===== */
#view-done { height: 100%; }
.done-box {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.done-icon {
  width: 96px; height: 96px; line-height: 96px; text-align: center;
  border-radius: 50%; background: #2ecc71; color: #fff; font-size: 54px; font-weight: 800;
}
.done-text { font-size: 30px; font-weight: 700; }
.done-score { font-size: 40px; font-weight: 900; color: var(--accent-red); }

/* 等待答题页：转圈动效 */
.wait-spinner {
  width: 84px; height: 84px; border-radius: 50%;
  border: 8px solid rgba(46, 204, 113, 0.25);
  border-top-color: #2ecc71;
  animation: spin 1.2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 登录页竞赛状态提示 */
.status-hint { min-height: 26px; margin: 18px 0 0; font-size: 18px; color: #ffd76a; text-align: center; }
