/* 全局通用样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}

body {
  background: #f5f5f5;
  padding: 20px;
  color: #333;
}

/* 表头样式 */
.header {
  text-align: center;
  padding: 10px 0;
  margin-bottom: 15px;
}

.header a {
  color: #2385bb;
  text-decoration: none;
}

.header a:hover {
  text-decoration: underline;
}

/* 备案号样式 */
.tips {
  text-align: center;
  padding: 20px 0;
  margin-top: 30px;
  font-size: 12px;
  color: #666;
}

.tips a {
  color: #666;
  text-decoration: none;
}

.tips a:hover {
  text-decoration: underline;
}

/* 核心区块样式（配置/答题区） */
.config-section,
.exam-section {
  max-width: 700px;
  margin: 0 auto 20px;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h3 {
  color: #2385bb;
  margin-bottom: 20px;
  font-size: 18px;
}

/* 配置项样式 */
.config-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.config-item input[type="number"] {
  width: 70px;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

/* 按钮通用样式 */
button {
  padding: 10px 20px;
  background: #2385bb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 5px;
  transition: background 0.2s;
}

button:hover {
  background: #1a6999;
}

.btn-group {
  margin-top: 20px;
}

/* 隐藏类（最高优先级） */
.hidden {
  display: none !important;
}

/* 题目样式 */
.question-item {
  padding: 15px;
  border-left: 4px solid #ddd;
  margin: 10px 0;
  background: #fafafa;
  border-radius: 0 4px 4px 0;
}

.correct-question {
  border-left-color: #4CAF50;
}

.incorrect-question {
  border-left-color: #f44336;
}

.unanswered-question {
  border-left-color: #999;
}

.question-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 15px;
}

.option-item {
  margin: 8px 0;
  font-size: 14px;
}

/* 状态标签 */
.status-tag {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
}

.status-correct {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-incorrect {
  background: #ffebee;
  color: #c62828;
}

.status-unanswered {
  background: #f5f5f5;
  color: #666;
}

/* 正确答案标识 */
.correct-answer {
  color: #4CAF50;
  font-size: 12px;
  margin-left: 10px;
  font-weight: bold;
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal {
  background: #fff;
  width: 90%;
  max-width: 450px;
  border-radius: 10px;
  overflow: hidden;
}

.modal-header {
  background: #2385bb;
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-modal {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.modal-body {
  padding: 30px;
  text-align: center;
}

.score-box {
  width: 120px;
  height: 120px;
  background: #2385bb;
  color: #fff;
  border-radius: 50%;
  line-height: 120px;
  font-size: 40px;
  margin: 0 auto 20px;
  position: relative;
}

.score-box p {
  font-size: 14px;
  color: #fff;
  line-height: 1;
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
}

.score-detail {
  text-align: left;
  margin-top: 20px;
  line-height: 2;
  font-size: 14px;
}

.modal-footer {
  padding: 15px;
  text-align: center;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

#show-detail {
  background: #4CAF50 !important;
}

#show-detail:hover {
  background: #388E3C !important;
}