/* ============================================================
   MedicalAI - 专业医疗级 UI 设计
   ============================================================ */

:root {
  --primary: #0d7377;
  --primary-light: #14a4a9;
  --primary-dark: #075255;
  --primary-50: #e8f6f6;
  --primary-100: #c2eaea;
  --accent: #e87a5d;
  --accent-light: #f0a48f;

  --bg: #f4f7f9;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --border: #e2e8ed;
  --border-light: #eef2f5;

  --text: #1a2b3c;
  --text-2: #4a5e72;
  --text-3: #8898a8;
  --text-white: #ffffff;

  --danger: #e74c3c;
  --danger-bg: #fef2f0;
  --warning: #e67e22;
  --warning-bg: #fef5ec;
  --success: #27ae60;
  --success-bg: #eefaf1;
  --info: #3498db;
  --info-bg: #ebf5fb;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --font: -apple-system, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== 顶栏 ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  box-shadow: var(--shadow-sm);
}
.topbar .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--primary); }
.topbar .logo svg { width: 28px; height: 28px; }
.topbar .nav { display: flex; gap: 6px; }
.topbar .nav-item {
  padding: 6px 14px; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 14px; color: var(--text-2); font-weight: 500; transition: all .2s;
}
.topbar .nav-item:hover { background: var(--primary-50); color: var(--primary); }
.topbar .nav-item.active { background: var(--primary); color: white; }
.topbar .right { display: flex; align-items: center; gap: 16px; }
.topbar .badge {
  padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: var(--warning-bg); color: var(--warning);
}

/* ===== 主容器 ===== */
.app-container { padding-top: 60px; min-height: 100vh; }
.view { display: none; }
.view.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 视图1: 首页/病例选择 ===== */
.hero-section {
  max-width: 1100px; margin: 0 auto; padding: 48px 28px 28px;
  text-align: center;
}
.hero-section h1 {
  font-size: 36px; font-weight: 800; color: var(--text); margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.hero-section h1 .highlight { color: var(--primary); }
.hero-section .subtitle {
  font-size: 17px; color: var(--text-2); max-width: 680px; margin: 0 auto 32px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 48px; margin-bottom: 40px;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 32px; font-weight: 800; color: var(--primary); }
.hero-stat .label { font-size: 13px; color: var(--text-3); }

.case-grid {
  max-width: 1100px; margin: 0 auto; padding: 0 28px 60px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.case-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; cursor: pointer; transition: all .25s; position: relative; overflow: hidden;
}
.case-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--tag-color, var(--primary));
}
.case-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light);
}
.case-card .tag {
  display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px;
  font-weight: 600; margin-bottom: 14px;
  background: var(--tag-bg, var(--primary-50)); color: var(--tag-color, var(--primary));
}
.case-card .name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.case-card .meta { font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
.case-card .complaint { font-size: 14px; color: var(--text-2); margin-bottom: 14px; line-height: 1.5; }
.case-card .overview { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.case-card .select-btn {
  margin-top: 16px; padding: 8px 0; text-align: center; border-radius: var(--radius-sm);
  background: var(--primary-50); color: var(--primary); font-size: 13px; font-weight: 600;
  transition: all .2s;
}
.case-card:hover .select-btn { background: var(--primary); color: white; }

/* ===== 视图2: 病例详情 ===== */
.case-detail { max-width: 1100px; margin: 0 auto; padding: 28px; }
.detail-header {
  background: var(--surface); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm); display: flex; gap: 28px;
}
.detail-header .avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700;
  color: white;
}
.detail-header .info { flex: 1; }
.detail-header .info h2 { font-size: 22px; margin-bottom: 4px; }
.detail-header .info .meta { font-size: 14px; color: var(--text-3); margin-bottom: 8px; }
.detail-header .info .complaint { font-size: 15px; color: var(--text-2); }
.detail-header .start-btn {
  align-self: center; padding: 12px 28px; border: none; border-radius: var(--radius-sm);
  background: var(--primary); color: white; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.detail-header .start-btn:hover { background: var(--primary-dark); transform: scale(1.03); }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.detail-card {
  background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.detail-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.detail-card h3 .icon { width: 18px; height: 18px; }

.symptom-list { display: flex; flex-wrap: wrap; gap: 8px; }
.symptom-chip {
  padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--border);
}
.symptom-chip.severe { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.symptom-chip.moderate { background: var(--warning-bg); border-color: var(--warning); color: var(--warning); }
.symptom-chip.mild { background: var(--info-bg); border-color: var(--info); color: var(--info); }

.med-list { display: flex; flex-direction: column; gap: 8px; }
.med-item {
  display: flex; justify-content: space-between; align-items: center; padding: 8px 12px;
  background: var(--surface-2); border-radius: var(--radius-sm); font-size: 13px;
}
.med-item .name { font-weight: 600; }
.med-item .dose { color: var(--text-3); font-size: 12px; }

.diagnosis-list { display: flex; flex-direction: column; gap: 10px; }
.diagnosis-item {
  padding: 12px; background: var(--surface-2); border-radius: var(--radius-sm);
  border-left: 3px solid var(--border);
}
.diagnosis-item .doc { font-size: 13px; font-weight: 600; color: var(--text-2); }
.diagnosis-item .diag { font-size: 14px; font-weight: 600; margin: 4px 0; }
.diagnosis-item .gap { font-size: 12px; color: var(--danger); }

.timeline-preview { display: flex; flex-direction: column; gap: 0; }
.timeline-preview-item {
  display: flex; gap: 12px; padding: 8px 0; position: relative;
}
.timeline-preview-item::before {
  content: ""; position: absolute; left: 5px; top: 20px; bottom: -8px; width: 2px; background: var(--border);
}
.timeline-preview-item:last-child::before { display: none; }
.timeline-preview-item .dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
  background: var(--primary); border: 2px solid var(--primary-100);
}
.timeline-preview-item .content { font-size: 13px; }
.timeline-preview-item .date { font-weight: 600; color: var(--text-2); }
.timeline-preview-item .desc { color: var(--text-3); font-size: 12px; }

/* ===== 视图3: 分析过程 ===== */
.analysis-view { max-width: 800px; margin: 0 auto; padding: 48px 28px; }
.analysis-header { text-align: center; margin-bottom: 36px; }
.analysis-header h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.analysis-header p { color: var(--text-3); font-size: 15px; }

.analysis-progress { margin-bottom: 32px; }
.progress-bar { height: 6px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
.progress-bar .fill {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px; transition: width .6s ease; width: 0%;
}

.analysis-steps { display: flex; flex-direction: column; gap: 12px; }
.analysis-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; display: flex; gap: 14px; align-items: flex-start;
  transition: all .3s; opacity: 0.4;
}
.analysis-step.active { opacity: 1; border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.analysis-step.done { opacity: 1; }
.analysis-step .step-icon {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  background: var(--border-light); color: var(--text-3); transition: all .3s;
}
.analysis-step.active .step-icon { background: var(--primary); color: white; animation: pulse 1.5s infinite; }
.analysis-step.done .step-icon { background: var(--success); color: white; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13,115,119,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(13,115,119,0); }
}
.analysis-step .step-content { flex: 1; }
.analysis-step .step-label { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.analysis-step .step-status { font-size: 13px; color: var(--text-3); }
.analysis-step.done .step-status { color: var(--success); }
.analysis-step .step-reasoning {
  margin-top: 10px; display: flex; flex-direction: column; gap: 6px;
}
.reasoning-line {
  font-size: 13px; color: var(--text-2); padding: 6px 10px;
  background: var(--surface-2); border-radius: var(--radius-sm); border-left: 3px solid var(--primary-light);
  animation: slideIn .3s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.reasoning-line .step-name { font-weight: 600; color: var(--primary); margin-right: 6px; }

/* ===== 视图4: 结果仪表盘 ===== */
.results-view { max-width: 1280px; margin: 0 auto; padding: 24px 28px 60px; }
.results-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px;
}
.results-header h2 { font-size: 24px; font-weight: 700; }
.results-header .actions { display: flex; gap: 10px; }
.btn {
  padding: 8px 18px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; transition: all .2s; display: flex; align-items: center; gap: 6px;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.tab-bar {
  display: flex; gap: 4px; margin-bottom: 24px; background: var(--surface);
  padding: 6px; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow-x: auto;
}
.tab-item {
  padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px;
  font-weight: 600; color: var(--text-3); transition: all .2s; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.tab-item:hover { color: var(--text); }
.tab-item.active { background: var(--primary); color: white; }
.tab-item .count {
  padding: 2px 7px; border-radius: 10px; font-size: 11px; font-weight: 700;
  background: var(--border-light); color: var(--text-3);
}
.tab-item.active .count { background: rgba(255,255,255,0.25); color: white; }
.tab-item .count.danger { background: var(--danger); color: white; }
.tab-item .count.warning { background: var(--warning); color: white; }

.tab-panel { display: none; animation: fadeIn .3s ease; }
.tab-panel.active { display: block; }

/* ===== 时间线视图 ===== */
.timeline-container { position: relative; padding-left: 24px; }
.timeline-container::before {
  content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--border);
}
.timeline-event {
  position: relative; margin-bottom: 20px; padding-left: 28px;
}
.timeline-event::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--surface); border: 3px solid var(--primary);
}
.timeline-event .event-card {
  background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.timeline-event .event-header {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px;
}
.timeline-event .event-date { font-size: 13px; font-weight: 700; color: var(--primary); }
.timeline-event .event-hospital { font-size: 12px; color: var(--text-3); }
.timeline-event .event-dept {
  display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600;
  background: var(--primary-50); color: var(--primary); margin-bottom: 8px;
}
.timeline-event .event-summary { font-size: 14px; margin-bottom: 10px; }
.timeline-event .event-tests { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.test-chip {
  padding: 3px 8px; border-radius: 4px; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border);
}
.timeline-event .event-results { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.timeline-event .event-diagnosis {
  padding: 8px 12px; background: var(--warning-bg); border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 8px;
}
.timeline-event .event-diagnosis .label { font-weight: 700; color: var(--warning); }
.timeline-event .event-rx {
  padding: 8px 12px; background: var(--info-bg); border-radius: var(--radius-sm); font-size: 13px;
}
.timeline-event .event-rx .label { font-weight: 700; color: var(--info); }
.timeline-event .event-note {
  margin-top: 8px; padding: 6px 10px; background: var(--danger-bg); border-radius: var(--radius-sm);
  font-size: 12px; color: var(--danger); border-left: 3px solid var(--danger);
}

.timeline-gap {
  position: relative; padding-left: 28px; margin: 12px 0;
}
.timeline-gap::before {
  content: ""; position: absolute; left: 3px; top: 0; width: 10px; height: 10px;
  border-radius: 50%; background: var(--danger); border: 2px solid var(--danger-bg);
}
.timeline-gap .gap-banner {
  padding: 8px 14px; background: var(--danger-bg); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--danger); font-weight: 600;
}

.timeline-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); text-align: center;
}
.stat-card .num { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-card .label { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* ===== 盲区视图 ===== */
.blind-spot-list { display: flex; flex-direction: column; gap: 14px; }
.blind-spot-card {
  background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--priority-color, var(--border));
}
.blind-spot-card.critical { --priority-color: var(--danger); }
.blind-spot-card.high { --priority-color: var(--warning); }
.blind-spot-card.medium { --priority-color: var(--info); }

.bs-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.bs-header .title { font-size: 16px; font-weight: 700; }
.bs-header .title .disease { color: var(--text-3); font-weight: 500; font-size: 14px; }
.bs-priority {
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.bs-priority.critical { background: var(--danger); color: white; }
.bs-priority.high { background: var(--warning); color: white; }
.bs-priority.medium { background: var(--info); color: white; }

.bs-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bs-field { font-size: 13px; }
.bs-field .label { font-weight: 600; color: var(--text-2); margin-bottom: 2px; }
.bs-field .value { color: var(--text-2); }
.bs-field .range { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.bs-impact {
  margin-top: 12px; padding: 10px 14px; background: var(--danger-bg); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--danger); border-left: 3px solid var(--danger);
}

/* ===== 用药安全视图 ===== */
.drug-interaction-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.interaction-card {
  background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--severity-color, var(--border));
}
.interaction-card.severe { --severity-color: var(--danger); }
.interaction-card.moderate { --severity-color: var(--warning); }
.interaction-card.mild { --severity-color: var(--info); }

.interaction-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.interaction-drugs { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.interaction-drugs .arrow { color: var(--text-3); font-size: 18px; }
.severity-badge {
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
}
.severity-badge.severe { background: var(--danger); color: white; }
.severity-badge.moderate { background: var(--warning); color: white; }
.severity-badge.mild { background: var(--info); color: white; }

.interaction-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; }
.interaction-field .label { font-weight: 600; color: var(--text-2); margin-bottom: 2px; }
.interaction-field .value { color: var(--text-2); }
.interaction-recommendation {
  margin-top: 12px; padding: 10px 14px; background: var(--success-bg); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--success); border-left: 3px solid var(--success);
}

.long-term-risk-list { display: flex; flex-direction: column; gap: 10px; }
.risk-card {
  background: var(--surface); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow-sm);
  display: flex; justify-content: space-between; align-items: center;
}
.risk-card .info { flex: 1; }
.risk-card .drug { font-size: 14px; font-weight: 600; }
.risk-card .risk { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.risk-card .duration { font-size: 12px; color: var(--text-3); }
.risk-badge {
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.risk-badge.severe { background: var(--danger-bg); color: var(--danger); }
.risk-badge.moderate { background: var(--warning-bg); color: var(--warning); }
.risk-badge.mild { background: var(--info-bg); color: var(--info); }

/* ===== 冲突仲裁视图 ===== */
.conflict-summary {
  background: var(--surface); border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--primary);
}
.conflict-summary h3 { font-size: 16px; margin-bottom: 8px; }
.conflict-summary .conclusion { font-size: 15px; color: var(--text-2); line-height: 1.7; }

.conflict-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.conflict-card {
  background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
}
.conflict-card .type { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.conflict-card .desc { font-size: 14px; margin-bottom: 8px; }
.conflict-card .principle {
  padding: 8px 12px; background: var(--primary-50); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--primary); font-weight: 500;
}

.diagnosis-analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.diag-analysis-card {
  background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--evidence-color, var(--border));
}
.diag-analysis-card.strong { --evidence-color: var(--success); }
.diag-analysis-card.moderate { --evidence-color: var(--warning); }
.diag-analysis-card.weak { --evidence-color: var(--danger); }

.diag-analysis-card .header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.diag-analysis-card .doctor { font-size: 13px; color: var(--text-3); }
.diag-analysis-card .evidence-badge {
  padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600;
}
.evidence-badge.strong { background: var(--success-bg); color: var(--success); }
.evidence-badge.moderate { background: var(--warning-bg); color: var(--warning); }
.evidence-badge.weak { background: var(--danger-bg); color: var(--danger); }
.diag-analysis-card .diagnosis { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.diag-analysis-card .gap { font-size: 12px; color: var(--danger); }

.principles-box {
  background: var(--surface-2); border-radius: var(--radius); padding: 20px; margin-top: 20px;
}
.principles-box h4 { font-size: 14px; margin-bottom: 12px; color: var(--text-2); }
.principle-item { font-size: 13px; margin-bottom: 8px; padding-left: 20px; position: relative; }
.principle-item::before { content: "→"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.principle-item .name { font-weight: 700; color: var(--primary); }

/* ===== 就诊准备视图 ===== */
.prep-section { margin-bottom: 24px; }
.prep-section h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.prep-section h3 .num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}

.dept-list { display: flex; flex-direction: column; gap: 10px; }
.dept-item {
  background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm);
  display: flex; justify-content: space-between; align-items: center;
}
.dept-item .name { font-size: 15px; font-weight: 700; }
.dept-item .reason { font-size: 13px; color: var(--text-3); }
.dept-priority { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.dept-priority.high { background: var(--danger-bg); color: var(--danger); }
.dept-priority.medium { background: var(--warning-bg); color: var(--warning); }

.test-checklist { display: flex; flex-direction: column; gap: 8px; }
.test-check-item {
  background: var(--surface); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow-sm);
  display: flex; gap: 12px; align-items: flex-start;
}
.test-check-item .check {
  width: 20px; height: 20px; border-radius: 4px; border: 2px solid var(--primary); flex-shrink: 0; margin-top: 2px;
}
.test-check-item .content { flex: 1; }
.test-check-item .test-name { font-size: 14px; font-weight: 700; }
.test-check-item .test-reason { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.test-check-item .test-range { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-top: 2px; }
.test-check-item .test-disease { font-size: 12px; color: var(--primary); font-weight: 600; }

.question-list { display: flex; flex-direction: column; gap: 10px; }
.question-item {
  background: var(--surface); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--primary);
}
.question-item .q { font-size: 14px; font-weight: 600; }
.question-item .r { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.material-list { display: flex; flex-direction: column; gap: 8px; }
.material-item {
  background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow-sm);
  display: flex; justify-content: space-between; font-size: 14px;
}
.material-item .reason { font-size: 12px; color: var(--text-3); }

.red-flag-box {
  background: var(--danger-bg); border-radius: var(--radius); padding: 18px; border: 1px solid var(--danger);
}
.red-flag-box h4 { color: var(--danger); font-size: 14px; margin-bottom: 10px; }
.red-flag-item {
  padding: 8px 12px; background: white; border-radius: var(--radius-sm); margin-bottom: 6px;
  font-size: 13px; border-left: 3px solid var(--danger);
}
.red-flag-item .disease { font-weight: 600; color: var(--danger); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-section h1 { font-size: 26px; }
  .case-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .timeline-stats { grid-template-columns: repeat(2, 1fr); }
  .bs-body, .interaction-body { grid-template-columns: 1fr; }
  .diagnosis-analysis-grid { grid-template-columns: 1fr; }
  .topbar .nav { display: none; }
}
