/* ============ 「其它」模块 · 完整模拟题 ============ */
.test-list { max-width: 880px; margin: 0 auto; padding: 16px 14px 40px; }
.test-list-head h2 { margin: 4px 0; font-size: 20px; }
.test-list-head p { color: #8a93a5; font-size: 13px; margin: 0 0 14px; line-height: 1.6; }
.test-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.test-card {
  position: relative; background: #fff; border: 1px solid #e6eaf2; border-radius: 14px;
  padding: 16px; cursor: pointer; transition: transform .15s, box-shadow .15s; box-shadow: 0 2px 8px rgba(40,60,90,.05);
}
.test-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(40,60,90,.12); }
.tc-badge { position: absolute; top: 14px; right: 14px; background: #eaf2ff; color: #2b6cb0; font-size: 11px; padding: 3px 8px; border-radius: 20px; }
.tc-title { font-size: 16px; font-weight: 700; margin: 2px 70px 6px 0; }
.tc-source { font-size: 12px; color: #9aa3b2; margin-bottom: 10px; }
.tc-meta { display: flex; gap: 12px; font-size: 12px; color: #6b7280; margin-bottom: 10px; flex-wrap: wrap; }
.tc-progress { height: 6px; background: #eef1f6; border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.tc-progress-fill { height: 100%; background: linear-gradient(90deg,#27ae60,#2ecc71); }
.tc-foot { font-size: 12px; color: #8a93a5; }

/* 整卷做题 */
.other-test { max-width: 860px; margin: 0 auto; padding: 12px 12px 60px; }
.ot-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ot-title { font-size: 15px; font-weight: 700; flex: 1; }
.ot-count-wrap { font-size: 13px; color: #6b7280; background: #f0f3f8; padding: 6px 12px; border-radius: 20px; white-space: nowrap; }
.ot-count { font-weight: 700; color: #2b6cb0; }
.ot-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.ot-tab {
  flex: 0 0 auto; border: 1px solid #d6dce8; background: #fff; border-radius: 20px;
  padding: 7px 14px; font-size: 13px; cursor: pointer; color: #555; white-space: nowrap;
}
.ot-tab.active { background: #2b6cb0; color: #fff; border-color: #2b6cb0; }
.ot-parts { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 10px; }
.ot-part-chip {
  flex: 0 0 auto; border: none; background: #f0f3f8; border-radius: 10px; padding: 8px 12px;
  font-size: 13px; cursor: pointer; color: #555; white-space: nowrap;
}
.ot-part-chip.active { background: #eaf2ff; color: #2b6cb0; font-weight: 700; }

.ot-audio { background: #fff7ef; border: 1px solid #ffe2c4; border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.ot-audio-label { font-size: 13px; font-weight: 700; color: #d97706; margin-bottom: 8px; }
.ot-audio audio { width: 100%; }

.ot-part-head { margin-bottom: 10px; }
.ot-part-name { font-size: 16px; font-weight: 700; }

/* 保留的原图 */
.ot-images { background: #fff; border: 1px dashed #cdd6e6; border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.ot-images-cap { font-size: 12px; color: #8a93a5; margin-bottom: 8px; }
.ot-fig { width: 100%; border-radius: 8px; box-shadow: 0 3px 12px rgba(40,60,90,.12); display: block; margin-bottom: 10px; cursor: zoom-in; }
.ot-fig:last-child { margin-bottom: 0; }

/* 阅读/听力篇章 */
.ot-passage {
  background: #fbfcfe; border: 1px solid #e6eaf2; border-left: 4px solid #2980b9;
  border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; font-size: 14px; line-height: 1.85; color: #333;
}
.ot-passage:empty { display: none; }

/* 左文章 + 右题目 分栏（阅读 Part 2-5） */
.ot-split { display: flex; gap: 14px; align-items: flex-start; }
.ot-split-left {
  flex: 0 0 42%; position: sticky; top: 12px;
  max-height: calc(100vh - 210px); overflow-y: auto;
}
.ot-split-left .ot-passage { margin-bottom: 0; font-size: 13px; line-height: 1.7; padding: 12px 14px; }
.ot-split-right { flex: 1; min-width: 0; }
.ot-split-right .q-card { padding: 10px 12px; gap: 10px; }
.ot-split-right .q-no { width: 28px; height: 28px; font-size: 12px; }
.ot-split-right .q-stem { font-size: 13px; margin-bottom: 8px; line-height: 1.6; }
.ot-split-right .q-opts { gap: 6px; }
.ot-split-right .q-opt { padding: 7px 10px; font-size: 13px; gap: 8px; border-radius: 8px; }
.ot-split-right .q-opt-l { width: 20px; height: 20px; font-size: 12px; }
.ot-split-right .q-input { padding: 7px 10px; font-size: 14px; }
@media (max-width: 900px) {
  .ot-split { flex-direction: column; }
  .ot-split-left { position: static; max-height: none; flex: none; width: 100%; }
}

/* 题目列表 */
.ot-questions { display: flex; flex-direction: column; gap: 12px; }
.q-card { display: flex; gap: 12px; background: #fff; border: 1px solid #e6eaf2; border-radius: 12px; padding: 14px; box-shadow: 0 1px 4px rgba(40,60,90,.04); align-items: flex-start; }
.q-no {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #eaf2ff; color: #2b6cb0;
  font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
/* 题目配图（左） + 选项（右） */
.q-img { flex: 0 0 auto; max-width: 250px; width: 40%; }
.q-img img { width: 100%; border: 1px solid #e6eaf2; border-radius: 8px; box-shadow: 0 2px 8px rgba(40,60,90,.12); cursor: zoom-in; display: block; }
.q-main { flex: 1; min-width: 0; }
/* 图在上、选项在下（听力 Part 1 等宽图） */
.q-card-col { flex-direction: column; align-items: stretch; }
.q-card-col .q-no { margin-bottom: 8px; }
.q-card-col .q-img { width: 100%; max-width: 100%; }
.q-card-col .q-img img { width: 100%; max-height: 320px; object-fit: contain; background: #fbfcfe; }
@media (max-width: 560px) {
  .q-card { flex-wrap: wrap; }
  .q-img { width: 100%; max-width: 100%; }
}
.q-stem { font-size: 14px; line-height: 1.7; color: #2a2f3a; margin-bottom: 10px; font-weight: 500; }

.q-opts { display: flex; flex-direction: column; gap: 8px; }
.q-opt {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left;
  border: 1px solid #d6dce8; background: #fbfcfe; border-radius: 10px; padding: 10px 12px; cursor: pointer; font-size: 14px; color: #333; transition: .12s;
}
.q-opt:hover { border-color: #2b6cb0; background: #f4f8ff; }
.q-opt-l {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: #eef1f6; color: #555;
  font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.q-opt-t { flex: 1; line-height: 1.5; }
.q-opt.sel { border-color: #2b6cb0; background: #e8f1ff; }
.q-opt.sel .q-opt-l { background: #2b6cb0; color: #fff; }
.q-opt.correct { border-color: #27ae60; background: #eafaf0; }
.q-opt.correct .q-opt-l { background: #27ae60; color: #fff; }
.q-opt.wrong { border-color: #e74c3c; background: #fdecea; }
.q-opt.wrong .q-opt-l { background: #e74c3c; color: #fff; }

.q-input {
  width: 100%; max-width: 340px; padding: 10px 12px; border: 1px solid #d6dce8; border-radius: 10px;
  font-size: 15px; color: #333;
}
.q-input:focus { outline: none; border-color: #2b6cb0; }
.q-input.correct { border-color: #27ae60; background: #eafaf0; }
.q-input.wrong { border-color: #e74c3c; background: #fdecea; }

.q-write .q-textarea {
  width: 100%; min-height: 140px; padding: 12px; border: 1px solid #d6dce8; border-radius: 10px;
  font-size: 14px; line-height: 1.7; color: #333; resize: vertical; font-family: inherit;
}
.q-write .q-textarea:focus { outline: none; border-color: #2b6cb0; }
.q-write-meta { font-size: 12px; color: #8a93a5; margin-top: 6px; }

.ot-submit-wrap { margin-top: 20px; text-align: center; }

/* 表格型答题（阅读 Part 2 等 match 题） */
.ot-answer-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e6eaf2; border-radius: 12px; overflow: hidden; }
.ot-answer-table thead th { background: #f7f9fc; color: #445; font-weight: 700; font-size: 14px; padding: 10px 12px; text-align: center; border-bottom: 1px solid #e6eaf2; }
.ot-answer-table tbody td { padding: 12px 14px; border-bottom: 1px solid #eef1f6; font-size: 14px; vertical-align: middle; }
.ot-answer-table tbody tr:last-child td { border-bottom: none; }
.ot-answer-table .at-no { width: 48px; font-weight: 700; color: #2b6cb0; text-align: center; }
.ot-answer-table .at-stem { color: #2a2f3a; line-height: 1.6; }
.ot-answer-table .at-btn {
  width: 40px; height: 34px; border: 1px solid #d6dce8; background: #fff; border-radius: 8px;
  cursor: pointer; font-weight: 700; color: #555; font-size: 14px; display: inline-block; margin: 0 2px;
}
.ot-answer-table .at-btn:hover { border-color: #2b6cb0; }
.ot-answer-table .at-btn.sel { background: #2b6cb0; color: #fff; border-color: #2b6cb0; }
.ot-result { margin-top: 12px; font-size: 14px; color: #555; background: #f0f3f8; border-radius: 10px; padding: 10px 14px; }
.ot-result.ok { background: #eafaf0; color: #1e8449; font-weight: 600; }
.btn-score { background: #27ae60; color: #fff; margin-left: 10px; }
.btn-redo { background: #e67e22; color: #fff; margin-left: 10px; }
.btn-redo:active { transform: scale(.98); }
.ot-score-error { margin-top: 12px; color: #e74c3c; background: #fdecea; border-radius: 10px; padding: 10px 14px; font-size: 14px; }

/* 作文评分面板 */
.ot-write-score { text-align: left; margin-top: 14px; background: #fff; border: 1px solid #e6eaf2; border-radius: 14px; padding: 16px; box-shadow: 0 2px 10px rgba(40,60,90,.06); }
.ws-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.ws-title b { color: #27ae60; }
.ws-tip { font-size: 12px; color: #8a93a5; margin-bottom: 12px; }
.ws-dim { border: 1px solid #eef1f6; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fbfcfe; }
.ws-dim-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.ws-dim-head b { color: #2b6cb0; }
.ws-dim-bar { height: 6px; background: #eef1f6; border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.ws-dim-bar i { display: block; height: 100%; background: linear-gradient(90deg,#27ae60,#2ecc71); }
.ws-dim-rule { font-size: 12.5px; color: #555; line-height: 1.6; margin-bottom: 6px; }
.ws-dim-note { font-size: 12px; color: #8a93a5; line-height: 1.7; }
.ws-dim-note div { padding-left: 8px; position: relative; }
.ws-dim-note div:before { content: '›'; position: absolute; left: 0; color: #b0b9c8; }
.ws-ref { margin-top: 6px; border-top: 1px dashed #e6eaf2; padding-top: 12px; }
.ws-ref-title { font-size: 13px; font-weight: 700; color: #2b6cb0; margin-bottom: 6px; }
.ws-ref-ans { font-size: 13px; background: #f4f8ff; border-radius: 8px; padding: 10px 12px; line-height: 1.7; color: #333; margin-bottom: 8px; font-style: italic; }
.ws-ref-com { font-size: 12.5px; color: #666; line-height: 1.7; }

.btn { display: inline-block; border: none; border-radius: 10px; padding: 11px 22px; font-size: 14px; cursor: pointer; }
.btn-primary { background: #2b6cb0; color: #fff; }
.btn-primary:active { transform: scale(.98); }
.btn-back { border: 1px solid #d6dce8; background: #fff; border-radius: 20px; padding: 7px 14px; font-size: 13px; cursor: pointer; color: #555; white-space: nowrap; }
.btn-back:active { transform: scale(.97); }

/* 顶部"提交整套试卷"按钮换行兜底 */
.ot-top { flex-wrap: wrap; }
#ot-submit-all { white-space: nowrap; }

/* 整套作答结果汇总 */
.ot-whole-result {
  background: linear-gradient(135deg, #eef4ff, #f7faff);
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.ot-whole-result .wr-title { font-size: 16px; font-weight: 700; color: #1f3a6d; margin-bottom: 8px; }
.ot-whole-result .wr-overall { font-size: 15px; color: #333; margin-bottom: 10px; }
.ot-whole-result .wr-overall b { color: #2e7d32; font-size: 18px; }
.ot-whole-result .wr-secs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ot-whole-result .wr-sec {
  background: #fff; border: 1px solid #dbe6ff; border-radius: 10px;
  padding: 6px 12px; font-size: 13px; color: #444; display: flex; gap: 6px; align-items: center;
}
.ot-whole-result .wr-sec b { color: #1f3a6d; }
.ot-whole-result .wr-tip { font-size: 13px; color: #666; }
.ot-whole-result .wr-ok { color: #2e7d32; font-weight: 600; }
.ot-whole-result .wr-no { color: #d32f2f; font-weight: 600; }
