﻿/* 试卷助手 */

.exam-page { padding-bottom: 32px; }

.exam-hero {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(118deg, #2f3eb8 0%, #4f6ef7 52%, #6d8cff 100%);
  box-shadow: 0 12px 28px rgba(55, 80, 200, .22);
}
.exam-hero-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.18);
  flex: none;
}
.exam-hero-ico svg { width: 22px; height: 22px; }
.exam-hero h2 { font-size: 18px; font-weight: var(--fw-semibold); }
.exam-hero p { margin-top: 3px; font-size: 13px; opacity: .9; }

.exam-keep-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.55;
}
.exam-keep-tip svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #ea580c; }
.exam-keep-tip b { font-weight: var(--fw-medium); }

.exam-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.exam-mode {
  text-align: left;
  padding: 14px 14px 12px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1.5px solid rgba(230, 234, 240, .95);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.exam-mode:hover { transform: translateY(-1px); }
.exam-mode.is-on {
  border-color: rgba(79, 110, 247, .55);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, .1), var(--shadow-sm);
  background: linear-gradient(180deg, #f7f9ff, #fff);
}
.exam-mode strong {
  display: block;
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--ink);
}
.exam-mode em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.exam-mode-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 99px;
  background: #eef2ff;
  color: #3d5ce5;
}

.exam-panel {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid rgba(230, 234, 240, .95);
  box-shadow: var(--shadow);
  padding: 18px 16px 16px;
}
.exam-panel .field + .field { margin-top: 12px; }

.exam-score-box {
  margin-bottom: 14px;
  padding: 14px 14px 12px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid rgba(230, 234, 240, .95);
  box-shadow: var(--shadow-sm);
}
.exam-score-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.exam-score-head strong {
  display: block;
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--ink);
}
.exam-score-head p {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.exam-total-field {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.exam-total-field input {
  width: 88px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid rgba(79, 110, 247, .35);
  background: #f7f9ff;
  padding: 0 10px;
  font-size: 17px;
  font-weight: var(--fw-medium);
  color: #3d5ce5;
  text-align: center;
}

.exam-score-table { display: flex; flex-direction: column; gap: 8px; }
.exam-score-row {
  display: grid;
  grid-template-columns: 64px 1fr 1fr 72px;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border-radius: 12px;
  background: #f7f8fb;
  border: 1px solid rgba(230, 234, 240, .9);
}
.exam-score-row.is-essay {
  grid-template-columns: 64px 88px 1fr 72px;
  align-items: start;
}
.exam-score-name {
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--ink);
  padding-bottom: 8px;
}
.exam-score-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}
.exam-score-cell input {
  width: 100%;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 8px;
  font-size: 14px;
  color: var(--ink);
}
.exam-score-cell.is-muted em {
  display: block;
  height: 34px;
  line-height: 34px;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}
.exam-score-sub {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  padding-bottom: 8px;
  white-space: nowrap;
}
.exam-score-sub b {
  color: #3d5ce5;
  font-weight: var(--fw-medium);
}
.exam-essay-scores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.exam-essay-one { max-width: 120px; }

.exam-score-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.exam-score-foot.is-ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.exam-score-foot.is-bad {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}
.exam-score-foot b { font-weight: var(--fw-medium); }

@media (max-width: 420px) {
  .exam-modes { grid-template-columns: 1fr; }
  .exam-score-row,
  .exam-score-row.is-essay {
    grid-template-columns: 1fr 1fr;
  }
  .exam-score-name,
  .exam-score-sub {
    grid-column: 1 / -1;
    padding-bottom: 0;
    text-align: left;
  }
  .exam-essay-scores { grid-template-columns: 1fr; }
}

.exam-drop {
  position: relative;
  min-height: 148px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed #b7c4f0;
  background: linear-gradient(180deg, #f7f8ff, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 14px;
  cursor: pointer;
  color: var(--ink-2);
  text-align: center;
}
.exam-drop svg { width: 26px; height: 26px; color: #4f6ef7; }
.exam-drop strong { font-size: 15px; font-weight: var(--fw-medium); color: var(--ink); }
.exam-drop p { font-size: 13px; color: var(--muted); }
.exam-drop.is-drag {
  border-color: #4f6ef7;
  background: #eef2ff;
}
.exam-file {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5f7fb;
  border: 1px solid var(--line);
}
.exam-file-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #3d5ce5;
  flex: none;
}
.exam-file-ico svg { width: 18px; height: 18px; }
.exam-file-txt { flex: 1; min-width: 0; }
.exam-file-txt strong {
  display: block;
  font-size: 14px;
  font-weight: var(--fw-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.exam-file-txt p { margin-top: 2px; font-size: 12px; color: var(--muted); }

.exam-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.exam-actions .btn { width: 100%; }

.exam-result {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8faff, #fff);
  border: 1px solid rgba(79, 110, 247, .18);
}
.exam-result h3 {
  font-size: 16px;
  font-weight: var(--fw-medium);
  margin-bottom: 6px;
}
.exam-result p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.exam-kps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}
.exam-kps span {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 99px;
  background: #eef2ff;
  color: #3d5ce5;
}
.exam-result-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exam-history { margin-top: 22px; }
.exam-history-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.exam-history-h h3 { font-size: 16px; font-weight: var(--fw-medium); }
.exam-history-h span { font-size: 13px; color: var(--muted); }

.exam-card {
  width: 100%;
  text-align: left;
  padding: 14px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid rgba(230, 234, 240, .95);
  box-shadow: var(--shadow-sm);
}
.exam-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.exam-card-top time { margin-left: auto; font-size: 12px; color: var(--muted); }
.exam-card h4 {
  font-size: 15px;
  font-weight: var(--fw-medium);
  margin-bottom: 4px;
  line-height: 1.4;
}
.exam-card p { font-size: 13px; color: var(--muted); }
.exam-card-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.exam-expire {
  font-size: 12px;
  color: #c2410c;
  background: #fff7ed;
  padding: 2px 8px;
  border-radius: 99px;
}
.exam-mode-chip {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 99px;
  background: #eef2ff;
  color: #3d5ce5;
}

.exam-dl-page {
  text-align: center;
  padding: 28px 16px;
}
.exam-dl-page .form-card { text-align: left; }
.exam-dl-page h2 { font-size: 19px; margin-bottom: 6px; }
.exam-dl-page .hint { font-size: 14px; color: var(--muted); line-height: 1.6; }
