/* 知术 · 功能升级补丁样式（与平台深青主题一致） */
:root {
  --up-deep: #0b3035;
  --up-teal: #0c8d82;
  --up-ink: #14393e;
  --up-line: #d7e5e2;
  --up-soft: #f3f6f5;
}

/* ---------- 返回键 ---------- */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 10px;
  margin-right: 12px;
  border: 1px solid var(--up-line);
  border-radius: 999px;
  background: #fff;
  color: var(--up-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.back-button span { color: var(--up-teal); font-size: 15px; line-height: 1; }
.back-button:hover { border-color: var(--up-teal); color: var(--up-teal); background: #eef7f5; }
.page-back-btn { margin-bottom: 10px; }

/* ---------- 可点击统计卡 ---------- */
.metric-clickable { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; position: relative; }
.metric-clickable::after {
  content: '查看详情 →';
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 11px;
  font-style: normal;
  color: var(--up-teal);
  opacity: 0;
  transition: opacity .15s ease;
}
.metric-clickable:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11, 48, 53, .1); }
.metric-clickable:hover::after { opacity: 1; }

/* ---------- 统计详情页 ---------- */
.class-filter-select {
  align-self: flex-start;
  padding: 9px 12px;
  border: 1px solid var(--up-line);
  border-radius: 9px;
  background: #fff;
  color: var(--up-ink);
  font-size: 13px;
}
.class-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.class-stat-card {
  background: #fff;
  border: 1px solid var(--up-line);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all .15s ease;
}
.class-stat-card:hover { border-color: var(--up-teal); box-shadow: 0 8px 20px rgba(12, 141, 130, .12); }
.class-stat-card header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.class-stat-card header b { color: var(--up-ink); font-size: 15px; }
.class-stat-card header span { font-size: 12px; color: #81959a; }
.class-stat-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.class-stat-nums div { text-align: center; }
.class-stat-nums b { display: block; color: var(--up-teal); font-size: 17px; }
.class-stat-nums span { font-size: 11px; color: #81959a; }
.metric-detail-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-detail-card {
  background: linear-gradient(135deg, #0f3a40, #0b3035);
  border-radius: 12px;
  padding: 16px;
  color: #fff;
}
.metric-detail-card span { font-size: 12px; opacity: .75; display: block; }
.metric-detail-card b { font-size: 26px; display: block; margin: 4px 0; color: #9be4db; }
.metric-detail-card i { font-size: 11px; opacity: .65; font-style: normal; }
.metric-detail-table {
  background: #fff;
  border: 1px solid var(--up-line);
  border-radius: 12px;
  padding: 16px 18px;
}
.metric-detail-table h3 { margin-bottom: 12px; color: var(--up-ink); }
.metric-detail-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) 2fr .6fr .5fr .7fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 4px;
  border-bottom: 1px solid var(--up-soft);
  font-size: 13px;
}
.metric-detail-row:last-child { border-bottom: none; }
.metric-detail-row > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.metric-detail-row .row-case { color: #81959a; }

/* ---------- 班级徽标 ---------- */
.class-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: #e8f4f2;
  border: 1px solid #bfe0db;
  color: #0a6c63;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- 学生证据页 ---------- */
.evidence-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 18px; }
.evidence-summary div { background: #fff; border: 1px solid var(--up-line); border-radius: 12px; padding: 14px 16px; }
.evidence-summary b { display: block; font-size: 22px; color: var(--up-teal); }
.evidence-summary span { font-size: 12px; color: #81959a; }
.proof-list { display: grid; gap: 14px; }
.proof-card {
  background: #fff;
  border: 1px solid var(--up-line);
  border-radius: 12px;
  padding: 16px 18px;
}
.proof-card.pending { border-left: 4px solid #d9a441; }
.proof-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.proof-id { display: flex; align-items: center; gap: 10px; }
.proof-id > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.proof-id b { color: var(--up-ink); font-size: 14px; }
.student-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--up-deep);
  color: #9be4db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: none;
}
.proof-meta { display: flex; align-items: center; gap: 10px; }
.proof-case { margin-top: 10px; font-size: 12px; color: #81959a; }
.proof-card h4 { margin-top: 12px; font-size: 13px; color: var(--up-ink); }
.proof-card ul { margin-top: 8px; display: grid; gap: 6px; }
.proof-card li {
  position: relative;
  padding: 8px 12px 8px 28px;
  background: var(--up-soft);
  border-radius: 8px;
  font-size: 12.5px;
  color: #3c555a;
  list-style: none;
}
.proof-card li::before { content: '!'; position: absolute; left: 11px; color: #c0392b; font-weight: 700; }
.proof-card footer { margin-top: 12px; display: flex; justify-content: flex-end; }

/* ---------- 筛选条（结果回顾 / 病例管理） ---------- */
.record-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--up-line);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 14px 0;
}
.record-filter-bar .filter-label { font-size: 12px; font-weight: 700; color: var(--up-ink); }
.record-filter-bar select {
  padding: 8px 10px;
  border: 1px solid var(--up-line);
  border-radius: 9px;
  background: var(--up-soft);
  color: var(--up-ink);
  font-size: 13px;
  cursor: pointer;
}
.record-filter-bar select:hover { border-color: var(--up-teal); }
.record-filter-bar .filter-count { font-size: 12px; color: #81959a; margin-left: auto; }
.filter-empty { border-style: dashed; }

/* ---------- 病例【查看】按钮与预览弹窗 ---------- */
.view-case-btn {
  padding: 7px 14px;
  border: 1px solid var(--up-teal);
  border-radius: 8px;
  background: #fff;
  color: var(--up-teal);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.view-case-btn:hover { background: var(--up-teal); color: #fff; }
.case-preview h3 { margin: 10px 0 14px; color: var(--up-ink); }
.preview-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-chips .level,
.preview-chips .case-dept {
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8f4f2;
  color: #0a6c63;
  font-size: 11px;
  font-weight: 600;
}
.preview-chips .preview-urgent {
  padding: 3px 10px;
  border-radius: 999px;
  background: #fdf3e2;
  color: #9a6b16;
  font-size: 11px;
  font-weight: 600;
}
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.preview-fact {
  background: var(--up-soft);
  border-radius: 9px;
  padding: 10px 12px;
}
.preview-fact label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--up-teal);
  margin-bottom: 4px;
  letter-spacing: .04em;
}
.preview-fact p { font-size: 12.5px; color: #3c555a; line-height: 1.55; }
@media (max-width: 640px) {
  .preview-grid { grid-template-columns: 1fr; }
  .metric-detail-row { grid-template-columns: 1fr 1fr; }
}

/* ============ V0.5 第二轮：训练页一屏化 / 返回键 / 密码门 ============ */

/* 流程页（训练/报告）浮动返回键 */
.flow-back-btn {
  position: fixed; top: 76px; right: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--clinical-line, #d7e5e2);
  background: #fff; color: var(--clinical-teal, #0c8d82);
  font: 600 12px 'Noto Sans SC', sans-serif;
  box-shadow: 0 6px 18px rgba(11, 48, 53, .12);
  transition: background .18s, color .18s;
}
.flow-back-btn:hover { background: var(--clinical-teal, #0c8d82); color: #fff; }

/* 密码门提示 */
.pwd-gate-tip { margin: 10px 0 0; font-size: 12px; color: #6d858a; line-height: 1.6; }

/* 训练/考核页：三栏一屏化，中间对话区最大化（宽屏生效；窄屏沿用原响应式） */
@media (min-width: 901px) {
  #view.zhishu-fixed-simulation { padding: 14px 26px 12px; max-width: none; }
  .zhishu-fixed-simulation .training-titlebar { margin-bottom: 8px; }
  .zhishu-fixed-simulation .training-titlebar h1 { font-size: 19px; }
  .zhishu-fixed-simulation .training-titlebar .kicker { margin-bottom: 2px; }
  .zhishu-fixed-simulation .training-titlebar p { margin-top: 2px; font-size: 11px; }
  .zhishu-fixed-simulation .exam-titlebar { padding: 8px 14px; }
  .zhishu-fixed-simulation .state-strip { height: 34px; margin-bottom: 8px; padding: 0 12px; }
  /* 顶栏66 + 视图上下padding26 + 标题栏约70 + 状态条34 + 两处间距16 ≈ 212 */
  .zhishu-fixed-simulation .v4-training-grid {
    height: calc(100vh - 212px); min-height: 360px; gap: 10px; align-items: stretch;
  }
  .zhishu-fixed-simulation .v4-dialog { min-height: 0; height: 100%; }
  .zhishu-fixed-simulation .v4-chat-stream { min-height: 0; max-height: none; flex: 1; padding: 12px 16px; }
  .zhishu-fixed-simulation .v4-case,
  .zhishu-fixed-simulation .v4-coach { height: 100%; overflow: auto; padding: 12px 14px; }
  .zhishu-fixed-simulation .dialog-hero { padding: 9px 14px 8px; }
  .zhishu-fixed-simulation .dialog-hero h2 { font-size: 15px; }
  .zhishu-fixed-simulation .v4-composer { padding: 8px 10px; }
  .zhishu-fixed-simulation .v4-composer textarea { height: 54px; }
  .zhishu-fixed-simulation .v4-composer > div { margin-top: 6px; }
  .zhishu-fixed-simulation .v4-inline-tip { margin: 0 10px 6px; padding: 6px 9px; }
  .zhishu-fixed-simulation .v4-message { margin-bottom: 10px; }
  .zhishu-fixed-simulation .v4-case h3 { font-size: 14px; margin: 6px 0 8px; }
  .zhishu-fixed-simulation .v4-case dl { margin: 8px 0; }
  .zhishu-fixed-simulation .v4-case dl div { padding: 5px 0; }
  .zhishu-fixed-simulation .patient-mini { padding: 7px; }
  .zhishu-fixed-simulation .coach-status { margin: 8px 0; gap: 5px; }
  .zhishu-fixed-simulation .coach-ability { padding-top: 8px; }
  .zhishu-fixed-simulation .coach-ability > div { margin: 5px 0; }
  .zhishu-fixed-simulation .hint-card { margin-top: 8px; padding: 8px; }
  .zhishu-fixed-simulation .exam-board { min-height: 220px; padding: 12px; }
  .zhishu-fixed-simulation .exam-board b { font-size: 26px; margin: 8px 0; }
}

/* ============ V0.5 第四轮 ============ */
/* 每页只留一个返回键；布局调节组件隐藏 */
.flow-back-btn, .page-back-btn, .workspace-controls,
.v4-training-grid .pane-divider, .v4-training-grid .collapsed-pane-tab { display: none !important; }

/* 训练计时器 */
.session-timer { font: 600 13px 'DM Mono', monospace; color: #0c8d82; background: #e8f6f4; border: 1px solid #cfe9e6; border-radius: 999px; padding: 6px 12px; margin-right: 10px; white-space: nowrap; }

/* 双方气泡颜色区分：学生深青底白字，家属浅青底深字（高特异性压过 v4.css .clinical-simulation 规则） */
.v4-message.student .bubble,
.clinical-simulation .v4-message.student .bubble { background: #0d5665 !important; color: #fff !important; border-color: #0d5665 !important; }
.clinical-simulation .v4-message.student .bubble small { color: #a8d8d2; }

/* 对话区头部紧凑一行（覆盖 v4.css 强制的 min-height:166px） */
.dialog-hero,
.clinical-simulation .dialog-hero { padding: 8px 14px !important; gap: 9px !important; min-height: 0 !important; height: auto !important; }
/* hero 内情绪头像与体征条紧凑化：头像 104px→36px，体征三指标压成一行 */
.clinical-simulation .dialog-hero .family-avatar.patient-model { width: 36px !important; height: 36px !important; box-shadow: 0 0 0 2px #d9f2eb !important; }
.clinical-simulation .dialog-hero .patient-model-label { display: none; }
.clinical-simulation .dialog-hero .patient-vitals { display: flex; gap: 12px; align-items: center; min-width: 0; }
.clinical-simulation .dialog-hero .patient-vitals > p { display: none; }
.clinical-simulation .dialog-hero .patient-vitals > div { display: flex; gap: 4px; align-items: center; }
.clinical-simulation .dialog-hero .patient-vitals i { width: 28px; }
.dialog-hero h2 { font-size: 15px !important; margin: 0 !important; }
.dialog-hero p { margin: 2px 0 0 !important; font-size: 11px !important; }
.family-avatar { width: 30px !important; height: 30px !important; }
.dh-main { flex: 1; min-width: 0; }
.dh-stage { text-align: right; color: #83969a; font-size: 10px; white-space: nowrap; }
.dh-stage b { display: block; color: #15777b; font-size: 12px; margin-top: 2px; }

/* 病例全字段编辑表单 */
.modal-body { max-height: 72vh; overflow: auto; }
.case-form .cf-sec { margin: 14px 0 8px; font: 600 13px 'Noto Serif SC', serif; color: #0b4d5a; border-left: 3px solid #0c8d82; padding-left: 8px; }
.case-form .cf-sec:first-child { margin-top: 0; }
.case-form .cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 700px) { .case-form .cf-grid { grid-template-columns: 1fr; } }

/* 报告评分明细 */
.score-detail-panel .dim-row { display: grid; grid-template-columns: 150px 1fr 52px; gap: 8px; align-items: center; margin: 6px 0; font-size: 11px; color: #4c6a70; }
.score-detail-panel .dim-row i { display: block; height: 6px; background: #e7f0ee; border-radius: 4px; overflow: hidden; }
.score-detail-panel .dim-row em { display: block; height: 100%; background: linear-gradient(90deg, #42bcab, #219aaa); }
.score-detail-panel .dim-row b { font: 600 11px 'DM Mono', monospace; color: #106c71; text-align: right; }
.score-detail-panel .flag-detail li { margin: 8px 0; }
.score-detail-panel .flag-detail b { color: #b05e4f; }
.score-detail-panel .flag-detail p { margin: 3px 0 0; font-size: 11px; color: #6b7f84; }
.must-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.must-chip { font-size: 11px; border-radius: 8px; padding: 6px 9px; }
.must-chip.hit { background: #e9f8f2; color: #1d7a55; }
.must-chip.miss { background: #fdeeee; color: #b05e4f; }
@media (max-width: 700px) { .must-grid { grid-template-columns: 1fr; } }

/* ============ V0.5 图文操作手册 ============ */
.guide-flow { display: grid; gap: 16px; }
.guide-step { background: #fff; border: 1px solid var(--line, #dce8e5); border-radius: 12px; overflow: hidden; }
.guide-step > header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #e7f0ee; background: #f7fbfa; }
.guide-no { font: 700 18px 'DM Mono', monospace; color: #0c8d82; background: #e3f5f1; border-radius: 8px; padding: 4px 10px; }
.guide-step h3 { margin: 0; font: 600 16px 'Noto Serif SC', serif; color: #123f45; }
.guide-body { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 18px; padding: 16px 18px; align-items: start; }
.guide-body img { width: 100%; border: 1px solid #d7e5e2; border-radius: 10px; cursor: zoom-in; transition: transform .2s; }
.guide-body img.zoom { position: fixed; inset: 4vh 4vw; width: 92vw; height: 92vh; object-fit: contain; background: rgba(10,30,32,.92); z-index: 999; cursor: zoom-out; padding: 8px; }
.guide-body ul { margin: 0; padding-left: 18px; font-size: 13px; color: #42636a; line-height: 1.9; }
.guide-body li { margin: 6px 0; }
.guide-body b { color: #0b5a5e; }
.guide-faq { margin-top: 16px; background: #fff; border: 1px solid var(--line, #dce8e5); border-radius: 12px; padding: 16px 18px; }
.guide-faq h3 { margin: 0 0 10px; font: 600 16px 'Noto Serif SC', serif; color: #123f45; }
.guide-faq details { border-top: 1px dashed #dce8e5; padding: 10px 2px; }
.guide-faq summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #145f67; }
.guide-faq details p { margin: 8px 0 2px; font-size: 12px; color: #5c787e; line-height: 1.8; }
@media (max-width: 900px) { .guide-body { grid-template-columns: 1fr; } }

/* ============ V0.5 第五轮（8项需求） ============ */

/* ⑥ 三栏自由拖拽调宽 */
.v4-training-grid { position: relative; }
.pane-resizer {
  position: absolute; top: 0; bottom: 0; width: 9px;
  transform: translateX(-50%);
  background: rgba(12, 141, 130, .14);
  border-left: 1px solid rgba(12, 141, 130, .28);
  border-right: 1px solid rgba(12, 141, 130, .28);
  z-index: 8; cursor: col-resize;
  transition: background .15s;
}
.pane-resizer:hover, .pane-resizer.dragging { background: rgba(12, 141, 130, .5); }
.pane-resizer::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 2px; height: 40px; border-radius: 2px;
  background: rgba(255, 255, 255, .9); opacity: 0;
  transition: opacity .15s;
}
.pane-resizer:hover::after, .pane-resizer.dragging::after { opacity: 1; }
.pane-resizer.dragging ~ * { user-select: none; }

/* ⑦ 对话由医生发起：空对话提示 */
.doctor-first-hint {
  margin: 12px 6px; padding: 11px 15px; border-radius: 10px;
  background: linear-gradient(90deg, #fff7e8, #fdf4e4);
  border: 1px dashed #d8a64a;
  color: #7a5a1e; font-size: 12.5px; line-height: 1.8;
}
.doctor-first-hint b { color: #b07c1f; }

/* 对话转录气泡（报告弹窗 + 教师复核） */
.zv-transcript { display: flex; flex-direction: column; gap: 11px; max-height: 60vh; overflow: auto; padding: 4px 2px; }
.zv-line { display: flex; flex-direction: column; align-items: flex-start; max-width: 88%; }
.zv-line.me { align-self: flex-end; align-items: flex-end; }
.zv-who { font-size: 10.5px; color: #8aa3a0; margin: 0 5px 3px; }
.zv-bubble {
  padding: 9px 13px; border-radius: 12px 12px 12px 3px;
  background: #eef5f4; border: 1px solid #dde9e7;
  color: #2c4a50; font-size: 13px; line-height: 1.8;
  white-space: pre-wrap; word-break: break-word;
}
.zv-line.me .zv-bubble { background: #0d5665; border-color: #0d5665; color: #fff; border-radius: 12px 12px 3px 12px; }
.zv-view-dialog-btn { margin-right: 8px; }

/* 教师复核三页签 */
.rv-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e3eeec; margin: -2px 0 14px; }
.rv-tab {
  border: none; background: none; padding: 9px 18px;
  font-size: 13px; font-weight: 600; color: #6d8889;
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.rv-tab:hover { color: #0c8d82; }
.rv-tab.active { color: #0c8d82; border-bottom-color: #0c8d82; }
.rv-panel { animation: rvFade .18s ease; }
@keyframes rvFade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.zv-rpt-tab h4 { margin: 16px 0 8px; font-size: 13px; color: #0b4d5a; }
.zv-rpt-tab .dim-row { display: grid; grid-template-columns: 170px 1fr 54px; gap: 8px; align-items: center; margin: 6px 0; font-size: 11.5px; color: #4c6a70; }
.zv-rpt-tab .dim-row i { display: block; height: 7px; background: #e7f0ee; border-radius: 4px; overflow: hidden; }
.zv-rpt-tab .dim-row em { display: block; height: 100%; background: linear-gradient(90deg, #42bcab, #219aaa); }
.zv-rpt-tab .dim-row b { font: 600 11px 'DM Mono', monospace; color: #106c71; text-align: right; }
.zv-rpt-tab .flag-detail { list-style: none; margin: 0; padding: 0; }
.zv-rpt-tab .flag-detail li { margin: 8px 0; padding: 8px 10px; background: #fbf5f3; border-radius: 8px; }
.zv-rpt-tab .flag-detail b { color: #b05e4f; font-size: 12px; }
.zv-rpt-tab .flag-detail p { margin: 3px 0 0; font-size: 11.5px; color: #6b7f84; line-height: 1.7; }

/* ② 成绩趋势图 */
.trend-panel { margin: 14px 0 18px; }
.trend-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; }
.trend-head select { padding: 7px 12px; border: 1px solid #d3e2df; border-radius: 8px; font-size: 13px; background: #fff; }
#trendMeta { font-size: 12px; color: #7a8f8f; }
.trend-svg { width: 100%; max-width: 720px; height: auto; }
.trend-svg text { font-size: 10px; fill: #8ba0a0; }
.trend-svg .trend-num { fill: #0c8d82; font-weight: 700; font-size: 10.5px; }
.trend-svg .trend-avg { fill: #c5842f; font-weight: 600; }

/* ③ 病例多维筛选栏 */
.cf-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.cf-filter-bar input {
  min-width: 210px; padding: 8px 12px;
  border: 1px solid #d3e2df; border-radius: 8px; font-size: 13px; background: #fff;
}
.cf-filter-bar input:focus { outline: none; border-color: #0c8d82; box-shadow: 0 0 0 3px rgba(12, 141, 130, .1); }
.cf-filter-bar #cfCount { margin-left: auto; }

/* ③ AI 智能补全条 */
.cf-ai-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(90deg, #eefaf7, #f5fbfb);
  border: 1px solid #bfe6df; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 14px;
}
.cf-ai-bar > span { font-size: 12px; color: #4f7a75; line-height: 1.6; flex: 1; min-width: 240px; }
.cf-ai-bar b { color: #0c8d82; }
.ai-fill-btn {
  border: none; cursor: pointer; font-weight: 700; font-size: 13px; color: #fff;
  background: linear-gradient(90deg, #0c8d82, #15a394);
  padding: 9px 20px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(12, 141, 130, .28); white-space: nowrap;
}
.ai-fill-btn:hover { filter: brightness(1.07); }
.ai-fill-btn:active { transform: translateY(1px); }

/* ④ 雷达图升级：多层同心环 + 辐条 + 数据点 + 百分比标签 */
.radar { width: 196px !important; max-width: 46vw; height: auto !important; overflow: visible; }
.capability-radar .radar { width: 180px !important; }
.radar .radar-grid-ring { fill: none; stroke: #d9e8e5; stroke-width: 1; }
.radar .radar-spoke { stroke: #d9e8e5; stroke-width: 1; }
.radar .radar-value { fill: rgba(12, 141, 130, .2); stroke: #0c8d82; stroke-width: 2; stroke-linejoin: round; }
.radar .radar-dot { fill: #0c8d82; stroke: #fff; stroke-width: 1.5; }
.radar .radar-label { font-size: 9.5px; font-weight: 600; fill: #2f4f54; }
.radar .radar-pct { fill: #0c8d82; font-weight: 700; }
/* 报告页深色背景下的反色适配 */
.report-radar-wrap .radar .radar-grid-ring,
.report-radar-wrap .radar .radar-spoke { stroke: rgba(196, 239, 232, .45); }
.report-radar-wrap .radar .radar-value { fill: rgba(113, 216, 200, .42); stroke: #8fe9db; }
.report-radar-wrap .radar .radar-dot { fill: #8fe9db; }
.report-radar-wrap .radar .radar-label { fill: #dcf4ef; }
.report-radar-wrap .radar .radar-pct { fill: #8fe9db; }

/* ============ V0.5 第六轮（9项需求） ============ */

/* ⑤ 病例难度徽章 */
.diff-chip {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
  margin-left: 6px; vertical-align: middle;
}
.diff-chip.lv1 { background: #e9f8f2; color: #1d7a55; border: 1px solid #bfe8d8; }
.diff-chip.lv2 { background: #fff6e6; color: #9a6b16; border: 1px solid #ecd39e; }
.diff-chip.lv3 { background: #fdeeee; color: #b05e4f; border: 1px solid #efc7c0; }

/* ⑥⑦ 学生管理：班级分组 + 学生卡 + 档案弹窗 */
.stu-class { margin: 18px 0 8px; }
.stu-class-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 15px 'Noto Serif SC', serif; color: #123f45; }
.stu-class-head em { font: 400 12px 'Noto Sans SC', sans-serif; color: #81959a; }
.stu-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--up-line, #d7e5e2);
  border-radius: 12px; padding: 14px 16px;
}
.stu-card .student-avatar { width: 38px; height: 38px; font-size: 16px; }
.stu-card .student-avatar.big { width: 46px; height: 46px; font-size: 20px; }
.stu-main { flex: 1; min-width: 0; }
.stu-main h3 { margin: 0 0 3px; font-size: 15px; color: #14393e; }
.stu-main p { margin: 0 0 4px; font-size: 12.5px; color: #42636a; }
.stu-main span { font-size: 11.5px; color: #81959a; }
.stu-card + .stu-card { margin-top: 10px; }
.stu-archive { max-height: 66vh; overflow: auto; padding-right: 4px; }
.stu-arc-head { display: flex; gap: 14px; align-items: center; padding: 4px 2px 12px; border-bottom: 1px solid #e7f0ee; }
.stu-arc-head b { font-size: 16px; color: #14393e; margin-right: 8px; }
.stu-arc-head p { margin: 6px 0 0; font-size: 12px; color: #5c787e; }
.stu-arc-type { margin: 16px 0 8px; font-size: 13px; color: #0b4d5a; border-left: 3px solid #0c8d82; padding-left: 8px; }
.stu-arc-empty { font-size: 12px; color: #9ab0af; margin: 4px 2px; }
.stu-rec {
  display: flex; align-items: center; gap: 10px;
  background: #f7fbfa; border: 1px solid #e3eeec;
  border-radius: 10px; padding: 9px 12px; margin-bottom: 8px;
}
.stu-rec-main { flex: 1; min-width: 0; }
.stu-rec-main b { display: block; font-size: 13px; color: #14393e; }
.stu-rec-main span { font-size: 11px; color: #81959a; }
.stu-rec-side { display: flex; align-items: center; gap: 6px; }
.stu-rec-side .score { font-size: 16px; margin-right: 4px; }
.stu-rec-side .ghost-btn { padding: 5px 11px; font-size: 12px; }
.stu-arc-issues { margin-top: 12px; background: #fdf8ef; border: 1px solid #ecd9b0; border-radius: 10px; padding: 10px 14px; }
.stu-arc-issues h4 { margin: 0 0 6px; font-size: 12.5px; color: #8a641f; }
.stu-arc-issues ul { margin: 0; padding-left: 18px; }
.stu-arc-issues li { font-size: 12px; color: #6b5a33; line-height: 1.8; }

/* ⑧ 评分模板 */
.tpl-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tpl-preset { background: #fff; border: 1.5px solid var(--up-line, #d7e5e2); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.tpl-preset.active { border-color: #0c8d82; box-shadow: 0 6px 18px rgba(12, 141, 130, .12); }
.tpl-preset header { display: flex; align-items: center; justify-content: space-between; }
.tpl-preset h3 { margin: 0; font-size: 15px; color: #14393e; }
.tpl-tag { padding: 2px 10px; border-radius: 999px; background: #e8f4f2; color: #0a6c63; font-size: 11px; font-weight: 700; }
.tpl-preset p { margin: 0; font-size: 12px; color: #5c787e; line-height: 1.7; flex: 1; }
.tpl-sum { font: 600 11px 'DM Mono', monospace; color: #81959a; }
.tpl-editor { background: #fff; border: 1px solid var(--up-line, #d7e5e2); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.tpl-editor h3 { margin: 0 0 12px; font-size: 14px; color: #0b4d5a; }
.tpl-row { display: grid; grid-template-columns: 200px 1fr 76px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed #edf4f2; }
.tpl-row label { font-size: 12.5px; font-weight: 700; color: #14393e; }
.tpl-row small { font-size: 11px; color: #81959a; line-height: 1.6; }
.tpl-row input { padding: 7px 10px; border: 1px solid #d3e2df; border-radius: 8px; font-size: 13px; width: 100%; box-sizing: border-box; text-align: center; }
.tpl-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 12px; }
.tpl-foot span { font: 600 12px 'DM Mono', monospace; color: #8a641f; }
.tpl-note { background: #fff; border: 1px solid var(--up-line, #d7e5e2); border-radius: 12px; padding: 14px 18px; }
.tpl-note h3 { margin: 0 0 8px; font-size: 14px; color: #0b4d5a; }
.tpl-note p { margin: 0; font-size: 12px; color: #42636a; line-height: 2; }
@media (max-width: 700px) { .tpl-row { grid-template-columns: 1fr; gap: 4px; } }

/* ⑨ 双端设置 */
.switch-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #2c4a50; padding: 9px 0; border-bottom: 1px dashed #edf4f2; }
.switch-row:last-child { border-bottom: none; }
.switch-row em { font-style: normal; font-size: 12px; color: #81959a; flex: 1; text-align: right; }
.switch-row.soon { color: #9ab0af; }
.switch-row.select-row select { margin-left: auto; padding: 6px 10px; border: 1px solid #d3e2df; border-radius: 8px; font-size: 12.5px; background: #fff; }
.soon-badge {
  margin-left: auto; padding: 3px 10px; border-radius: 999px;
  background: #f0f3f2; border: 1px dashed #c3d4d1;
  color: #8aa3a0; font-size: 11px; white-space: nowrap;
}
.btn-pair { display: flex; gap: 10px; flex-wrap: wrap; padding: 8px 0; }
.btn-pair .secondary-btn, .btn-pair .ghost-btn { font-size: 12.5px; padding: 8px 14px; }

/* ============ 第七轮：低认知类型块 / 班级筛选 / 访问地址卡 ============ */
.persona-fixed { align-items: flex-start; }
.persona-fixed-tag { display: flex; flex-direction: column; gap: 3px; }
.persona-fixed-tag b { color: #0a6c63; font-size: 13px; }
.persona-fixed-tag i { font-style: normal; color: #5f777b; font-size: 11.5px; }

.stu-filter-bar input[type="search"] {
  padding: 8px 10px; border: 1px solid var(--up-line); border-radius: 9px;
  background: var(--up-soft); color: var(--up-ink); font-size: 13px; min-width: 170px;
}
.stu-filter-bar input[type="search"]:focus { outline: none; border-color: var(--up-teal); background: #fff; }

.set-url-card {
  background: linear-gradient(135deg, #f3f9f8, #eaf4f2);
  border: 1px solid #bfe0db; border-radius: 12px;
  padding: 14px 18px; margin: 0 0 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.set-url-card .set-url-label { font-size: 12px; font-weight: 700; color: #0a6c63; letter-spacing: .04em; }
.set-url-card code {
  background: #0b3035; color: #9be4db; padding: 7px 14px; border-radius: 8px;
  font-size: 13.5px; font-family: Consolas, monospace;
}
.set-url-card .ghost-btn { margin-left: 0; }
.set-url-card p { flex-basis: 100%; margin: 2px 0 0; font-size: 12px; color: #6d858a; line-height: 1.6; }

/* 手册图片：放大查看 */
.guide-body img.zoom {
  position: fixed; z-index: 999; max-width: 92vw; max-height: 92vh;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 30px 80px rgba(0,0,0,.45); cursor: zoom-out;
}

/* ===== 文字对比度增强：把过浅的辅助文字加深，保证白底可读 ===== */
.kicker, .metric-card span, .quick-stat span, .section-title span,
.mode-card p, .weak-card p, .hint-card p, .coach-ability label,
.coach-status span, .report-hero p, .v4-case p, .case-card p,
.brief-line > p, .case-card footer span, .evidence-card p,
.feedback p, .set-url-card p, .full-record p, .case-dept,
.stu-card .stu-meta, .stu-class-head small, .report-bar span,
.radar text, .ability-center small, .welcome-panel p {
  color: #3d5a5e !important;
}
.v4-case dl dt, .case-card h3 + p, .page-head p, .panel p { color: #4a676b !important; }
.v4-chat-stream small, .msg-meta, .sentence-review span,
.v4-message small { color: #5a7779 !important; }
.state-strip b, .coach-status b, .ability-center h3 { color: #1f4a4e !important; }
small { color: #4a676b !important; }
.sidebar-bottom p, .welcome-panel .disclaimer, footer .disclaimer { color: #5a7779 !important; }
.section-title, .section-title > * { color: #1f4a4e !important; }
/* 能力摘要与训练统计：防文字粘连、加深颜色 */
.zhishu-ability-core > div { gap: 8px !important; align-items: center !important; }
.zhishu-ability-core span, .zhishu-ability-core em { color: #3d5a5e !important; font-size: 12px !important; }
.zhishu-ability-summary footer { gap: 10px !important; flex-wrap: wrap !important; }
.zhishu-ability-summary footer span { color: #3d5a5e !important; margin-right: 10px !important; }
.zhishu-training-stats { gap: 14px !important; }
.zhishu-training-stats span { color: #3d5a5e !important; margin-right: 6px !important; }
.zhishu-training-stats span b { color: #1f4a4e !important; }
/* 报告 V2：雷达 + 紧凑指标头部 + 逐句卡片 */
.report-page-head { margin-bottom: 14px; }
.report-page-head .kicker { font-size: 10px !important; letter-spacing: .16em; margin-bottom: 2px; }
.report-page-head h1 { font-size: 23px !important; margin: 2px 0 4px !important; }
.report-page-head > div > p:last-child { font-size: 12px !important; color: #5c787e; }
.report-page-head .ghost-btn { padding: 7px 14px; font-size: 12.5px; }

.report-hero-v2 {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 15px 18px;
}
.rhv2-radar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 13px;
  padding: 10px 12px;
}
.rhv2-radar .radar { width: 128px !important; max-width: none !important; flex: none; }
.rhv2-radar h3 { font: 600 12.5px 'Noto Serif SC', serif; color: #e8f8f5; margin: 0 0 4px; white-space: nowrap; }
.rhv2-radar p { margin: 0 !important; font-size: 10.5px !important; color: #a9d2cc !important; line-height: 1.55; }
.rhv2-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.report-hero-v2.exam4 .rhv2-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rhv2-stats > div {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  padding: 11px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.rhv2-stats p { margin: 0 0 2px !important; color: #a9d8d2 !important; font-size: 11px !important; letter-spacing: .04em; }
.rhv2-stats b { font: 600 25px/1.15 'DM Mono', ui-monospace, monospace !important; color: #f0fbf9 !important; }
.rhv2-stats b small { font-size: 11.5px !important; color: #9fc8c3 !important; font-weight: 500; }
.rhv2-stats span { display: block; margin-top: 4px !important; color: #c3e7e3 !important; font-size: 11px !important; line-height: 1.45; }
.rhv2-teacher .t-row { font: 600 13.5px/1.5 'DM Mono', ui-monospace, monospace; color: #e8f8f5; }
.rhv2-teacher .t-row.amber { color: #ffe0a6; }

.report-panel {
  background: #fff;
  border: 1px solid #d8e6e4;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 12px;
}
.report-panel h3 { font: 600 15px 'Noto Serif SC', serif; color: #16393d; margin: 0 0 9px; }
.report-panel p { font-size: 13px !important; line-height: 1.75; margin: 3px 0 !important; }
.logic-panel { margin-bottom: 12px; }
.logic-warn { color: #b3541e !important; font-weight: 600; }
.sentence-cards { display: flex; flex-direction: column; gap: 10px; }
.sentence-card { border: 1px solid #d8e6e4; border-radius: 12px; padding: 10px 14px; background: #fbfefd; }
.sentence-card.good { border-left: 4px solid #1a9c7c; }
.sentence-card.bad { border-left: 4px solid #d64545; background: #fff8f6; }
.sentence-card.plain { border-left: 4px solid #c3d4d2; }
.sentence-card blockquote { margin: 0 0 8px; color: #16393d; font-size: 14px; line-height: 1.6; }
.sentence-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-score { background: #e3f5ee; color: #106b52 !important; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.tag-penalty { background: #fde8e4; color: #b03030 !important; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.tag-plain { background: #eef3f3; color: #5a7779 !important; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.miss-list li { color: #8a4a12 !important; margin: 6px 0; }
.miss-list b { color: #b3541e !important; }

/* ============ R8 教师端：教学分析并入教学概览 ============ */
.analytics-merged { margin-top: 18px; background: #fff; border: 1px solid var(--up-line); border-radius: 12px; padding: 16px 18px; }
.analytics-merged .am-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.analytics-merged .am-head h2 { color: var(--up-ink); font-size: 18px; }
.analytics-merged .am-head span { color: #4a676b; font-size: 12px; }
.analytics-merged .analysis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.analytics-merged .analysis-grid article { background: var(--up-soft); border-radius: 10px; padding: 14px 16px; }
.analytics-merged .analysis-grid h3 { color: var(--up-ink); margin: 4px 0 8px; }
.analytics-merged .analysis-grid ol { padding-left: 20px; display: grid; gap: 6px; }
.analytics-merged .analysis-grid li { color: #3c555a; font-size: 13px; }
.analytics-merged .analysis-grid li b { color: #b3541e; }
.analytics-merged .am-empty { color: #4a676b; font-size: 13px; line-height: 1.6; margin: 6px 0 10px; }

/* ============ R8 训练/考核全屏沉浸模式：隐藏菜单栏与顶栏，只留病例介绍+对话+AI教练 ============ */
/* 注意：sidebar display:none 后网格只剩 app-main 一个 item，
   必须用单列轨道，否则它会被自动排进宽度 0 的第一列导致整页坍缩成竖条 */
body.sim-fullscreen .app-shell { grid-template-columns: minmax(0, 1fr) !important; }
body.sim-fullscreen .sidebar { display: none !important; }
body.sim-fullscreen .topbar { display: none !important; }
body.sim-fullscreen .app-main { min-width: 0; }
body.sim-fullscreen #view {
  max-width: none !important;
  height: 100vh;
  overflow: hidden;
  padding: 8px 16px 10px !important;
  display: flex;
  flex-direction: column;
}
body.sim-fullscreen #view .training-titlebar { flex: none; margin-bottom: 4px !important; }
body.sim-fullscreen .training-titlebar :is(h1, h2, h3) { font-size: 20px !important; margin: 0; }
body.sim-fullscreen .training-titlebar p { display: none !important; }
body.sim-fullscreen #view .state-strip { flex: none; height: 34px !important; margin-bottom: 8px !important; padding: 0 12px !important; }
body.sim-fullscreen #stageNavigator { flex: none; margin: 0 0 8px !important; padding: 0 8px; border-radius: 9px; }
body.sim-fullscreen #stageNavigator span { padding: 5px 12px !important; font-size: 11.5px !important; }
/* 三栏比例基础（宽屏下由媒体查询放大对话；!important 压过拖拽脚本的内联列宽） */
body.sim-fullscreen .v4-training-grid { flex: 1 1 auto; min-height: 0 !important; gap: 12px !important; }
/* 旧分栏拖拽条（9px 竖线）与旧 divider 在全屏下一律移除 */
body.sim-fullscreen .pane-resizer,
body.sim-fullscreen #v04CaseDivider,
body.sim-fullscreen #v04CoachDivider { display: none !important; }
body.sim-fullscreen .v4-case,
body.sim-fullscreen .v4-coach { padding: 13px 14px !important; }
body.sim-fullscreen .v4-coach #liveChecklist { max-width: 100% !important; }
@media (min-width: 901px) {
  /* 标题40 + 状态条42 + 阶段条38 + 内边距18 ≈ 138 */
  body.sim-fullscreen .v4-training-grid {
    height: calc(100vh - 138px) !important;
    grid-template-columns: minmax(0, 16fr) minmax(0, 68fr) minmax(0, 16fr) !important;
  }
  body.sim-fullscreen .v4-dialog { height: 100% !important; }
  body.sim-fullscreen .v4-chat-stream { padding: 16px 22px !important; }
  body.sim-fullscreen .v4-message .bubble { max-width: 78%; font-size: 14px; line-height: 1.7; }
  body.sim-fullscreen .v4-composer textarea { height: 72px !important; font-size: 14px; }
}
@media (max-width: 900px) {
  body.sim-fullscreen #view { height: auto; overflow: auto; }
}
@media (max-width: 860px) {
  .report-hero-v2 { grid-template-columns: 1fr !important; }
  .rhv2-radar { justify-content: center; }
  .report-hero-v2.exam4 .rhv2-stats { grid-template-columns: 1fr 1fr; }
}


