/* === 真题页面专用样式 === */
.exam-header { margin-bottom: 30px; }
.exam-header h1 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 8px; }
.exam-header .exam-meta { font-size: .9rem; color: var(--text-light); }
.exam-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.exam-nav a { padding: 6px 14px; background: var(--white); border-radius: 6px; font-size: .85rem; box-shadow: var(--shadow); }
.exam-nav a:hover { background: var(--primary-light); text-decoration: none; }

.question-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 18px;
  transition: .2s;
}
.question-card .q-num {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-size: .85rem;
  font-weight: 700;
  margin-right: 8px;
}
.question-card .q-type {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: .75rem;
  margin-left: 4px;
}
.question-card .q-text { margin: 12px 0; font-size: .95rem; line-height: 1.8; }
.question-card .q-options { margin: 10px 0 14px; }
.question-card .q-options .opt {
  padding: 10px 14px;
  margin: 5px 0;
  border-radius: 8px;
  font-size: .9rem;
  cursor: pointer;
  transition: .15s;
  border: 2px solid var(--border);
  user-select: none;
}
.question-card .q-options .opt:hover:not(.disabled) {
  border-color: var(--primary);
  background: var(--primary-light);
}
.question-card .q-options .opt.correct {
  border-color: #4caf50;
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 600;
}
.question-card .q-options .opt.correct::after {
  content: " ✓ 正确答案";
  font-size: .8rem;
  margin-left: 8px;
}
.question-card .q-options .opt.wrong {
  border-color: #f44336;
  background: #ffebee;
  color: #c62828;
}
.question-card .q-options .opt.wrong::after {
  content: " ✗";
  font-weight: 700;
  margin-left: 6px;
}
.question-card .q-options .opt.disabled { cursor: default; opacity: .7; }
.question-card .q-options .opt.disabled:hover { border-color: var(--border); background: transparent; }

.q-answer {
  margin-top: 12px;
  padding: 14px 16px;
  background: #f0f4f8;
  border-radius: 8px;
  font-size: .88rem;
  line-height: 1.7;
  display: none;
  border-left: 4px solid var(--primary);
}
.q-answer.show { display: block; }
.q-answer .ans-label { font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.q-answer .exp { color: var(--text-light); margin-top: 6px; }

.q-result {
  margin-top: 8px;
  font-size: .9rem;
  font-weight: 600;
  display: none;
}
.q-result.show { display: inline-block; padding: 4px 12px; border-radius: 6px; }
.q-result.pass { background: #e8f5e9; color: #2e7d32; }
.q-result.fail { background: #ffebee; color: #c62828; }

.btn-toolbar { margin-bottom: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-show-all {
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-show-all:hover { background: #f57f17; }
.btn-reset {
  padding: 10px 24px;
  background: var(--border);
  color: var(--text);
  border: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-reset:hover { background: #ccc; }

.score-bar {
  display: none;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  font-size: 1rem;
}
.score-bar.show { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.score-bar .score-num { font-size: 1.8rem; font-weight: 700; color: var(--primary); }

@media (max-width: 768px) {
  .question-card { padding: 16px; }
  .question-card .q-text { font-size: .9rem; }
  .question-card .q-options .opt { padding: 8px 12px; font-size: .85rem; }
}
