* { box-sizing: border-box; }

:root {
  --primary: #4564d3;
  --primary-hover: #3a56bd;
  --text-dark: #3e3e3e;
  --text-gray: #7f7f7f;
  --line: #e5e5e5;
  --error: #f55858;
  --scale: 1;
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: #f5f7fb;
  -webkit-font-smoothing: antialiased;
}

button, input { font-family: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

/* ---------- 登录页 ---------- */
.login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #fff url("assets/bg.jpg") center center / cover no-repeat;
}

.big-title {
  position: absolute;
  top: 50px;
  left: 76px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 600;
  color: #000;
  letter-spacing: .5px;
}

.big-title img {
  width: 100px;
  height: 30px;
  object-fit: contain;
}

.login-wrap {
  position: absolute;
  top: 52.5%;
  left: 50%;
  z-index: 20;
  width: 1026px;
  transform: translate(-50%, -55%) scale(var(--scale));
  transform-origin: center center;
}

.login-box {
  position: relative;
  width: 1026px;
  height: 540px;
  border-radius: 16px;
  box-shadow: 0 0 23px 0 rgba(0, 0, 0, .15);
}

.login-left {
  position: relative;
  left: 13px;
  float: left;
  width: 526px;
  height: 100%;
  padding-left: 70px;
  border-radius: 16px 0 0 16px;
}

.welcome-cn {
  margin: 140px 0 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 40px;
  color: var(--text-dark);
}

.welcome-en {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 25px;
  color: var(--text-dark);
}

.login-right {
  position: relative;
  right: 13px;
  float: left;
  width: 500px;
  height: 100%;
  padding-top: 65px;
  border-radius: 16px;
  background: #fff;
}

.right-title {
  margin: 0 90px 25px;
  font-size: 22px;
  font-weight: 400;
  color: #424242;
}

.login-form {
  width: 320px;
  margin: 0 auto;
}

.field { margin-bottom: 25px; }

.field label {
  display: block;
  padding-bottom: 5px;
  font-size: 14px;
  color: var(--text-gray);
}

.input-line {
  display: flex;
  align-items: center;
  height: 38px;
  border-bottom: 1px solid var(--line);
  transition: border-color .2s ease;
}

.input-line:focus-within { border-color: rgba(2, 92, 192, .46); }
.field.invalid .input-line { border-color: var(--error); }

.input-line input {
  flex: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: #333;
}

.input-line input::placeholder { color: #b8b8b8; }

.eye-btn {
  display: flex;
  align-items: center;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #9a9a9a;
}

.eye-btn:hover { color: var(--primary); }

.captcha-canvas {
  width: 80px;
  height: 32px;
  margin-left: 18px;
  border: 0;
  cursor: pointer;
  vertical-align: middle;
}

.error-tip {
  display: none;
  padding-top: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--error);
}

.field.invalid .error-tip { display: block; }

.btn-row {
  margin-top: 25px;
  text-align: center;
}

.submit-btn {
  width: 100%;
  height: 40px;
  border: 1px solid var(--primary);
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
  transition: opacity .2s ease, background .2s ease;
}

.submit-btn:hover { background: var(--primary-hover); opacity: .95; }
.submit-btn:disabled { opacity: .65; cursor: not-allowed; }

/* ---------- 通用后台页 ---------- */
.exam-page { min-height: 100vh; background: #f3f3f3; }

/* ===== 答题页：1:1 复刻 UOM 官方答题页 (数据源 data-v-7bb29fe6 / data-v-dfee5f36) ===== */
.quiz-page {
  min-height: 100vh;
  background: #f3f3f3;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 20px;
  background: #0c3468;
  color: #fff;
  font-size: 16px;
}
.quiz-header-left, .quiz-header-right { display: flex; align-items: center; gap: 0; }
.quiz-logo { width: 70px; height: 24px; border-radius: 0; background: transparent; }
.quiz-header-title {
  font-size: 20px;
  color: #fff;
  vertical-align: top;
  margin-left: 8px;
  font-family: "Microsoft YaHei", sans-serif;
}
.quiz-header-right { display: none; }

/* 主容器：官方 .main width1300px margin-top20 居中 */
.quiz-layout {
  display: grid;
  grid-template-columns: 272px calc(100% - 576px) 272px;
  gap: 16px;
  width: 1300px;
  margin: 20px auto 0;
  align-items: start;
}

.quiz-side, .quiz-center, .answer-card {
  background-color: #fff;
  border-radius: 4px;
}

/* ---- 左卡 .left_tool：272×313 / padding16 / 居中 ---- */
.quiz-side {
  width: 272px;
  height: 313px;
  box-sizing: border-box;
  padding: 16px;
  text-align: center;
}
/* .examMan h3 38px/32行高/19px/500 */
.side-user {
  margin: 0;
  height: 38px;
  line-height: 32px;
  font-size: 19px;
  font-family: "PingFangSC-Medium", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  color: #0f0f0f;
}
/* .totalScore 17px/12px/#424242 */
.side-score {
  margin: 0;
  height: 17px;
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  color: #424242;
}
/* .left_tool_time 114px / #f4f8fc / margin-top20 / padding-top20 */
.timer-box {
  width: 100%;
  height: 114px;
  box-sizing: border-box;
  margin-top: 20px;
  padding-top: 20px;
  border-radius: 4px;
  background: #f4f8fc;
}
/* .totalTime 20px/14px/#0f0f0f */
.timer-box p {
  margin: 0;
  height: 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #0f0f0f;
}
/* .remainingTime 33px/24px/500/#f55858/margin-top20 */
.timer {
  display: block;
  height: 33px;
  margin-top: 20px;
  font-size: 24px;
  font-family: "PingFangSC-Medium", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  line-height: 33px;
  color: #f55858;
}
/* .submitBtn 38px / margin-top40 bottom40 / #005791 */
.submit-paper {
  width: 100%;
  height: 38px;
  margin-top: 40px;
  margin-bottom: 40px;
  border: 0;
  border-radius: 4px;
  background: #005791;
  color: #fff;
  font-size: 15px;
}
.submit-paper:hover { background: #005791; opacity: .9; }

/* ---- 中卡 .mid_subject：padding-left40 / padding-right10 / 100%高 ---- */
.quiz-center {
  height: calc(100vh - 86px);
  min-height: 600px;
  box-sizing: border-box;
  padding: 0 10px 0 40px;
  overflow-y: auto;
}
.quiz-center::-webkit-scrollbar,
.answer-card::-webkit-scrollbar { width: 8px; }
.quiz-center::-webkit-scrollbar-track-piece,
.answer-card::-webkit-scrollbar-track-piece { background-color: #fff; }
.quiz-center::-webkit-scrollbar-thumb:vertical,
.answer-card::-webkit-scrollbar-thumb:vertical { background-color: #8c8c8c; border-radius: 4px; }

/* h3.examTitle 23px/500/行高36/margin-top20 bottom40 */
.paper-title {
  margin: 20px 0 40px;
  text-align: center;
  font-size: 23px;
  font-family: "PingFangSC-Medium", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  line-height: 36px;
  color: #0f0f0f;
}
/* .model-title-cs span：16px / 蓝竖线 border-left3px #005791 / padding-left10 / line17 */
.paper-stat {
  display: inline-block;
  margin: 0 0 20px;
  padding: 0 0 7px 10px;
  border-left: 3px solid #005791;
  font-size: 16px;
  font-family: "PingFangSC-Regular", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  line-height: 17px;
  height: 19px;
  color: #0f0f0f;
}
/* .subject margin-bottom15 */
.question {
  margin-bottom: 15px;
  padding: 0;
  border: 0;
}
/* .sub_title 16px/700/行高34/margin-bottom10 */
.question-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-family: "PingFangSC-Medium", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  line-height: 34px;
  color: #0f0f0f;
}
.question-no { margin-right: 4px; color: #0f0f0f; font-weight: 700; }
/* .sub_select padding-left25 */
.options { padding-left: 25px; }
/* .ivu-radio-wrapper 15px/行高30/padding-left25 */
.option {
  display: block;
  position: relative;
  padding: 0 0 0 25px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  font-family: "PingFangSC-Regular", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  line-height: 30px;
  color: #0f0f0f;
  white-space: normal;
  cursor: pointer;
}
.option:hover { background: transparent; }
.option.selected,
.option:has(input:checked) { color: #005791; background: transparent; border: 0; }
/* radio：官方 .ivu-radio absolute left0 margin-top7, inner 16px 圆 */
.option input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  margin: 0 5px 0 0;
  border: 1px solid #dcdee2;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.option input[type="radio"]:checked { border-color: #005791; }
.option input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 6px;
  background: #005791;
}

/* ---- 右卡 .right_sheet：272 / padding15 / box-shadow ---- */
.answer-card {
  width: 272px;
  box-sizing: border-box;
  padding: 15px;
  box-shadow: 0 0 2px #ddd;
}
/* .right_sheet_title 38px/32行/19px/700 */
.answer-card h2 {
  margin: 0;
  height: 38px;
  line-height: 32px;
  text-align: center;
  font-size: 19px;
  font-family: "PingFangSC-Medium", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  color: #0f0f0f;
}
/* .right_sheet_progress 77px / padding-top15 left16 right16 / margin-top10 */
.progress-box {
  height: 77px;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 15px 16px 0;
  border-radius: 4px;
  background: #f4f8fc;
}
/* .progressLabel margin-bottom5 / .progressLabelSpan float right 12px #7f7f7f */
.progress-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 14px;
  color: #0f0f0f;
}
.progress-row span:last-child {
  font-size: 12px;
  font-weight: 400;
  color: #7f7f7f;
}
/* ivu-progress-inner #fff / bg #56ba3e / height5 */
.progress-track {
  height: 5px;
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
}
.progress-fill {
  width: 0;
  height: 100%;
  background: #56ba3e;
  transition: width .2s ease;
}
/* .right_sheet_legend border-bottom / p float 33.3% height52 line52 */
.legend {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5e5e5;
  font-size: 14px;
  color: #0f0f0f;
}
.legend > span {
  flex: 1;
  text-align: center;
  height: 52px;
  line-height: 52px;
}
/* .legend 12×12 */
.legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 3px;
  border-radius: 1px;
  position: relative;
  top: 1px;
  vertical-align: middle;
}
.legend-done { background: #005791; }                     /* legend1 */
.legend-current { border: 2px solid #9acd32; background: #fff; } /* legend2 */
.legend-none { background: #dde3ea; }                     /* legend3 */
/* .right_sheet_sectitle 14px/高20/margin-top20 bottom20 */
.answer-head {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  padding-right: 6px;
  height: 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #0f0f0f;
}
.answer-head span:last-child { font-size: 12px; color: #7f7f7f; }
/* .right_sheet_block inline-block 29×24 / margin-right10 bottom12 / 12px */
.answer-grid {
  display: block;
  font-size: 0;
}
.qnum {
  display: inline-block;
  width: 29px;
  height: 24px;
  box-sizing: border-box;
  padding: 0;
  margin: 0 10px 12px 0;
  border: 1px solid transparent;
  border-radius: 1px;
  background: #dde3ea;
  color: #7f7f7f;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  vertical-align: top;
}
.qnum.answered { background: #005791; color: #fff; }
.qnum.current { border: 2px solid #9acd32; background: #fff; color: #7f7f7f; line-height: 20px; }
.qnum:hover { border-color: #9acd32; }

/* ---------- 登录后考试须知页 ---------- */
.notice-page {
  min-height: 100vh;
  background: #fff;
}

.notice-banner {
  height: 210px;
  background: url("assets/uom_banner.png") center center / cover no-repeat;
}

.notice-main {
  position: relative;
  height: calc(100vh - 210px);
  min-height: 480px;
}

.notice-card {
  position: absolute;
  left: 50%;
  top: 2.5%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 330px calc(100% - 330px);
  width: 1032px;
  max-width: calc(100vw - 40px);
  height: 71.8%;
  min-height: 480px;
  max-height: 590px;
  background: #fff url("assets/uom_exam_card.png") center center / 100% 100% no-repeat;
  border-radius: 8px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, .08);
}

.notice-left {
  padding: 42px 35px 35px 42px;
  overflow: hidden;
}

.notice-left h2 {
  margin: 0 0 6.5%;
  font-size: 16px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  color: #0f0f0f;
}

.notice-left p {
  margin: 0 0 7px;
  font-size: 12px;
  line-height: 1.6;
  color: #333;
}

.agree-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2.5%;
  font-size: 12px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #0f0f0f;
  cursor: pointer;
}

.agree-row input {
  flex: none;
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #2f6fb5;
}

.notice-right {
  padding: 64px 110px;
  overflow: hidden;
}

.notice-right h2 {
  margin: 0 0 5%;
  text-align: center;
  font-size: 22px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  line-height: 1.4;
  color: #0f0f0f;
}

.candidate-info {
  display: block;
  margin: 0 0 10%;
  text-align: center;
  font-size: 16px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #555;
}

.candidate-info span { margin-right: 20px; }

.candidate-info b { font-weight: 400; }

.subject-entry-label { margin-top: 2px; }

.exam-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(28px * var(--quiz-scale, 1));
  padding: 0 calc(10px * var(--quiz-scale, 1));
  border: 1px solid #2f6fb5;
  border-radius: calc(3px * var(--quiz-scale, 1));
  font-size: calc(9px * var(--quiz-scale, 1));
  color: #333;
  overflow: hidden;
}

.exam-row::after {
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 calc(12px * var(--quiz-scale, 1)) calc(12px * var(--quiz-scale, 1)) 0;
  border-style: solid;
  border-color: transparent #e1251b transparent transparent;
  content: "";
}

.exam-name { font-weight: 600; }
.exam-time { color: #e1251b; margin-right: calc(8px * var(--quiz-scale, 1)); }
.exam-date { color: #e1251b; }

.notice-start {
  width: 100%;
  height: calc(30px * var(--quiz-scale, 1));
  margin-top: calc(34px * var(--quiz-scale, 1));
  border: 0;
  border-radius: calc(3px * var(--quiz-scale, 1));
  background: #0d4f91;
  color: #fff;
  font-size: calc(10px * var(--quiz-scale, 1));
}

.notice-start:hover { background: #0a3f75; }

/* ---------- 错题集 ---------- */
.wrong-entry {
  display: block;
  margin: calc(12px * var(--quiz-scale, 1)) auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f6fb5;
  font-size: calc(10px * var(--quiz-scale, 1));
  text-decoration: underline;
}

.wrong-page { min-height: 100vh; background: #f4f6fa; }

.wrong-main {
  width: min(760px, calc(100% - 32px));
  margin: 24px auto;
}

.wrong-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}

.wrong-toolbar h2 { margin: 0; font-size: 16px; color: #303133; }
.wrong-toolbar h2 span { color: #e1251b; }
.wrong-toolbar div { display: flex; gap: 10px; }

.wrong-toolbar button {
  padding: 6px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  font-size: 12px;
}

.wrong-toolbar button:hover { border-color: #4564d3; color: #4564d3; }
.wrong-toolbar button.review-wrong { background: #2f6fb5; border-color: #2f6fb5; color: #fff; }
.wrong-toolbar button.review-wrong:hover { background: #245b96; border-color: #245b96; color: #fff; }

.wrong-item {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}

.wrong-item-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #909399;
}

.wrong-title { margin: 12px 0; font-size: 14px; font-weight: 600; line-height: 1.6; color: #303133; }
.wrong-options { display: grid; gap: 8px; }

.wrong-option {
  padding: 8px 12px;
  border-radius: 4px;
  background: #f7f8fa;
  font-size: 13px;
  line-height: 1.6;
  color: #606266;
}

.wrong-option.correct { background: #eaf7ee; color: #2e7d4f; }
.wrong-option.chosen { background: #fff0f0; color: #c0392b; }

.wrong-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  background: #34a465;
  color: #fff;
  font-size: 10px;
}

.wrong-tag.chosen-tag { background: #f55858; }

.wrong-empty {
  margin-top: 14px;
  padding: 60px 20px;
  border-radius: 6px;
  background: #fff;
  text-align: center;
  color: #909399;
  font-size: 14px;
}

/* ---------- 考试中心 ---------- */
.mode-page { min-height: 100vh; background: #fff; }

.mode-main {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: calc(28px * var(--quiz-scale, 1)) 0 40px;
}

.mode-main h1 {
  margin: 0 0 20px;
  font-size: 20px;
  color: #303133;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 120px;
  padding: 20px 22px;
  border: 1px solid #dfe5ee;
  border-radius: 6px;
  background: #fff;
  text-align: left;
  box-shadow: 0 2px 8px rgba(30, 50, 90, .05);
  transition: border-color .15s ease, transform .15s ease;
}

.mode-card:hover:not(.disabled) { border-color: #4564d3; transform: translateY(-2px); }
.mode-card strong { font-size: 16px; color: #303133; }
.mode-card span { font-size: 14px; color: #4564d3; }
.mode-card em { font-size: 12px; font-style: normal; color: #909399; line-height: 1.6; }
.mode-card.primary { border-color: #4564d3; background: #f7f9ff; }
.mode-card.disabled { opacity: .55; cursor: not-allowed; background: #f5f6f8; }
.mode-card.disabled span { color: #909399; }

.answer-card.practice { overflow-y: auto; }
.answer-card.practice .answer-grid { grid-template-columns: repeat(5, 1fr); gap: 3px 2px; }
.answer-card.practice .qnum {
  height: 17px;
  font-size: 8px;
  line-height: 15px;
  letter-spacing: 0;
  overflow: visible;
}

.option.correct {
  padding: 2px 6px;
  border-radius: 3px;
  background: #eaf7ee;
  color: #2e7d4f;
}

.option.wrong-answer {
  padding: 2px 6px;
  border-radius: 3px;
  background: #fff0f0;
  color: #c0392b;
}

.mode-card.wrong { min-height: 96px; background: #fffaf5; border-color: #f0d9bd; }
.mode-card.wrong span { color: #d98324; }

/* ---------- 导航首页 ---------- */
.home-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #fff url("assets/bg.jpg") center center / cover no-repeat;
}

.home-main {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 120px 20px 60px;
}

.home-panel {
  width: min(720px, 100%);
  padding: 38px 40px 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
  text-align: center;
}

.home-heading {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 600;
  color: #12386f;
}

.home-sub {
  margin: 0 0 28px;
  font-size: 14px;
  color: #7f7f7f;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.home-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 22px;
  border: 1px solid #dbe4f2;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.home-card:hover {
  transform: translateY(-4px);
  border-color: #4564d3;
  box-shadow: 0 8px 24px rgba(40, 70, 130, .16);
}

.home-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #eef3ff;
  color: #4564d3;
}

.home-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: #303133;
}

.home-card p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #7f7f7f;
}

.home-card-status {
  display: inline-block;
  margin-bottom: 18px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #eaf6ef;
  color: #2e8b57;
  font-size: 12px;
}

.home-card-soon .home-card-icon { background: #f2f3f5; color: #909399; }
.home-card-soon .home-card-status { background: #f4f4f5; color: #909399; }

.home-card-enter {
  font-size: 14px;
  color: #4564d3;
}

.home-card-enter b {
  margin-left: 4px;
  font-size: 16px;
}

.home-card-soon .home-card-enter { color: #606266; }

.home-foot {
  margin: 26px 0 0;
  font-size: 12px;
  color: #a0a0a0;
}

@media (max-width: 640px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-panel { padding: 28px 20px 24px; }
}

/* ---------- 须知页：综合问答 / 理论考试 入口 ---------- */
.subject-entry-label {
  margin: 0 0 calc(7px * var(--quiz-scale, 1));
  font-size: calc(8.5px * var(--quiz-scale, 1));
  color: #8a9099;
}

.subject-entries {
  display: grid;
  gap: 18px;
  margin-top: 5.5%;
}

.subject-entry {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  padding: 0 20px 0 12px;
  border: 1px solid #528db4;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 7px rgba(198, 198, 198, .5);
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}

.subject-entry::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: url("assets/uom_corner.png") center / contain no-repeat;
  content: "";
}

.subject-entry:hover { background: #f7faff; }

.subject-entry.selected { background: #f5f9ff; }

.se-name {
  display: inline-block;
  width: 62%;
  font-size: 14px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  color: #424242;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subject-entry.selected .se-name { color: #1d4e8f; font-weight: 600; }

.se-desc {
  float: right;
  width: 35%;
  margin-left: 0;
  font-size: 14px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  color: #f55858;
  text-align: right;
}

.se-arrow { display: none; }

/* ---------- 须知页：顺序刷题 / 错题集 快捷入口 ---------- */
.notice-tip {
  margin: calc(12px * var(--quiz-scale, 1)) 0 calc(8px * var(--quiz-scale, 1));
  text-align: center;
  font-size: calc(8px * var(--quiz-scale, 1));
  color: #a0a8b5;
}

.notice-links {
  display: flex;
  justify-content: center;
  gap: calc(24px * var(--quiz-scale, 1));
}

.notice-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f6fb5;
  font-size: calc(9px * var(--quiz-scale, 1));
  text-decoration: underline;
}

.notice-links button:hover { color: #12386f; }

/* ===== 官方整包答题页 iframe 层（1:1 复刻，CSS 隔离） ===== */
#officialQuizLayer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #f3f3f3;
}
#officialQuizLayer.hidden { display: none !important; }
#officialQuizFrame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* 悬浮返回：作为随时可退出的兜底，低调不抢眼，避免破坏官方页 1:1 观感 */
#officialQuizBack {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #d0d7e2;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  color: #7f8c9b;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  opacity: .35;
  transition: opacity .2s, background .2s;
  overflow: hidden;
  white-space: nowrap;
}
#officialQuizBack:hover { opacity: 1; background: #fff; }
