:root {
  --jx-ink: #142033;
  --jx-ink-2: #334155;
  --jx-muted: rgba(20, 32, 51, 0.64);
  --jx-cream: #f8f4ec;
  --jx-paper: #ffffff;
  --jx-blue: #18b8ce;
  --jx-blue-2: #0d9eb8;
  --jx-green: #2c8f82;
  --jx-green-2: #0f6f7f;
  --jx-yellow: #c49a52;
  --jx-yellow-2: #dfb45f;
  --jx-line: rgba(20, 32, 51, 0.11);
  --bg: var(--jx-cream);
  --bg-dark: var(--jx-cream);
  --bg-panel: var(--jx-paper);
  --surface: var(--jx-paper);
  --surface2: #f4fafb;
  --border: rgba(20, 32, 51, 0.12);
  --line-blue: var(--jx-blue);
  --text: var(--jx-ink);
  --text-main: var(--jx-ink);
  --text-dim: var(--jx-muted);
  --text2: var(--jx-muted);
  --primary: var(--jx-blue-2);
  --primary-color: var(--jx-blue-2);
  --accent: var(--jx-blue);
  --accent-color: var(--jx-blue);
  --accent2: var(--jx-yellow);
  --primary-teal: var(--jx-blue-2);
  --secondary-orange: var(--jx-yellow);
  --bg-primary: var(--jx-cream);
  --bg-surface: var(--jx-paper);
  --bg-muted: #f4fafb;
  --text-primary: var(--jx-ink);
  --text-secondary: var(--jx-muted);
  --border-primary: rgba(20, 32, 51, 0.12);
  --border-divider: rgba(20, 32, 51, 0.08);
}

html {
  color-scheme: light;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin) {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.86), rgba(247, 245, 236, 0.96)),
    var(--jx-cream) !important;
  background-image: none !important;
  color: var(--jx-ink) !important;
}

button,
.btn,
.primary-btn,
.submit-btn,
.action-btn {
  border-radius: 8px !important;
}

button:not(.danger):not([class*="ghost"]):not([class*="secondary"]),
.btn:not(.danger):not(.secondary),
.primary-btn,
.submit-btn {
  background-color: var(--jx-green-2);
}

input,
textarea,
select {
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--jx-ink) !important;
  border-color: rgba(16, 42, 47, 0.18) !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(5, 166, 216, 0.62) !important;
  box-shadow: 0 0 0 4px rgba(5, 166, 216, 0.12) !important;
}

a {
  text-decoration-color: rgba(5, 166, 216, 0.42);
}

.card,
.panel,
.metric-card,
.report-box,
.form-panel,
.result-panel,
.upload-box,
.workspace,
.container,
.app-card,
.tool-card {
  border-radius: 8px !important;
}

.console-panel,
.control-panel,
.sidebar,
.side-panel,
.left-panel,
.workspace-panel,
.form-card,
.config-panel,
.upload-section,
.input-section {
  background: var(--jx-paper) !important;
  color: var(--jx-ink) !important;
  border-color: rgba(16, 42, 47, 0.12) !important;
  box-shadow: 0 16px 42px rgba(8, 47, 56, 0.08) !important;
}

.console-panel h1,
.panel h1,
.card h1,
.section-title,
.section-title strong,
.modal-title,
.group-header,
.compose-bar .count {
  color: var(--jx-ink) !important;
}

.section-title,
.group-header,
.compose-bar,
.preview-bottom-bar {
  background: rgba(5, 166, 216, 0.08) !important;
  border-color: rgba(5, 166, 216, 0.24) !important;
}

.manual-entry-hint,
.console-panel small,
.console-panel p,
.preview-wrapper,
.status,
.hint,
.muted {
  color: var(--jx-muted) !important;
}

.custom-capability-badge,
.qtype-tag.active,
.manual-input-wrapper,
.figure-progress-banner {
  background: rgba(5, 166, 216, 0.1) !important;
  border-color: rgba(5, 166, 216, 0.36) !important;
  color: var(--jx-blue-2) !important;
}

.manual-entry-button,
.manual-input-confirm,
.btn-gen,
.btn-compose,
.bar-btn.primary {
  background: var(--jx-green-2) !important;
  border-color: var(--jx-green-2) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.btn-demo,
.bar-btn {
  border-color: rgba(16, 42, 47, 0.18) !important;
  color: var(--jx-ink-2) !important;
  background: #fff !important;
}

.preview-wrapper,
.result-area,
.result-panel,
.output-panel,
.paper-preview {
  background: #eef4f2 !important;
  border-color: rgba(16, 42, 47, 0.12) !important;
}

.question-card,
.list-item,
.metric,
.report-box {
  background: #fff !important;
  color: var(--jx-ink) !important;
  border-color: rgba(16, 42, 47, 0.12) !important;
}

.hzq-nav {
  background: rgba(247, 245, 236, 0.9) !important;
  border-bottom: 1px solid rgba(16, 42, 47, 0.1) !important;
  box-shadow: 0 10px 30px rgba(8, 47, 56, 0.08) !important;
}

.hzq-nav-home {
  color: var(--jx-ink) !important;
}

.hzq-nav-mark {
  color: var(--jx-blue) !important;
}

.hzq-nav-link,
.hzq-nav-credits,
.hzq-nav-free,
.hzq-nav-btn,
.hzq-nav-btn-outline,
.hzq-nav-user {
  border-radius: 8px !important;
}

.hzq-nav-btn,
.hzq-modal-primary {
  background: var(--jx-green-2) !important;
  color: #fff !important;
}

.hzq-nav-btn-outline,
.hzq-modal-secondary {
  background: rgba(5, 166, 216, 0.1) !important;
  color: var(--jx-green-2) !important;
}

.hzq-nav-credits strong {
  color: #9b7600 !important;
}

.hzq-modal,
.hzq-redeem-block,
.hzq-terms-content {
  border-radius: 8px !important;
}

.hzq-modal input {
  border-radius: 8px !important;
}

.hzq-modal input:focus {
  border-color: rgba(5, 166, 216, 0.62) !important;
  box-shadow: 0 0 0 4px rgba(5, 166, 216, 0.12) !important;
}

.hzq-modal-tab.active {
  color: var(--jx-green-2) !important;
}

/* 风格 2 统一换肤：高端教育品牌的明亮底色、青色行动按钮与金色辅助强调。 */
body:not(.jx-home):not(.jx-about):not(.jx-admin) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(251, 250, 246, 0.98) 52%, rgba(248, 244, 236, 0.98) 100%),
    var(--jx-cream) !important;
  color: var(--jx-ink) !important;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

:where(.header, .app-header, .page-header, .topbar, .site-header, .hero, .hero-section) {
  color: var(--jx-ink) !important;
}

:where(.header h1, .app-header h1, .page-header h1, .hero h1, .hero-copy h1, .left-pane h1, .page-shell h1, .title, .logo, .brand) {
  color: #111827 !important;
  letter-spacing: 0 !important;
  background: none !important;
  background-clip: initial !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
}

:where(.header h1, .app-header h1, .page-header h1, .hero h1, .hero-copy h1, .left-pane h1, .page-shell h1) {
  font-family: "Songti SC", "Noto Serif SC", "SimSun", serif !important;
  font-weight: 850 !important;
}

:where(.subtitle, .desc, .description, .hint, .muted, .empty-state, .placeholder, .footer) {
  color: var(--jx-muted) !important;
}

:where(.container, .app-container, .main-card, .card, .panel, .workspace, .console-panel, .control-panel, .input-card, .result-card, .upload-section, .input-section, .form-panel, .result-panel, .output-panel, .preview-panel, .settings-panel, .report-box) {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(20, 32, 51, 0.1) !important;
  color: var(--jx-ink) !important;
  box-shadow: 0 18px 44px rgba(20, 32, 51, 0.06) !important;
}

:where(.stats-bar, .stat-card, .metric, .stat, .summary-card, .question-card, .choice-item, .mode-card, .chip, .subject-btn, .qtype-tag, .list-item, .generated-result, .asset-item, .scene-template-card) {
  background: #fff !important;
  border-color: rgba(20, 32, 51, 0.1) !important;
  color: var(--jx-ink) !important;
  box-shadow: 0 12px 30px rgba(20, 32, 51, 0.05) !important;
}

:where(.chip.active, .chip.selected, .chip.is-active, .mode-card.active, .mode-card.is-selected, .subject-btn.active, .qtype-tag.active, .choice-item.selected, .choice-item.active, .scene-template-card.is-selected, .paper-tag.is-selected) {
  border-color: rgba(24, 184, 206, 0.42) !important;
  background: rgba(24, 184, 206, 0.1) !important;
  color: var(--jx-green-2) !important;
  box-shadow: 0 14px 30px rgba(24, 184, 206, 0.12) !important;
}

:where(button, .btn, .primary-btn, .submit-btn, .action-btn, .analyze-btn, .generate-button, .download-btn.primary, .btn-primary, .btn-gen, .btn-compose, .bar-btn.primary) {
  border-radius: 8px !important;
}

:where(.btn-primary, .primary-btn, .submit-btn, .action-btn, .analyze-btn, .generate-button, .download-btn.primary, .btn-gen, .btn-compose, .manual-entry-button, .manual-input-confirm, .bar-btn.primary) {
  background: linear-gradient(135deg, #22c2d6, #0ca1ba) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(24, 184, 206, 0.2) !important;
}

:where(.btn-ghost, .secondary, .btn.secondary, .download-btn, .bar-btn, .remove-btn, .account-link, .paper-tag) {
  background: rgba(255, 255, 255, 0.86) !important;
  border-color: rgba(20, 32, 51, 0.12) !important;
  color: var(--jx-ink-2) !important;
}

:where(.upload-area, .dropzone, .file-input-label, .manual-input-wrapper, .preview-wrapper, .result-area, .paper-preview, .preview-frame, .image-preview, .file-preview) {
  background: rgba(244, 250, 251, 0.82) !important;
  border-color: rgba(24, 184, 206, 0.22) !important;
  color: var(--jx-ink) !important;
}

:where(.upload-area:hover, .dropzone:hover, .file-input-label:hover, .choice-item:hover, .mode-card:hover, .chip:hover, .tool-card:hover) {
  border-color: rgba(24, 184, 206, 0.42) !important;
  box-shadow: 0 18px 42px rgba(20, 32, 51, 0.08) !important;
}

:where(input, textarea, select) {
  background: #fff !important;
  border-color: rgba(20, 32, 51, 0.14) !important;
  color: var(--jx-ink) !important;
}

:where(input:focus, textarea:focus, select:focus) {
  border-color: rgba(24, 184, 206, 0.62) !important;
  box-shadow: 0 0 0 4px rgba(24, 184, 206, 0.12) !important;
}

:where(.section-title, .group-header, .result-header, .compose-bar, .preview-bottom-bar, th) {
  background: rgba(24, 184, 206, 0.08) !important;
  border-color: rgba(24, 184, 206, 0.22) !important;
  color: var(--jx-ink) !important;
}

:where(.stat-value, .metric strong, .score-number, .logo-icon, .mode-icon, .upload-icon, .question-badge, .badge, .count, code) {
  color: var(--jx-blue-2) !important;
  background: none !important;
  background-clip: initial !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
}

:where(.accent, .highlight, .section-kicker, .tool-index, .credit-badge, .hzq-nav-credits strong) {
  color: var(--jx-yellow) !important;
}

:where(.progress-bar, .progress-fill, .step-dot.active, .progress-dot.current, .spinner) {
  border-color: var(--jx-blue) !important;
  background: var(--jx-blue) !important;
}

:where(.success, .ok, .correct, .difficulty-1, .difficulty-2) {
  color: #1f7a62 !important;
}

:where(.warn, .error, .wrong, .danger, .difficulty-4, .difficulty-5) {
  color: #9f372d !important;
}

.hzq-nav {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(20, 32, 51, 0.08) !important;
  box-shadow: 0 14px 34px rgba(20, 32, 51, 0.05) !important;
}

.hzq-nav-home {
  color: var(--jx-ink) !important;
}

.hzq-nav-mark {
  color: var(--jx-yellow) !important;
}

.hzq-nav-btn,
.hzq-modal-primary {
  background: linear-gradient(135deg, #22c2d6, #0ca1ba) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(24, 184, 206, 0.18) !important;
}

.hzq-nav-btn-outline,
.hzq-modal-secondary {
  background: rgba(196, 154, 82, 0.12) !important;
  color: #9a6a24 !important;
}

.hzq-modal {
  background: #fff !important;
  color: var(--jx-ink) !important;
  box-shadow: 0 28px 80px rgba(20, 32, 51, 0.18) !important;
}

/* 子站导航与主页导航保持同一套品牌样式。 */
.hzq-nav {
  height: 82px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(20, 32, 51, 0.08) !important;
  box-shadow: 0 14px 34px rgba(20, 32, 51, 0.05) !important;
}

.hzq-nav-inner {
  width: min(1280px, calc(100vw - 48px)) !important;
  height: 100% !important;
  gap: 22px !important;
}

.hzq-nav-logo {
  width: 50px !important;
  height: 50px !important;
  border: 1px solid rgba(24, 184, 206, 0.32) !important;
  box-shadow: 0 12px 28px rgba(24, 184, 206, 0.16) !important;
}

.hzq-nav-brand {
  gap: 14px !important;
}

.hzq-nav-home {
  font-family: "Songti SC", "Noto Serif SC", "SimSun", serif !important;
  font-size: 23px !important;
  letter-spacing: 0 !important;
  color: var(--jx-ink) !important;
}

.hzq-nav-subtitle {
  color: rgba(20, 32, 51, 0.5) !important;
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
}

.hzq-nav-right {
  gap: 12px !important;
}

.hzq-nav-free {
  display: none !important;
}

.hzq-nav-link,
.hzq-nav-btn-outline,
.hzq-nav-credits,
.hzq-nav-user {
  min-height: 42px !important;
  padding: 0 16px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #1f2937 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.hzq-nav-link:hover,
.hzq-nav-btn-outline:hover,
.hzq-nav-credits:hover,
.hzq-nav-user:hover {
  border-color: rgba(196, 154, 82, 0.24) !important;
  background: rgba(248, 244, 236, 0.72) !important;
  color: var(--jx-green-2) !important;
}

.hzq-nav-btn {
  min-width: 118px !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #c49a52, #b8873b) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: 0 14px 28px rgba(184, 135, 59, 0.22) !important;
}

.hzq-nav-btn:hover {
  color: #fff !important;
}

.hzq-nav-credits strong {
  color: var(--jx-yellow) !important;
}

/* 深色/选中态可读性修复：只改视觉，不改交互。 */
body:not(.jx-home):not(.jx-about):not(.jx-admin)
  :where(
    .option-btn.active,
    .option-btn.selected,
    .option-btn.is-active,
    .subject-btn.active,
    .subject-btn.selected,
    .subject-btn.is-active,
    .grade-btn.active,
    .grade-btn.on,
    .exam-btn.active,
    .exam-type-btn.active,
    .qtype-tag.active,
    .tab.active,
    .chip.active,
    .chip.selected,
    .chip.is-active,
    .mode-card.active,
    .mode-card.is-selected,
    .choice-item.active,
    .choice-item.selected,
    .scene-btn.active,
    .scene-template-card.is-selected,
    .paper-tag.is-selected,
    .ratio-options button.is-active,
    .ratio-options button.active,
    [aria-pressed="true"]
  ) {
  background: linear-gradient(135deg, var(--jx-green-2), var(--jx-blue-2)) !important;
  border-color: transparent !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 16px 34px rgba(15, 111, 127, 0.18) !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin)
  :where(
    .option-btn.active,
    .option-btn.selected,
    .option-btn.is-active,
    .subject-btn.active,
    .subject-btn.selected,
    .subject-btn.is-active,
    .grade-btn.active,
    .grade-btn.on,
    .exam-btn.active,
    .exam-type-btn.active,
    .qtype-tag.active,
    .tab.active,
    .chip.active,
    .chip.selected,
    .chip.is-active,
    .mode-card.active,
    .mode-card.is-selected,
    .choice-item.active,
    .choice-item.selected,
    .scene-btn.active,
    .scene-template-card.is-selected,
    .paper-tag.is-selected,
    .ratio-options button.is-active,
    .ratio-options button.active,
    [aria-pressed="true"]
  )
  :where(span, strong, small, em, svg, i, .material-symbols-outlined, .mode-name, .mode-desc, .ratio-icon) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin)
  :where(.option-btn:not(.active), .subject-btn:not(.active), .grade-btn:not(.active):not(.on), .qtype-tag:not(.active), .chip:not(.active), .mode-card:not(.active), .ratio-options button:not(.is-active), .paper-tag:not(.is-selected)) {
  color: var(--jx-ink) !important;
  -webkit-text-fill-color: currentColor !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin)
  :where(.report-box.dark, .metric-card.dark, .dark-node, .logic-node.dark-node) {
  background: linear-gradient(135deg, #102a2f, #0f6f7f) !important;
  border-color: rgba(15, 111, 127, 0.24) !important;
  color: #fff !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin)
  :where(.report-box.dark, .metric-card.dark, .dark-node, .logic-node.dark-node)
  :where(p, span, strong, small, div, label) {
  color: rgba(255, 255, 255, 0.9) !important;
  -webkit-text-fill-color: currentColor !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin)
  :where(.hero h1, .hero-title, .page-title, .main-title, .title-line) {
  color: var(--jx-ink) !important;
  text-shadow: none !important;
  -webkit-text-fill-color: var(--jx-ink) !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin)
  :where(#trialCreditsHint, .trial-credits-hint, .trial-credit-hint, [class*="trialCredits"], [id*="trialCredits"]) {
  display: none !important;
}

@media (max-width: 860px) {
  .hzq-nav {
    height: auto !important;
  }

  .hzq-nav-inner {
    width: min(calc(100vw - 28px), 1240px) !important;
    min-height: 66px !important;
    height: auto !important;
    padding: 10px 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .hzq-nav-brand {
    justify-content: center !important;
  }

  .hzq-nav-right {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .hzq-nav-link,
  .hzq-nav-btn-outline,
  .hzq-nav-credits,
  .hzq-nav-user,
  .hzq-nav-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 560px) {
  .hzq-nav-subtitle {
    display: none !important;
  }

  .hzq-nav-logo {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
  }

  .hzq-nav-home {
    font-size: 20px !important;
  }

  .hzq-nav-right {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hzq-nav-btn {
    grid-column: 1 / -1 !important;
  }

  .hzq-nav-user {
    display: none !important;
  }
}

/* 表单选项的非选中态保持浅底深字，避免被通用按钮背景染深后看不清。 */
body:not(.jx-home):not(.jx-about):not(.jx-admin)
  :where(
    .option-btn:not(.active):not(.selected):not(.is-active),
    .grade-btn:not(.active):not(.on):not(.selected),
    .exam-btn:not(.active):not(.selected),
    .exam-type-btn:not(.active):not(.selected),
    .subject-btn:not(.active):not(.selected):not(.is-active),
    .qtype-tag:not(.active),
    .chip:not(.active):not(.selected):not(.is-active),
    .mode-card:not(.active):not(.is-selected),
    .choice-item:not(.active):not(.selected),
    .scene-btn:not(.active),
    .ratio-options button:not(.is-active):not(.active),
    .paper-tag:not(.is-selected)
  ) {
  background: #fff !important;
  border-color: rgba(20, 32, 51, 0.14) !important;
  color: var(--jx-ink) !important;
  -webkit-text-fill-color: var(--jx-ink) !important;
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.04) !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin)
  :where(
    .option-btn:not(.active):not(.selected):not(.is-active),
    .grade-btn:not(.active):not(.on):not(.selected),
    .exam-btn:not(.active):not(.selected),
    .exam-type-btn:not(.active):not(.selected),
    .subject-btn:not(.active):not(.selected):not(.is-active),
    .qtype-tag:not(.active),
    .chip:not(.active):not(.selected):not(.is-active),
    .mode-card:not(.active):not(.is-selected),
    .choice-item:not(.active):not(.selected),
    .scene-btn:not(.active),
    .ratio-options button:not(.is-active):not(.active),
    .paper-tag:not(.is-selected)
  )
  :where(span, strong, small, em, svg, i, .material-symbols-outlined, .mode-name, .mode-desc, .ratio-icon) {
  color: var(--jx-ink) !important;
  -webkit-text-fill-color: var(--jx-ink) !important;
}

/* 错题举一反三题量配置深色面板里的题型名称需要保持高对比白字。 */
body:not(.jx-home):not(.jx-about):not(.jx-admin)
  :where(.type-count-grid)
  :where(.type-count-label) {
  color: rgba(255, 255, 255, 0.94) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.94) !important;
}

/* 错题举一反三：解析结果统一改为浅底深字，避免深色块里文字发黑看不清。 */
body:not(.jx-home):not(.jx-about):not(.jx-admin) :where(.analysis-result) {
  background: linear-gradient(180deg, #ffffff, #f7fbfb) !important;
  border: 1px solid rgba(20, 32, 51, 0.12) !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 34px rgba(20, 32, 51, 0.06) !important;
  color: var(--jx-ink) !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin) :where(.analysis-item + .analysis-item) {
  border-top-color: rgba(20, 32, 51, 0.12) !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin) :where(.analysis-label) {
  color: var(--jx-green-2) !important;
  font-weight: 900 !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin) :where(.analysis-content, .analysis-content *) {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin) :where(.type-count-grid, #questionTypeContainer) {
  background: #f7fbfb !important;
  border-color: rgba(20, 32, 51, 0.12) !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin) :where(.type-count-label) {
  color: var(--jx-ink) !important;
  -webkit-text-fill-color: var(--jx-ink) !important;
}

/* 卷后提分：降低黑色描边和深色结果块压力，结果区改为高对比浅色阅读面。 */
body:not(.jx-home):not(.jx-about):not(.jx-admin) :where(.shell) {
  border: 1px solid rgba(20, 32, 51, 0.12) !important;
  box-shadow: 0 24px 58px rgba(20, 32, 51, 0.08) !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin) :where(.hero) {
  border-right: 1px solid rgba(20, 32, 51, 0.1) !important;
  background: linear-gradient(180deg, rgba(24, 184, 206, 0.06), rgba(255, 255, 255, 0.96)) !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin) :where(.panel + .panel) {
  border-top: 1px solid rgba(20, 32, 51, 0.1) !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin)
  :where(.option-btn, .subject-btn, .ghost-btn, .upload-box, .report-box, .metric-card, .list-item, .tip, .score-input, .file-item, .info-item, .logic-node, .breakdown-card, .check-item) {
  border-width: 1px !important;
  border-color: rgba(20, 32, 51, 0.12) !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin) :where(.metric-card.accent) {
  background: linear-gradient(135deg, #fff7ed, #ffffff) !important;
  border-color: rgba(196, 154, 82, 0.44) !important;
  color: var(--jx-ink) !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin) :where(.metric-card.accent strong, .metric-card.accent small, .metric-card.accent p) {
  color: #8f3b14 !important;
  -webkit-text-fill-color: #8f3b14 !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin) :where(.metric-card.warn) {
  background: linear-gradient(135deg, #fff9dd, #ffffff) !important;
  border-color: rgba(196, 154, 82, 0.5) !important;
  color: var(--jx-ink) !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin) :where(.metric-card.warn strong, .metric-card.warn small, .metric-card.warn p) {
  color: #8a4b16 !important;
  -webkit-text-fill-color: #8a4b16 !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin) :where(.report-box.dark, .logic-node.dark-node) {
  background: linear-gradient(180deg, #ffffff, #f5fbfb) !important;
  border-color: rgba(15, 111, 127, 0.18) !important;
  color: var(--jx-ink) !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin) :where(.report-box.dark)::before {
  background: var(--jx-yellow) !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin)
  :where(.report-box.dark, .logic-node.dark-node)
  :where(.summary, .summary-note, .logic-body, .report-sub, p, span, strong, small, div, label) {
  color: #142033 !important;
  -webkit-text-fill-color: #142033 !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin) :where(.summary-note) {
  border-top-color: rgba(20, 32, 51, 0.12) !important;
}

body:not(.jx-home):not(.jx-about):not(.jx-admin) :where(.list-desc, .card-value, .info-value, .check-desc, .logic-body, .coverage-note) {
  color: #27364a !important;
  -webkit-text-fill-color: #27364a !important;
}

/* 共享登录弹窗需要隔离全站按钮规则，避免标签和协议链接被染成主按钮。 */
.hzq-modal .hzq-modal-tab {
  background: #fff !important;
  background-image: none !important;
  border: 1px solid rgba(20, 32, 51, 0.08) !important;
  color: #142033 !important;
  box-shadow: none !important;
}

.hzq-modal .hzq-modal-tab.active {
  background: linear-gradient(135deg, #0f6f7f, #18b8ce) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 12px 26px rgba(15, 111, 127, 0.18) !important;
}

.hzq-modal .hzq-terms-link {
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 1px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: #0f6f7f !important;
  box-shadow: none !important;
  font: inherit !important;
  font-weight: 800 !important;
  line-height: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  vertical-align: baseline !important;
  white-space: normal !important;
}

.hzq-modal .hzq-terms-link:hover {
  background: transparent !important;
  color: #145235 !important;
  transform: none !important;
  box-shadow: none !important;
}
