/* 考试模式：页面标题 */

.exam-page-heading {
  margin-top: 12px;
}

.exam-page-heading h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
}

.exam-shell .exam-level-section {
  margin-top: 24px;
}

.exam-section-heading {
  margin-bottom: 16px;
}

.exam-section-heading h2 {
  margin: 0;
  font-size: 21px;
}

/* 考试模式：板块标题下的介绍 */

.exam-section-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}


/* 按水平模拟考试：水平切换 */

.exam-level-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--blue-soft);
}

.exam-level-switch button {
  min-height: 44px;
  padding: 10px 4px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.exam-level-switch button[aria-pressed="true"] {
  color: var(--navy-dark);
  background: var(--card);
  box-shadow: 0 3px 10px rgba(68, 101, 153, 0.1);
}

.exam-level-switch button:focus-visible {
  outline: 3px solid var(--navy-dark);
  outline-offset: 2px;
}


/* 按水平模拟考试：水平说明 */

.exam-level-description {
  margin: 22px 2px 16px;
}

.exam-level-description h3 {
  margin: 0;
  font-size: 18px;
}

.exam-level-description p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}


/* 按水平模拟考试：试卷列表 */

.exam-paper-list {
  display: grid;
  gap: 12px;
}

.exam-paper-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 19px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.exam-paper-content {
  min-width: 0;
}

.exam-paper-content h3 {
  margin: 0;
  font-size: 17px;
}

.exam-paper-content p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.exam-entry-status {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}


/* 专项测试：四张横向卡片 */

.exam-skill-list {
  display: grid;
  gap: 12px;
}

.exam-skill-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.exam-skill-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: var(--blue-soft);
  font-size: 23px;
}

.exam-skill-content {
  min-width: 0;
}

.exam-skill-content h3 {
  margin: 0;
  font-size: 18px;
}

.exam-skill-content p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}


/* 考试模式：较窄手机屏幕 */

@media (max-width: 380px) {
  .exam-skill-card {
    gap: 10px;
    padding: 16px 12px;
  }

  .exam-skill-icon {
    width: 38px;
    height: 38px;
    font-size: 21px;
  }

  .exam-paper-card {
    gap: 10px;
    padding: 17px 14px;
  }
}

/* 正式考试页面：教师内容预览 */

.exam-content-preview {
  margin-top: 32px;
}

.exam-content-preview > h2 {
  font-size: 22px;
}

.exam-preview-section-title {
  margin: 30px 0 14px;
  color: var(--navy-dark);
  line-height: 1.4;
}

.exam-preview-exercise {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.exam-preview-exercise > summary {
  padding: 17px 18px;
  font-weight: 700;
  cursor: pointer;
}

.exam-preview-exercise > summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.exam-preview-exercise[open] > summary {
  border-bottom: 1px solid var(--line);
}

.exam-preview-body {
  padding: 20px;
}

.exam-preview-document {
  margin: 20px 0;
  padding: 18px;
  border-left: 3px solid var(--navy-dark);
  border-radius: 4px 12px 12px 4px;
  background: var(--blue-soft);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.exam-preview-questions {
  margin: 0;
  padding-left: 22px;
}

.exam-preview-questions > li {
  margin-top: 22px;
  padding-left: 4px;
}

.exam-preview-questions > li > p {
  margin-bottom: 9px;
}

.exam-preview-points {
  display: inline-block;
  margin-left: 5px;
  color: var(--navy-dark);
  font-size: 13px;
  white-space: nowrap;
}

.exam-preview-options {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exam-preview-options li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.exam-preview-answer-hint {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.exam-preview-fields {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.exam-preview-fields li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 380px) {
  .exam-preview-body {
    padding: 15px;
  }
}