/* ==========================================================================
   Chrome 61 基线层 + 能力检测增强层 (supports-flex-gap / @supports)
   ========================================================================== */

:root {
  --app-height: 100vh;
  --primary: #10318c;
  --primary-hover: #0c2768;
  --primary-light: #1d4ed8;
  --bg-page: #eef2fb;
  --bg-card: #ffffff;
  --border-color: #c9d6f2;
  --border-soft: #e3eaf9;
  --amber: #f59e0b;
  --amber-hover: #d97706;
  --emerald: #10b981;
  --emerald-dark: #0f7b4d;
  --rose: #f43f5e;
  --rose-dark: #9f1239;
  --text-main: #1e293b;
  --text-sub: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
}

.app-shell {
  min-height: 100vh;
  min-height: var(--app-height, 100vh);
  display: flex;
  flex-direction: column;
  background-color: #eef2fb;
  color: #1e293b;
}

.share-shell {
  min-height: 100vh;
  min-height: var(--app-height, 100vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #10318c;
  background-image: linear-gradient(180deg, #10318c 0%, #14399e 50%, #1d4ed8 100%);
  padding-top: 24px;
  padding-top: calc(24px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
  padding-right: 16px;
  padding-bottom: 32px;
  padding-bottom: calc(32px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  padding-left: 16px;
}

/* ---------- 滚动与文本选择 ---------- */
.scroll-container {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.selectable-text {
  -webkit-user-select: text;
  user-select: text;
  cursor: text;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ---------- 顶部栏与安全区 ---------- */
.top-header {
  background-color: #10318c;
  color: #ffffff;
  padding-top: 0;
  padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
}

.sticky-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #10318c;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 49, 140, 0.18);
  padding-top: 0;
  padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
}

.header-bar {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-bar-wide {
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-row {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.brand-row > * + * {
  margin-left: 8px;
}

.supports-flex-gap .brand-row {
  column-gap: 8px;
}

.supports-flex-gap .brand-row > * + * {
  margin-left: 0;
}

/* ---------- 通用布局容器 ---------- */
.main-container {
  width: 100%;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px 16px 36px;
  padding-bottom: calc(36px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

.result-container {
  width: 100%;
  max-width: 896px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px 16px 40px;
  padding-bottom: calc(40px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

.exam-layout {
  width: 100%;
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  padding: 16px 12px;
}

.exam-layout > * + * {
  margin-left: 16px;
}

.supports-flex-gap .exam-layout {
  column-gap: 16px;
}

.supports-flex-gap .exam-layout > * + * {
  margin-left: 0;
}

.exam-main {
  flex: 1 1 0%;
  min-width: 0;
}

.exam-aside {
  display: none;
  width: 260px;
  flex-shrink: 0;
}

/* ---------- 卡片与區塊 ---------- */
.card-box {
  background-color: #ffffff;
  border: 1px solid #c9d6f2;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(16, 49, 140, 0.05);
}

.card-box + .card-box {
  margin-top: 20px;
}

.hero-banner {
  background-color: #10318c;
  background-image: linear-gradient(90deg, #10318c 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 18px 20px;
  border-bottom: 1px solid #e3eaf9;
}

.hero-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.hero-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: #bfdbfe;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #e3eaf9;
}

.stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  text-align: center;
  border-right: 1px solid #e3eaf9;
  border-bottom: 1px solid #e3eaf9;
}

.stat-cell:nth-child(2n) {
  border-right: none;
}

.stat-cell:nth-last-child(-n+2) {
  border-bottom: none;
}

.stat-value {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
}

.notice-section {
  padding: 18px 20px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.notice-list {
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

.notice-list li + li {
  margin-top: 4px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  padding: 9px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  background-color: #10318c;
  color: #ffffff;
}

.btn > * + * {
  margin-left: 6px;
}

.supports-flex-gap .btn {
  column-gap: 6px;
}

.supports-flex-gap .btn > * + * {
  margin-left: 0;
}

.btn:focus {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.btn:active {
  opacity: 0.82;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-lg {
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 8px;
}

.btn-sm {
  font-size: 12px;
  padding: 6px 12px;
}

.btn-block {
  width: 100%;
}

.btn-amber {
  background-color: #f59e0b;
  color: #ffffff;
}

.btn-emerald {
  background-color: #059669;
  color: #ffffff;
}

.btn-outline {
  background-color: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

.btn-outline-primary {
  background-color: #ffffff;
  border-color: #10318c;
  color: #10318c;
}

.btn-ghost-white {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

@media (hover: hover) {
  .btn:hover:not(:disabled) {
    background-color: #0c2768;
  }
  .btn-amber:hover:not(:disabled) {
    background-color: #d97706;
  }
  .btn-emerald:hover:not(:disabled) {
    background-color: #047857;
  }
  .btn-outline:hover:not(:disabled) {
    background-color: #f8fafc;
    border-color: #94a3b8;
  }
  .btn-outline-primary:hover:not(:disabled) {
    background-color: #eef3ff;
  }
  .btn-ghost-white:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.24);
  }
}

/* ---------- 历史考试记录 ---------- */
.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #e3eaf9;
}

.history-title-wrap {
  display: flex;
  align-items: center;
}

.history-title-wrap > * + * {
  margin-left: 8px;
}

.supports-flex-gap .history-title-wrap {
  column-gap: 8px;
}

.supports-flex-gap .history-title-wrap > * + * {
  margin-left: 0;
}

.history-list {
  list-style: none;
}

.history-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #eef2fb;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.history-item:last-child {
  border-bottom: none;
}

.history-item > * + * {
  margin-left: 12px;
}

.supports-flex-gap .history-item {
  column-gap: 12px;
}

.supports-flex-gap .history-item > * + * {
  margin-left: 0;
}

.history-item:active {
  background-color: #eef3ff;
}

@media (hover: hover) {
  .history-item:hover {
    background-color: #f6f9ff;
  }
}

.score-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.score-pass {
  background-color: #10b981;
}

.score-fail {
  background-color: #f43f5e;
}

.badge-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge-pass {
  background-color: #ecfdf5;
  color: #059669;
}

.badge-fail {
  background-color: #fff1f2;
  color: #e11d48;
}

/* ---------- 答题页样式 ---------- */
.timer-box {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.12);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.timer-box > * + * {
  margin-left: 6px;
}

.supports-flex-gap .timer-box {
  column-gap: 6px;
}

.supports-flex-gap .timer-box > * + * {
  margin-left: 0;
}

.timer-urgent {
  background-color: #e11d48;
  animation: pulse-bg 1.2s infinite ease-in-out;
}

@keyframes pulse-bg {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.progress-track {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.16);
  width: 100%;
}

.progress-fill {
  height: 100%;
  background-color: #f59e0b;
  transition: width 0.25s ease;
}

.question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e3eaf9;
}

.q-type-badge {
  background-color: #10318c;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
}

.mark-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  color: #94a3b8;
  cursor: pointer;
}

.mark-btn > * + * {
  margin-left: 4px;
}

.supports-flex-gap .mark-btn {
  column-gap: 4px;
}

.supports-flex-gap .mark-btn > * + * {
  margin-left: 0;
}

.mark-btn.is-marked {
  background-color: #fffbeb;
  color: #d97706;
  border-color: #fde68a;
}

.question-body {
  padding: 16px;
}

.question-stem {
  font-size: 15px;
  line-height: 1.7;
  color: #1e293b;
  word-break: break-word;
}

.question-stem p {
  margin: 4px 0;
}

.question-stem table {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  font-size: 13.5px;
}

.question-stem td,
.question-stem th {
  border: 1px solid #c9d6f2;
  padding: 6px 8px;
  text-align: center;
  vertical-align: top;
}

.question-stem tr:first-child td,
.question-stem thead td {
  background-color: #eef3ff;
  font-weight: 600;
  color: #10318c;
}

.question-stem img {
  display: block;
  max-width: 100%;
  height: auto;
}

.options-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}

.options-list > * + * {
  margin-top: 10px;
}

.supports-flex-gap .options-list {
  row-gap: 10px;
}

.supports-flex-gap .options-list > * + * {
  margin-top: 0;
}

.option-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.option-btn > * + * {
  margin-left: 12px;
}

.supports-flex-gap .option-btn {
  column-gap: 12px;
}

.supports-flex-gap .option-btn > * + * {
  margin-left: 0;
}

.option-btn:focus {
  outline: 2px solid #10318c;
  outline-offset: 1px;
}

.option-btn:active {
  background-color: #eef3ff;
}

.option-btn.is-selected {
  border-color: #10318c;
  background-color: #eef3ff;
}

@media (hover: hover) {
  .option-btn:hover:not(.is-selected) {
    border-color: #9db4e8;
    background-color: #f8faff;
  }
}

.option-letter {
  margin-top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}

.option-btn.is-selected .option-letter {
  border-color: #10318c;
  background-color: #10318c;
  color: #ffffff;
}

.option-text {
  flex: 1 1 0%;
  min-width: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
}

.question-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid #e3eaf9;
}

/* ---------- 答题卡网格 ---------- */
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.sheet-cell {
  position: relative;
  height: 38px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sheet-cell.is-done {
  border-color: #10318c;
  background-color: #10318c;
  color: #ffffff;
}

.sheet-cell.is-current {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #f59e0b;
}

.sheet-flag {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #f59e0b;
  border: 2px solid #ffffff;
}

.sheet-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}

.sheet-legend > * + * {
  margin-left: 12px;
}

.supports-flex-gap .sheet-legend {
  column-gap: 12px;
  row-gap: 4px;
}

.supports-flex-gap .sheet-legend > * + * {
  margin-left: 0;
}

.legend-item {
  display: inline-flex;
  align-items: center;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 4px;
}

/* ---------- 移动端底部固定栏 ---------- */
.mobile-bottom-bar {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #dbe4f3;
  padding-top: 8px;
  padding-right: 12px;
  padding-left: 12px;
  padding-bottom: 8px;
  padding-bottom: calc(8px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .mobile-bottom-bar {
    background-color: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.mobile-bottom-bar > * + * {
  margin-left: 10px;
}

.supports-flex-gap .mobile-bottom-bar {
  column-gap: 10px;
}

.supports-flex-gap .mobile-bottom-bar > * + * {
  margin-left: 0;
}

.mobile-bottom-bar > .btn {
  flex: 1 1 0%;
}

/* ---------- 成绩页样式 ---------- */
.result-hero {
  padding: 24px 20px;
  text-align: center;
  color: #ffffff;
}

.result-hero.is-pass {
  background-color: #0f7b4d;
  background-image: linear-gradient(135deg, #0f7b4d 0%, #16a34a 100%);
}

.result-hero.is-fail {
  background-color: #9f1239;
  background-image: linear-gradient(135deg, #9f1239 0%, #e11d48 100%);
}

.result-score-row {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.result-score-big {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.result-score-total {
  font-size: 18px;
  opacity: 0.85;
  padding-bottom: 4px;
  margin-left: 6px;
}

.result-status-pill {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  padding: 5px 16px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
}

.share-box {
  padding: 16px 20px;
}

.share-actions-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
  margin-top: 10px;
}

.copy-fallback-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px dashed #9db4e8;
  background-color: #f8faff;
  font-size: 12.5px;
  line-height: 1.55;
  color: #334155;
  word-break: break-all;
}

.filter-header {
  margin-top: 24px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.filter-tabs {
  display: inline-flex;
  background-color: #ffffff;
  border: 1px solid #c9d6f2;
  border-radius: 6px;
  padding: 2px;
}

.filter-tab {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.filter-tab.is-active {
  background-color: #10318c;
  color: #ffffff;
}

.analysis-list {
  display: flex;
  flex-direction: column;
}

.analysis-list > * + * {
  margin-top: 12px;
}

.supports-flex-gap .analysis-list {
  row-gap: 12px;
}

.supports-flex-gap .analysis-list > * + * {
  margin-top: 0;
}

.analysis-summary-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  padding: 12px 16px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.analysis-summary-btn > * + * {
  margin-left: 10px;
}

.supports-flex-gap .analysis-summary-btn {
  column-gap: 10px;
}

.supports-flex-gap .analysis-summary-btn > * + * {
  margin-left: 0;
}

.q-num-pill {
  margin-top: 2px;
  width: 38px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.analysis-detail {
  border-top: 1px solid #eef2fb;
  padding: 16px;
}

.detail-option {
  display: flex;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
}

.detail-option + .detail-option {
  margin-top: 8px;
}

.detail-option > * + * {
  margin-left: 10px;
}

.supports-flex-gap .detail-option {
  column-gap: 10px;
}

.supports-flex-gap .detail-option > * + * {
  margin-left: 0;
}

.detail-option.is-correct {
  border-color: #6ee7b7;
  background-color: #ecfdf5;
}

.detail-option.is-wrong {
  border-color: #fda4af;
  background-color: #fff1f2;
}

.explanation-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  background-color: #f4f7ff;
  font-size: 13.5px;
  line-height: 1.65;
  color: #475569;
}

.ai-tutor-box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #fed7aa;
  background-color: #fffbeb;
  font-size: 13px;
  line-height: 1.65;
  color: #78350f;
  white-space: pre-wrap;
}

/* ---------- 分享成绩单卡片 ---------- */
.share-card {
  width: 100%;
  max-width: 380px;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

/* ---------- 弹窗与底部抽屉 ---------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  background-color: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 400px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
}

.sheet-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  background-color: rgba(15, 23, 42, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sheet-panel {
  width: 100%;
  max-height: 75vh;
  background-color: #ffffff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 16px;
  padding-bottom: calc(16px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  display: flex;
  flex-direction: column;
}

.toast-banner {
  position: fixed;
  top: 16px;
  top: calc(16px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  max-width: 90%;
  background-color: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.input-field {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  color: #1e293b;
  background-color: #ffffff;
  -webkit-user-select: text;
  user-select: text;
}

.input-field:focus {
  outline: 2px solid #10318c;
  border-color: #10318c;
}

/* ---------- 响应式断点 ---------- */
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stat-cell {
    border-bottom: none;
  }
  .stat-cell:nth-child(2n) {
    border-right: 1px solid #e3eaf9;
  }
  .stat-cell:last-child {
    border-right: none;
  }
  .hero-banner {
    padding: 24px 32px;
  }
  .hero-title {
    font-size: 22px;
  }
  .notice-section {
    padding: 20px 32px;
  }
  .exam-aside {
    display: block;
  }
  .mobile-bottom-bar {
    display: none;
  }
  .desktop-only-inline {
    display: inline-flex !important;
  }
  .share-actions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.desktop-only-inline {
  display: none;
}
