/* 
  觉晓法考主观题答题系统 - 样式表
  1:1 像素级复刻觉晓机考实战与司法部机考视觉规范
*/

:root {
  --jx-blue-header: #78bbff;
  --jx-blue-header-dark: #5b9edc;
  --jx-blue-sidebar: #4b92df;
  --jx-blue-btn: #388ae8;
  --jx-cyan-btn: #41b8c8;
  --jx-yellow-btn: #f5a623;
  --jx-yellow-btn-hover: #e09419;
  --jx-timer-color: #ffff00;
  --jx-active-tab: #398be8;
  --jx-tab-bg: #e5ebf8;
  --jx-border: #9fb7f7;
  --jx-border-light: #c2d5eb;
  --jx-bg-gray: #ddebf6;
  --jx-text-dark: #000000;
  --jx-text-red: #e53935;
  --jx-highlight: #ffea79;

  /* 司法部官方主观题机考系统标准字体规范 (ATA / OBT 考场真实复刻) */
  --jx-font-family: "宋体", SimSun, "Songti SC", STSong, "Microsoft YaHei", 微软雅黑, sans-serif;
  --jx-font-songti: "宋体", SimSun, "Songti SC", STSong, serif;
  --jx-font-simhei: SimHei, "黑体", "Microsoft YaHei", "宋体", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--jx-font-family);
  font-size: 14px;
  color: var(--jx-text-dark);
  background-color: var(--jx-bg-gray);
  user-select: auto;
}

/* ==========================================================================
   1. 顶部状态与考生信息栏 (Header)
   ========================================================================== */
.exam-header {
  height: 80px;
  background: linear-gradient(180deg, #78bbff 0%, #6baee4 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 2px solid #5298de;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.candidate-avatar {
  width: 54px;
  height: 54px;
  background-color: #fff;
  border-radius: 50%;
  border: 2px solid #a8cbf6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.candidate-avatar:hover {
  transform: scale(1.06);
  border-color: #ffd166;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.candidate-avatar svg {
  width: 38px;
  height: 38px;
  fill: #226ec8;
}

.candidate-info {
  font-size: 13px;
  line-height: 1.35;
  color: #eaf2ff;
}

.candidate-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.candidate-name {
  font-weight: bold;
  font-size: 14px;
  color: #ffffff;
}

.btn-switch-profile {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-switch-profile:hover {
  background: #fff;
  color: #1f6bc3;
}

.candidate-meta {
  opacity: 0.92;
  font-size: 12px;
}

.candidate-logo {
  margin-top: 1px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.15);
  display: inline-block;
  padding: 0 4px;
  border-radius: 3px;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #e6f0ff;
}

.breadcrumb-nav a {
  color: #e6f0ff;
  text-decoration: none;
  cursor: pointer;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.topic-nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-topic-nav-step {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 12px;
  padding: 2px 9px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-topic-nav-step:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: #fff;
}

.btn-topic-nav-step:active {
  transform: scale(0.96);
}

.btn-pick-topic {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  border-radius: 12px;
  padding: 3px 12px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  font-weight: 500;
}

.btn-pick-topic:hover {
  background: rgba(255, 255, 255, 0.38);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.exam-timer-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: bold;
  color: var(--jx-timer-color);
  background: rgba(0, 0, 0, 0.22);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.5px;
}

.timer-digits {
  font-size: 18px;
  font-family: "Courier New", Courier, monospace;
}

.btn-submit-exam {
  background: linear-gradient(180deg, #f7b233 0%, #eb9411 100%);
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  padding: 7px 22px;
  border: 1px solid #d47e06;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.15s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn-submit-exam:hover {
  background: linear-gradient(180deg, #f9bd47 0%, #f19f1f 100%);
  transform: translateY(-1px);
}

.btn-submit-exam:active {
  transform: translateY(1px);
}

/* ==========================================================================
   2. 整体布局框架 (Body Layout)
   ========================================================================== */
.exam-container {
  display: flex;
  height: calc(100vh - 80px);
  width: 100vw;
  background-color: var(--jx-bg-gray);
  overflow: hidden;
}

/* ==========================================================================
   3. 左侧折叠工具与题号栏 (Sidebar)
   ========================================================================== */
.exam-sidebar {
  width: 250px;
  background: #eff6fe;
  border-right: 1px solid var(--jx-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.2s ease;
  position: relative;
  z-index: 10;
}

.exam-sidebar.collapsed {
  width: 36px;
}

.sidebar-header {
  background: linear-gradient(180deg, #6bb3fa 0%, #468fdc 100%);
  color: #fff;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 14px;
  font-weight: bold;
  font-family: var(--jx-font-simhei);
  cursor: pointer;
  user-select: none;
}

.exam-sidebar.collapsed .sidebar-header {
  writing-mode: vertical-lr;
  height: 100%;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 6px;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exam-sidebar.collapsed .sidebar-content {
  display: none;
}

.question-status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.q-badge {
  width: 38px;
  height: 32px;
  background: #fff;
  border: 1px solid #bfd3ec;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  font-family: var(--jx-font-family);
  color: #265ba0;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.q-badge:hover {
  border-color: #3b8be9;
  background: #eaf3ff;
}

.q-badge.active {
  background: #388be8;
  color: #fff;
  border-color: #1e6bc3;
  box-shadow: 0 2px 4px rgba(40, 110, 200, 0.25);
}

.q-badge.marked {
  border-color: #ff9800;
}

.q-badge.marked::after {
  content: "?";
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff9800;
  color: #fff;
  font-size: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-instructions {
  background: #fdf5f5;
  border: 1px solid #f9dede;
  border-radius: 4px;
  padding: 10px;
  font-size: 12px;
  color: var(--jx-text-red);
  line-height: 1.55;
}

.sidebar-instructions .inst-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.btn-open-laws {
  background: linear-gradient(180deg, #4fc3d2 0%, #2ba5b5 100%);
  color: #fff;
  border: 1px solid #2093a3;
  border-radius: 5px;
  padding: 9px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-open-laws:hover {
  background: linear-gradient(180deg, #59ccd9 0%, #32b5c5 100%);
}

.btn-open-records {
  background: #fff;
  color: #276cb8;
  border: 1px solid #bcd3ee;
  border-radius: 5px;
  padding: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-open-records:hover {
  background: #eef5fc;
  border-color: #388be8;
}

/* ==========================================================================
   4. 主答题区 - 分割面板 (Main Work Area)
   ========================================================================== */
.exam-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* --- 上部：案情材料区 --- */
.case-panel {
  flex: 1;
  min-height: 120px;
  background: #fff;
  border-bottom: 1px solid var(--jx-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-toolbar {
  height: 38px;
  background: #e5ebf8;
  border-bottom: 1px solid var(--jx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex-shrink: 0;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tab-badge {
  background: var(--jx-active-tab);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  font-family: var(--jx-font-simhei);
  padding: 4px 14px;
  border-radius: 3px 3px 0 0;
  margin-top: 5px;
  border: 1px solid #1c6dc7;
  border-bottom: none;
}

.btn-tool {
  background: #fff;
  border: 1px solid #b8cee6;
  border-radius: 3px;
  color: #174276;
  font-family: var(--jx-font-family);
  font-size: 12px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-tool:hover {
  background: #eef5fc;
  border-color: #3b8be9;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-body-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
  font-family: var(--jx-font-songti);
  font-size: 14px;
  line-height: 1.65;
  color: #000000;
}

.case-header-title {
  font-size: 16px;
  font-weight: bold;
  font-family: var(--jx-font-simhei);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #c0d3eb;
  color: #222222;
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-type-tag {
  background: #e8f3fe;
  color: #1e6bc3;
  border: 1px solid #b7d6f8;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 11px;
}

.case-text {
  font-family: var(--jx-font-songti);
  font-size: inherit;
  line-height: 1.65;
  color: #000000;
  white-space: pre-wrap;
  word-break: break-all;
  text-align: justify;
}

/* 划线高亮 */
.highlight-mark {
  background-color: var(--jx-highlight);
  border-radius: 2px;
  box-shadow: 0 0 0 1px #faad14;
}

/* --- 中间：上下拖拽条 (Resizer) --- */
.split-resizer {
  height: 6px;
  background: #a1b5fa;
  cursor: ns-resize;
  border-top: 1px solid #8fa7f0;
  border-bottom: 1px solid #8fa7f0;
  position: relative;
  flex-shrink: 0;
  z-index: 5;
}

.split-resizer:hover, .split-resizer.resizing {
  background: #7592f0;
}

/* --- 下部：分问答题区 --- */
.answer-panel {
  flex: 1;
  min-height: 140px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.subquestion-tabs-bar {
  height: 38px;
  background: #e5ebf8;
  border-bottom: 1px solid var(--jx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  flex-shrink: 0;
}

.subquestion-tabs {
  display: flex;
  align-items: flex-end;
  height: 100%;
  gap: 2px;
  overflow-x: auto;
}

.sq-tab {
  height: 32px;
  padding: 0 14px;
  background: #d8e5f5;
  border: 1px solid #b8cde6;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--jx-font-family);
  color: #000000;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: background 0.15s;
}

.sq-tab:hover {
  background: #edf5fe;
}

.sq-tab.active {
  background: #ffffff;
  color: #000000;
  font-weight: bold;
  border-color: var(--jx-border);
  border-bottom: 1px solid #ffffff;
  height: 34px;
  margin-bottom: -1px;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.04);
}

.sq-prompt-hint {
  font-family: var(--jx-font-family);
  font-size: 12px;
  color: #556b85;
  margin-left: 12px;
  align-self: center;
}

.sq-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.answer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 18px;
  overflow-y: auto;
  background: #ffffff;
}

.sq-question-box {
  margin-bottom: 10px;
  font-family: var(--jx-font-songti);
  font-size: 14px;
  line-height: 1.65;
  color: #000000;
}

.sq-question-content {
  font-family: var(--jx-font-songti);
  font-weight: bold;
  color: #000000;
}

.sq-goal-tag {
  color: #e53935;
  font-weight: bold;
  margin-left: 4px;
}

.sq-char-count-row {
  margin-bottom: 8px;
  font-size: 13px;
  font-family: var(--jx-font-family);
  color: #333333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-count-alert {
  color: var(--jx-text-red);
  font-weight: bold;
}

.auto-save-status {
  font-size: 11px;
  color: #8899aa;
}

.answer-textarea {
  flex: 1;
  width: 100%;
  min-height: 120px;
  border: 1px solid #9fb7f7;
  border-radius: 2px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.65;
  font-family: var(--jx-font-songti);
  color: #000000;
  background: #ffffff;
  resize: none;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  transition: border-color 0.2s;
}

.answer-textarea:focus {
  border-color: #3b8be9;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08), 0 0 0 2px rgba(59, 139, 233, 0.2);
}

.answer-footer-bar {
  height: 40px;
  border-top: 1px solid var(--jx-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
  background: #e5ebf8;
  flex-shrink: 0;
}

.mark-checkbox-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-family: var(--jx-font-family);
  cursor: pointer;
  user-select: none;
  color: #000000;
}

.btn-nav-sq {
  background: #eef5fc;
  border: 1px solid #bfd5ec;
  border-radius: 4px;
  padding: 5px 18px;
  font-size: 13px;
  color: #1f508a;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-nav-sq:hover:not(:disabled) {
  background: #3b8be9;
  color: #fff;
  border-color: #2779db;
}

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

/* ==========================================================================
   5. 觉晓原版法律法规汇编浮动窗口 (.fatiaowind)
   ========================================================================== */
.fatiaowind {
  position: fixed;
  left: 10vw;
  top: 8vh;
  width: 80vw;
  height: 84vh;
  min-width: 500px;
  min-height: 380px;
  background: #ffffff;
  border: 1px solid #759bc6;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(15, 45, 90, 0.35);
  z-index: 2000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.fatiaowind.show {
  display: flex;
}

.fatiaowind.isfullScreen {
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
}

/* 窗口顶部标题栏与拖动手柄 */
.fatiaowind .wind-head {
  height: 38px;
  background: linear-gradient(180deg, #3d88e0 0%, #1e62ba 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  cursor: move;
  user-select: none;
  border-bottom: 1px solid #164f98;
  flex-shrink: 0;
}

.fatiaowind .wind-head .title {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fatiaowind .wind-head .wind-head-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fatiaowind .wind-head .button {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
  padding: 2px 8px;
  font-size: 12px;
  transition: all 0.15s;
}

.fatiaowind .wind-head .button:hover {
  background: rgba(255, 255, 255, 0.35);
}

.fatiaowind .wind-head .button.changewind {
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fatiaowind .wind-head .button.changewind::after {
  content: "";
  width: 10px;
  height: 10px;
  border: 1.5px solid #fff;
  display: inline-block;
}

.fatiaowind .wind-head .button.changewind.big::after {
  content: "";
  width: 8px;
  height: 8px;
  border: 1.5px solid #fff;
  box-shadow: 3px -3px 0 -1.5px #1e62ba, 3px -3px 0 0 #fff;
}

.fatiaowind .wind-head .button.off {
  font-weight: bold;
}

.fatiaowind .wind-head .button.off:hover {
  background: #e53935;
  border-color: #b71c1c;
}

/* 窗口主体容器 */
.fatiaowind .wind-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
  background: #fff;
}

/* 左侧目录树 */
.fatiaowind .catalogue {
  width: 320px;
  min-width: 180px;
  max-width: 600px;
  background: #f7faff;
  border-right: 1px solid #d4e3f4;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  transition: width 0.05s ease;
}

.fatiaowind .catalogue.hide {
  width: 36px !important;
}

.fatiaowind .catalogue .top {
  height: 36px;
  background: #eef5fc;
  border-bottom: 1px solid #dce8f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: #174275;
  font-weight: bold;
  font-size: 13px;
  flex-shrink: 0;
}

.fatiaowind .catalogue .top .title {
  margin: 0;
  font-size: 13px;
}

.fatiaowind .catalogue.hide .top .title {
  display: none;
}

.fatiaowind .catalogue .top .icon-btn {
  background: #fff;
  border: 1px solid #c0d5ec;
  border-radius: 3px;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 11px;
  color: #245792;
}

.fatiaowind .catalogue .search {
  padding: 8px 10px;
  border-bottom: 1px solid #dce8f6;
  background: #f3f7fd;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.fatiaowind .catalogue.hide .search {
  display: none;
}

.fatiaowind .input-parent {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.fatiaowind .input-param {
  width: 100%;
  border: 1px solid #bcd3ee;
  border-radius: 4px;
  padding: 5px 24px 5px 8px;
  font-size: 12px;
  outline: none;
  background: #fff;
  color: #222;
}

.fatiaowind .input-param:focus {
  border-color: #3b8be9;
  box-shadow: 0 0 0 2px rgba(59, 139, 233, 0.2);
}

.fatiaowind .searchbox_button {
  position: absolute;
  right: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #388be8;
  padding: 2px;
}

.fatiaowind .next-btn {
  display: flex;
  gap: 3px;
}

.fatiaowind .nav-arrow {
  width: 24px;
  height: 24px;
  background: #fff;
  border: 1px solid #bcd3ee;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  color: #245792;
  transition: all 0.15s;
}

.fatiaowind .nav-arrow:hover {
  background: #e9f2fd;
  border-color: #388be8;
}

/* zTree 容器 */
.fatiaowind .menu.ztree {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 8px 6px;
  font-size: 13px;
}

.fatiaowind .catalogue.hide .menu.ztree {
  display: none;
}

.fatiaowind .ztree * {
  font-family: var(--jx-font-family) !important;
}

.fatiaowind .ztree li a.curSelectedNode {
  background-color: #388be8 !important;
  color: #fff !important;
  border: 1px solid #1a62b8 !important;
  border-radius: 3px;
  opacity: 1 !important;
}

.fatiaowind .ztree li a:hover {
  text-decoration: none;
  background-color: #e4effc;
  border-radius: 3px;
}

/* 栏目分割线拖动拉伸 */
.fatiaowind .menu-border {
  width: 5px;
  cursor: col-resize;
  background: transparent;
  transition: background 0.15s;
  flex-shrink: 0;
  margin-left: -2px;
  z-index: 10;
}

.fatiaowind .menu-border:hover, .fatiaowind .menu-border.resizing {
  background: #3b8be9;
}

/* 右侧内容区 */
.fatiaowind .contents {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}

.fatiaowind .scroll-box {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  font-size: 14px;
  line-height: 1.7;
  color: #000000;
  font-family: var(--jx-font-songti);
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

.fatiaowind .scroll-box .text {
  margin-bottom: 22px;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: justify;
}

.fatiaowind .scroll-box .loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 60px 0;
  color: #388be8;
  gap: 12px;
}

.fatiaowind .scroll-box .loading .law-name {
  font-size: 13px;
  color: #666;
}

.fatiaowind .scroll-box .nolist {
  text-align: center;
  color: #90a4ae;
  margin-top: 120px;
  font-size: 15px;
}

/* 8个方向的窗口调节手柄 */
.fatiaowind .border-col {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  z-index: 100;
}
.fatiaowind .border-left { left: 0; cursor: w-resize; }
.fatiaowind .border-right { right: 0; cursor: e-resize; }

.fatiaowind .border-row {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 100;
}
.fatiaowind .border-top { top: 0; cursor: n-resize; }
.fatiaowind .border-bottom { bottom: 0; cursor: s-resize; }

.fatiaowind .horn {
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 101;
}
.fatiaowind .left-top { left: 0; top: 0; cursor: nw-resize; }
.fatiaowind .rig-top { right: 0; top: 0; cursor: ne-resize; }
.fatiaowind .left-bott { left: 0; bottom: 0; cursor: sw-resize; }
.fatiaowind .rig-bott { right: 0; bottom: 0; cursor: se-resize; }

/* ==========================================================================
   题库检索中心响应式 UI
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-window {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #a0bcdb;
}

.modal-header {
  height: 42px;
  background: linear-gradient(180deg, #4490ed 0%, #206ecc 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 14px;
  font-weight: bold;
  user-select: none;
}

.btn-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
}

.btn-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.topic-picker-window {
  width: 92vw;
  max-width: 1200px;
  height: 88vh;
}

.topic-picker-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  overflow: hidden;
  background: #ffffff;
  gap: 10px;
}

/* 科目导航条 */
.topic-subject-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e3eef9;
}

.topic-sub-tab {
  background: #f1f6fd;
  border: 1px solid #bfd7f1;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 13px;
  color: #1e4a7a;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  user-select: none;
}

.topic-sub-tab:hover {
  background: #e2effd;
  border-color: #388be8;
}

.topic-sub-tab.active {
  background: #388be8;
  color: #fff;
  border-color: #1d64b8;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(30, 98, 186, 0.2);
}

.topic-sub-tab .tab-badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
}

.topic-sub-tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* 类型筛选与搜索过滤工具栏 */
.topic-filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topic-type-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topic-type-pill {
  background: #fff;
  border: 1px solid #c9dcf0;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 12px;
  color: #315886;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.topic-type-pill:hover {
  border-color: #388be8;
  background: #f5f9ff;
}

.topic-type-pill.active {
  background: #2b77d6;
  color: #fff;
  border-color: #1a58a7;
  font-weight: 500;
}

.topic-search-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

.search-input-wrapper {
  position: relative;
  min-width: 220px;
  max-width: 320px;
  flex: 1;
}

.search-input-wrapper input {
  width: 100%;
  border: 1px solid #bfd7f1;
  border-radius: 4px;
  padding: 6px 26px 6px 10px;
  font-size: 13px;
  outline: none;
}

.search-input-wrapper input:focus {
  border-color: #388be8;
  box-shadow: 0 0 0 2px rgba(59, 139, 233, 0.2);
}

.btn-clear-search {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 12px;
  display: none;
}

.btn-clear-search:hover {
  color: #333;
}

.sort-select {
  padding: 6px 8px;
  border: 1px solid #bfd7f1;
  border-radius: 4px;
  font-size: 12px;
  color: #315886;
  outline: none;
  background: #fff;
}

.btn-quick-jump {
  padding: 6px 12px;
  background: #fff3e0;
  color: #d84315;
  border-color: #ffcc80;
  font-size: 12px;
  white-space: nowrap;
}

/* 题目表格 */
.topics-table-container {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #d4e2f3;
  border-radius: 4px;
  background: #fff;
}

.topics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.topics-table thead {
  background: #eef5fc;
  position: sticky;
  top: 0;
  color: #1e4a7a;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.topics-table th {
  padding: 9px 10px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #d4e2f3;
}

.topics-table tbody tr {
  border-bottom: 1px solid #edf3fa;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.topics-table tbody tr:hover {
  background-color: #f0f7ff;
}

.topics-table td {
  padding: 8px 10px;
  vertical-align: middle;
}

.topics-table .topic-id-cell {
  font-weight: bold;
  color: #16487e;
}

.topics-table .real-exam-badge {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}

.topics-table .mock-exam-badge {
  background: #eef4fd;
  color: #1f5ea6;
  border: 1px solid #d1e2f7;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.topics-table .score-cell {
  font-weight: bold;
  color: #d84315;
}

.topics-table .snippet-cell {
  color: #555;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topics-table .btn-do-topic {
  background: #388be8;
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid #206ec8;
  border-radius: 3px;
  cursor: pointer;
}

.topics-table .btn-do-topic:hover {
  background: #1f72d4;
}

/* 分页控制栏 */
.topics-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #666;
  padding-top: 4px;
}

.pagination-hint {
  font-size: 12px;
  color: #8899aa;
  margin-left: 10px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-page-nav {
  padding: 4px 10px;
  font-size: 12px;
}

.page-current-display {
  padding: 0 6px;
  font-weight: bold;
  color: #1e4a7a;
}

/* ==========================================================================
   6. 智能批改结果与 AI 导出模态窗 (Grading Modal)
   ========================================================================== */
.grading-modal-window {
  width: 92vw;
  max-width: 1200px;
  height: 90vh;
}

.grading-modal-tabs {
  height: 42px;
  background: #eef5fc;
  border-bottom: 1px solid var(--jx-border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  flex-shrink: 0;
}

.grading-tab-btn {
  height: 32px;
  padding: 0 16px;
  background: #dbe7f7;
  border: 1px solid #b8d2ee;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #215189;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.grading-tab-btn.active {
  background: #388be8;
  color: #fff;
  border-color: #1d69c4;
  font-weight: bold;
}

.grading-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* 总体评分横幅 */
.score-summary-banner {
  background: linear-gradient(135deg, #2b77d6 0%, #1552a2 100%);
  color: #fff;
  border-radius: 8px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(27, 98, 187, 0.2);
}

.score-big {
  font-size: 34px;
  font-weight: bold;
  color: #ffe600;
}

.score-rate {
  font-size: 16px;
  opacity: 0.9;
  margin-top: 4px;
}

/* 逐题评分子卡 */
.graded-question-card {
  background: #fff;
  border: 1px solid #d4e2f3;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.gq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eef3f9;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.gq-title {
  font-weight: bold;
  font-size: 15px;
  color: #163e70;
}

.gq-score-tag {
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid #a5d6a7;
  font-size: 14px;
}

/* 采分点核对列表 */
.points-check-list {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.point-item {
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.point-item.hit {
  background: #f1f8e9;
  border: 1px solid #c5e1a5;
  color: #2e7d32;
}

.point-item.miss {
  background: #fef4f4;
  border: 1px solid #ffcdd2;
  color: #c62828;
}

.point-badge {
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  flex-shrink: 0;
}

.point-item.hit .point-badge {
  background: #4caf50;
  color: #fff;
}

.point-item.miss .point-badge {
  background: #e53935;
  color: #fff;
}

.answer-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.compare-box {
  background: #f8fafc;
  border: 1px solid #e2eaf3;
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.compare-box-title {
  font-weight: bold;
  margin-bottom: 6px;
  color: #254d7e;
  border-bottom: 1px dashed #d5e2f0;
  padding-bottom: 4px;
}

/* AI 导出区样式 */
.ai-export-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-instruction-box {
  background: #e8f4fd;
  border: 1px solid #b7dbfa;
  border-radius: 6px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #174c83;
}

.ai-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ai-action {
  background: linear-gradient(180deg, #3fa1f0 0%, #2076cc 100%);
  color: #fff;
  border: 1px solid #1764b3;
  border-radius: 5px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-ai-action:hover {
  background: linear-gradient(180deg, #51acfa 0%, #2a83dc 100%);
}

.prompt-preview-textarea {
  width: 100%;
  height: 280px;
  border: 1px solid #cbdbee;
  border-radius: 6px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
  font-family: monospace;
  background: #f9fbfd;
  color: #222;
}

.ai-paste-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e0ebf7;
}

/* ==========================================================================
   7. 考生档案管理与题库切换模态窗
   ========================================================================== */
.profile-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.profile-card {
  border: 1px solid #c9daec;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #fff;
  transition: all 0.15s;
}

.profile-card:hover {
  border-color: #3b8be9;
  background: #f7faff;
}

.profile-card.active {
  border-color: #3b8be9;
  background: #eaf3fe;
  box-shadow: 0 0 0 2px rgba(59, 139, 233, 0.25);
}

.profile-active-tag {
  background: #4caf50;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 10px;
}

.profile-avatar-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #bcd7f5;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s;
}

.profile-card:hover .profile-avatar-thumb {
  transform: scale(1.08);
}

/* 考场风格切换 */
body.theme-dark {
  --jx-bg-gray: #1b212b;
  --jx-text-dark: #e2e8f0;
}

body.theme-dark .case-panel,
body.theme-dark .answer-panel,
body.theme-dark .case-body-wrapper {
  background-color: #171d26;
  color: #e2e8f0;
}

body.theme-dark .panel-toolbar,
body.theme-dark .subquestion-tabs-bar {
  background-color: #1e2633;
  border-color: #2f3c50;
}

body.theme-dark .answer-textarea {
  background-color: #12171f;
  color: #f1f5f9;
  border-color: #37465d;
}

/* Toast 考场友好提示 */
.exam-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 32, 53, 0.92);
  color: #fff;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  animation: fadeInOut 2.8s ease forwards;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, 15px); }
  12% { opacity: 1; transform: translate(-50%, 0); }
  85% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -10px); }
}

/* ==========================================================================
   案例图谱 (Case Graph) 考点专区样式体系
   ========================================================================== */
.btn-case-graph-trigger {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%) !important;
  color: #fff !important;
  border-color: #096dd9 !important;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(24, 144, 255, 0.35);
  transition: all 0.2s ease;
}
.btn-case-graph-trigger:hover {
  background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%) !important;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.45);
  transform: translateY(-1px);
}

.case-graph-window {
  width: 94vw;
  max-width: 1360px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  background: #f4f6f9;
}

.case-graph-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.modal-header-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a2b42;
}
.modal-subtitle {
  font-size: 13px;
  color: #6b7a90;
}
.btn-header-switch {
  background: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-header-switch:hover {
  background: #bae7ff;
  border-color: #69c0ff;
}

/* 6大学科导航选项卡 */
.cg-subject-tabs {
  display: flex;
  gap: 6px;
  background: #fff;
  padding: 12px 20px 0 20px;
  border-bottom: 2px solid #e8eef5;
}
.cg-subject-tab {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #595959;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.cg-subject-tab:hover {
  color: #1890ff;
}
.cg-subject-tab.active {
  color: #1890ff;
  border-bottom-color: #1890ff;
}
.cg-tab-badge {
  background: #f0f2f5;
  color: #8c8c8c;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: normal;
}
.cg-subject-tab.active .cg-tab-badge {
  background: #e6f7ff;
  color: #1890ff;
}

/* 掌握度看板与筛选条 */
.cg-dashboard-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  padding: 12px 20px;
  border-bottom: 1px solid #e8eef5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  flex-wrap: wrap;
}

.cg-mastery-card {
  min-width: 200px;
  flex: 0 0 220px;
}
.cg-mastery-title {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}
.cg-mastery-percent {
  font-size: 14px;
  font-weight: 700;
  color: #1890ff;
}
.cg-progress-bg {
  width: 100%;
  height: 8px;
  background: #f0f2f5;
  border-radius: 4px;
  overflow: hidden;
}
.cg-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1890ff, #52c41a);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.cg-mastery-meta {
  font-size: 11px;
  color: #8c8c8c;
  margin-top: 4px;
}

.cg-stat-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cg-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
}
.stat-level-a {
  background: #fff1f0;
  border-color: #ffa39e;
}
.stat-level-a .stat-val {
  color: #cf1322;
  font-weight: 700;
}
.stat-level-b {
  background: #e6f7ff;
  border-color: #91d5ff;
}
.stat-level-b .stat-val {
  color: #096dd9;
  font-weight: 700;
}
.stat-level-c {
  background: #f5f5f5;
  border-color: #d9d9d9;
}
.stat-level-c .stat-val {
  color: #595959;
  font-weight: 700;
}

.cg-filter-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cg-filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cg-filter-group .filter-label {
  font-size: 12px;
  color: #666;
}
.cg-filter-btn {
  padding: 3px 9px;
  font-size: 12px;
  background: #f0f2f5;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  cursor: pointer;
  color: #595959;
  transition: all 0.2s;
}
.cg-filter-btn:hover {
  color: #1890ff;
  border-color: #91d5ff;
}
.cg-filter-btn.active {
  background: #1890ff;
  color: #fff;
  border-color: #1890ff;
}

.cg-search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 3px 8px;
  width: 220px;
}
.cg-search-box input {
  border: none;
  outline: none;
  font-size: 12px;
  width: 100%;
}

/* 考点与大纲卡片容器 */
.cg-chapters-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cg-chapter-group {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8eef5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  overflow: hidden;
}
.cg-chapter-header {
  padding: 12px 18px;
  background: #fafbfc;
  border-bottom: 1px solid #eef2f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #1f2d3d;
}
.cg-chapter-badge {
  font-size: 12px;
  font-weight: normal;
  color: #8c8c8c;
}

.cg-points-grid {
  display: flex;
  flex-direction: column;
  divide-y: 1px solid #f0f2f5;
}

/* 考点单行卡片 */
.cg-point-row {
  border-bottom: 1px solid #f0f2f5;
  transition: background 0.2s;
}
.cg-point-row:hover {
  background: #fbfdff;
}
.cg-point-row:last-child {
  border-bottom: none;
}

.cg-point-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  cursor: pointer;
  gap: 12px;
}

.cg-point-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.badge-level {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.badge-level-a {
  background: #fff1f0;
  color: #cf1322;
  border: 1px solid #ffa39e;
}
.badge-level-b {
  background: #e6f7ff;
  color: #096dd9;
  border: 1px solid #91d5ff;
}
.badge-level-c {
  background: #f5f5f5;
  color: #595959;
  border: 1px solid #d9d9d9;
}

.cg-point-name {
  font-size: 14px;
  font-weight: 600;
  color: #262626;
}
.cg-point-topic-counts {
  font-size: 12px;
  color: #8c8c8c;
  background: #f5f7fa;
  padding: 2px 8px;
  border-radius: 4px;
}

.cg-point-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.badge-mastery {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}
.badge-mastery-done {
  background: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}
.badge-mastery-doing {
  background: #fff7e6;
  color: #fa8c16;
  border: 1px solid #ffd591;
}
.badge-mastery-todo {
  background: #f5f5f5;
  color: #8c8c8c;
  border: 1px solid #d9d9d9;
}

.btn-toggle-point {
  font-size: 12px;
  color: #1890ff;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 考点展开的题目列表 (Drawer) */
.cg-point-drawer {
  padding: 14px 20px 18px 20px;
  background: #f8fafc;
  border-top: 1px dashed #e4eaf2;
  display: none;
}
.cg-point-drawer.open {
  display: block;
}

.cg-section-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cg-section-title.title-mother {
  color: #d46b08;
}
.cg-section-title.title-child {
  color: #096dd9;
  margin-top: 14px;
}

.cg-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
}

.cg-topic-card {
  background: #fff;
  border-radius: 6px;
  padding: 12px 14px;
  border: 1px solid #e8eef5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}
.cg-topic-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: #bae7ff;
}
.cg-topic-card.mother-card {
  border-left: 4px solid #fa8c16;
}
.cg-topic-card.child-card {
  border-left: 4px solid #1890ff;
}

.cg-topic-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.cg-topic-tag-id {
  font-size: 12px;
  font-weight: 700;
  color: #1a2b42;
}
.cg-topic-tag-score {
  font-size: 12px;
  color: #f5222d;
  font-weight: 600;
}
.cg-topic-card-snippet {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cg-topic-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cg-topic-status-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}
.status-done {
  background: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}
.status-todo {
  background: #f5f5f5;
  color: #8c8c8c;
}

.btn-do-cg-topic {
  background: #1890ff;
  color: #fff;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-do-cg-topic:hover {
  background: #40a9ff;
}

/* ======================================================================
   AI 在线模拟阅卷器专属样式 (司法部官方标准)
   ====================================================================== */
.ai-grade-pane {
  padding: 4px 0 20px 0;
}
.ai-grade-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  background: #f8fafc;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.tab-ai-badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: bold;
}
.tab-ai-badge.badge-loading {
  background: #e0f2fe;
  color: #0369a1;
}
.tab-ai-badge.badge-done {
  background: #dcfce7;
  color: #15803d;
}
.tab-ai-badge.badge-error {
  background: #fee2e2;
  color: #b91c1c;
}
.ai-loading-card {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  margin-bottom: 20px;
}
.ai-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border: 4px solid #e2e8f0;
  border-top-color: #1565c0;
  border-radius: 50%;
  animation: aiSpin 1s linear infinite;
}
@keyframes aiSpin {
  to { transform: rotate(360deg); }
}
.ai-loading-title {
  font-size: 16px;
  font-weight: bold;
  color: #0f172a;
  margin-bottom: 6px;
}
.ai-loading-desc {
  font-size: 13px;
  color: #64748b;
}
.ai-initial-notice {
  text-align: center;
  padding: 36px 20px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #94a3b8;
  margin-bottom: 16px;
}
.ai-score-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
}
.ai-model-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: monospace;
}
.ai-summary-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1565c0;
  border-radius: 6px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ai-summary-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #1565c0;
  margin-bottom: 8px;
}
.ai-summary-body {
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
}
.ai-sub-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.ai-sub-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.ai-sub-score-badge {
  font-size: 14px;
  font-weight: bold;
  color: #1565c0;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: 4px;
}
.ai-point-result-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
  transition: all 0.2s;
}
.ai-point-result-item.pr-hit {
  border-left: 4px solid #22c55e;
  background: #fcfdfc;
}
.ai-point-result-item.pr-partial {
  border-left: 4px solid #f59e0b;
  background: #fffdfa;
}
.ai-point-result-item.pr-miss {
  border-left: 4px solid #ef4444;
  background: #fffafa;
}
.ai-point-result-item.pr-contradicted {
  border-left: 4px solid #7c3aed;
  background: #fdfaff;
}
.ai-pr-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ai-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.ai-status-badge.hit {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.ai-status-badge.partial {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.ai-status-badge.miss {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.ai-status-badge.contradicted {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}
.ai-pr-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  flex: 1;
}
.ai-pr-score {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.ai-pr-evidence {
  font-size: 12px;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 4px;
  line-height: 1.5;
}
.ai-pr-reason {
  font-size: 12px;
  color: #475569;
  margin-top: 4px;
  line-height: 1.5;
}
.ai-analysis-card {
  margin-top: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 10px 12px;
}
.ai-critique-card {
  margin-top: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 10px 12px;
}
.ai-model-card {
  margin-top: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 10px 12px;
}
.ai-card-subtitle {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}
.ai-user-answer-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #64748b;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  margin-top: 10px;
}
