:root, [data-theme="daylight"] {
  --bg-base: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --brand-blue: #2563eb;
  --brand-blue-soft: #eff6ff;
  --accent-green: #059669;
  --accent-green-soft: #ecfdf5;
  --accent-amber: #d97706;
  --accent-amber-soft: #fffbeb;
  --accent-purple: #7c3aed;
  --accent-purple-soft: #f5f3ff;
  --accent-red: #dc2626;
  --accent-red-soft: #fef2f2;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
[data-theme="midnight"] {
  --bg-base: #090d16;
  --bg-card: #131b2e;
  --bg-card-alt: #1a243b;
  --border-color: #24324f;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --brand-blue: #3b82f6;
  --brand-blue-soft: rgba(59, 130, 246, 0.15);
  --accent-green: #10b981;
  --accent-green-soft: rgba(16, 185, 129, 0.15);
  --accent-amber: #f59e0b;
  --accent-amber-soft: rgba(245, 158, 11, 0.15);
  --accent-purple: #8b5cf6;
  --accent-purple-soft: rgba(139, 92, 246, 0.15);
  --accent-red: #ef4444;
  --accent-red-soft: rgba(239, 68, 68, 0.15);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.5);
}
[data-theme="eyecare"] {
  --bg-base: #f4ede2;
  --bg-card: #faf6f0;
  --bg-card-alt: #eee5d6;
  --border-color: #ded1bd;
  --text-main: #2d261e;
  --text-muted: #786d5e;
  --brand-blue: #326496;
  --brand-blue-soft: #e5edf5;
  --accent-green: #2a7c56;
  --accent-green-soft: #e3f0e9;
  --accent-amber: #b06518;
  --accent-amber-soft: #faebd7;
  --accent-purple: #6c4b8e;
  --accent-purple-soft: #ede6f5;
  --accent-red: #bd3a3a;
  --accent-red-soft: #f7e6e6;
  --shadow-sm: 0 1px 4px rgba(60,40,20,0.06);
  --shadow-md: 0 4px 12px rgba(60,40,20,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  padding: 16px 22px;
  transition: background-color 0.2s, color 0.2s;
}

/* 顶部导航与操作 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--border-color);
  margin-bottom: 16px;
}
.brand-box h1 { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.brand-box .subtitle { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.status-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; }
.tag-blue { background: var(--brand-blue-soft); color: var(--brand-blue); border: 1px solid var(--brand-blue); }
.tag-green { background: var(--accent-green-soft); color: var(--accent-green); border: 1px solid var(--accent-green); }
.tag-amber { background: var(--accent-amber-soft); color: var(--accent-amber); border: 1px solid var(--accent-amber); }

.theme-capsule { display: flex; background: var(--bg-card-alt); padding: 3px; border-radius: 20px; border: 1px solid var(--border-color); }
.theme-btn { border: none; background: transparent; padding: 3px 9px; font-size: 11.5px; border-radius: 14px; cursor: pointer; color: var(--text-muted); }
.theme-btn.active { background: var(--bg-card); color: var(--text-main); font-weight: 700; box-shadow: var(--shadow-sm); }

.btn { border: none; border-radius: 6px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.btn-primary { background: var(--brand-blue); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); }
.btn-outline:hover { background: var(--bg-card-alt); }
.btn-accent { background: var(--accent-amber); color: #fff; }

/* Tab 切换导航条 */
.tabs-nav { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 2px solid var(--border-color); padding-bottom: 8px; }
.tab-btn { background: var(--bg-card); border: 1px solid var(--border-color); padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--text-muted); transition: all 0.2s; }
.tab-btn:hover { color: var(--brand-blue); border-color: var(--brand-blue); }
.tab-btn.active { background: var(--brand-blue); color: #ffffff; border-color: var(--brand-blue); box-shadow: var(--shadow-sm); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.2s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* 通用卡片与头部 */
.content-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 18px 20px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; margin-bottom: 16px; }
.card-header h2 { font-size: 16px; font-weight: 800; }

/* KPI 四大核心卡片 */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 14px; box-shadow: var(--shadow-sm); }
.kpi-title { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.kpi-value { font-size: 24px; font-weight: 800; margin: 4px 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.kpi-sub { font-size: 11px; color: var(--text-muted); }

/* 主监控视界网格 */
.main-grid { display: grid; grid-template-columns: 2fr 1.15fr; gap: 16px; margin-bottom: 18px; }
.vision-panel, .cluster-panel, .table-panel { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 14px; box-shadow: var(--shadow-sm); }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.panel-header h2 { font-size: 14.5px; font-weight: 700; }

/* PCB 视觉治具仿真 */
.ram-pcb-fixture { background: #0c1810; border: 2px solid #204829; border-radius: 8px; padding: 12px; color: #a3e635; }
.fixture-info { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 10px; border-bottom: 1px dashed #204829; padding-bottom: 6px; }
.pcb-board { background: #14351b; border: 1.5px solid #2e7d32; border-radius: 4px; padding: 10px; position: relative; }
.pcb-label { display: flex; justify-content: space-between; font-size: 11px; color: #86efac; font-weight: 700; margin-bottom: 8px; }
.chips-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-bottom: 7px; }
.chip-unit { background: #18181b; border: 1px solid #3f3f46; border-radius: 2px; padding: 3px 2px; text-align: center; color: #f4f4f5; font-family: monospace; font-size: 8.5px; }
.chip-unit.matched { border-color: #22c55e; box-shadow: 0 0 4px rgba(34, 197, 94, 0.4); }
.pcb-gold-fingers { height: 10px; background: repeating-linear-gradient(90deg, #eab308, #eab308 3px, #14351b 3px, #14351b 5px); border-radius: 1px; margin-top: 6px; }

/* 算力节点卡片 */
.node-card { border: 1px solid var(--border-color); border-radius: 6px; padding: 10px; margin-bottom: 10px; background: var(--bg-card-alt); }
.node-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.node-name { font-weight: 700; font-size: 13px; }
.node-meta { font-size: 11px; color: var(--text-muted); }

/* 数据表格 */
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border-color); }
th { background: var(--bg-card-alt); color: var(--text-muted); font-weight: 700; }

/* 板块二：方案架构网格 */
.arch-overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.arch-box { background: var(--bg-card-alt); border: 1px solid var(--border-color); border-radius: 8px; padding: 14px; }
.arch-title { font-weight: 800; font-size: 13.5px; margin-bottom: 8px; color: var(--brand-blue); }
.arch-list { list-style: none; font-size: 12px; line-height: 1.6; }
.arch-list li { margin-bottom: 6px; position: relative; padding-left: 14px; }
.arch-list li::before { content: "•"; color: var(--brand-blue); font-weight: bold; position: absolute; left: 0; }
.services-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-item { border: 1px solid var(--border-color); background: var(--bg-card-alt); border-radius: 6px; padding: 10px 12px; }
.service-name { font-weight: 700; font-size: 12.5px; margin-bottom: 4px; }
.service-desc { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }

/* 板块三：ROI 标语与方案三栏卡片 */
.roi-banner { background: linear-gradient(135deg, var(--brand-blue-soft), var(--accent-green-soft)); border: 1.5px solid var(--border-color); border-radius: 8px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.roi-tag { font-size: 12px; font-weight: 800; color: var(--brand-blue); }
.roi-title { font-size: 15px; font-weight: 800; margin-top: 2px; }
.roi-stats { display: flex; gap: 24px; text-align: right; }
.roi-stat-item .val { font-size: 18px; font-weight: 800; color: var(--accent-green); font-family: monospace; }
.roi-stat-item .lbl { font-size: 11px; color: var(--text-muted); }

.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.plan-card { background: var(--bg-card); border: 1.5px solid var(--border-color); border-radius: 8px; padding: 16px; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.plan-card.recommended { border-color: var(--brand-blue); box-shadow: var(--shadow-md); }
.plan-badge { position: absolute; top: -11px; right: 12px; background: var(--brand-blue); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 10px; border-radius: 10px; }
.plan-name { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.plan-price { font-size: 22px; font-weight: 800; color: var(--brand-blue); font-family: monospace; margin-bottom: 10px; }
.plan-sub-price { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; }
.plan-features { list-style: none; font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.plan-features li { margin-bottom: 5px; }

.gantt-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gantt-phase { background: var(--bg-card-alt); border-left: 3px solid var(--brand-blue); padding: 10px 12px; border-radius: 0 6px 6px 0; }
.gantt-title { font-weight: 700; font-size: 12px; color: var(--brand-blue); margin-bottom: 4px; }
.gantt-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

/* 板块四：现场工况问卷排盘 */
.questionnaire-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 20px; align-items: start; }
.q-module-box { border: 1px solid var(--border-color); border-radius: 8px; padding: 14px; margin-bottom: 16px; background: var(--bg-card); }
.q-module-title { font-size: 14px; font-weight: 800; color: var(--brand-blue); margin-bottom: 12px; border-bottom: 1px solid var(--border-color); padding-bottom: 6px; }
.q-item { margin-bottom: 14px; }
.q-item:last-child { margin-bottom: 0; }
.q-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.q-impact { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.q-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.q-opt-label { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; background: var(--bg-card-alt); border: 1px solid var(--border-color); border-radius: 5px; padding: 6px 8px; cursor: pointer; transition: all 0.15s; }
.q-opt-label:hover { border-color: var(--brand-blue); }
.q-opt-label input { margin-top: 2px; }

/* 问卷右侧联动选型卡片 */
.questionnaire-summary-aside { position: sticky; top: 16px; }
.summary-card { background: var(--bg-card-alt); border: 1.5px solid var(--border-color); border-radius: 8px; padding: 16px; box-shadow: var(--shadow-sm); }
.summary-card h3 { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.rec-plan-badge { background: var(--brand-blue); color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; margin-bottom: 12px; text-align: center; }
.rec-meta-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; }
.rec-meta-row .val { font-weight: 700; font-family: monospace; }
.input-field { width: 100%; border: 1px solid var(--border-color); border-radius: 5px; padding: 7px 10px; font-size: 12px; margin-bottom: 8px; background: var(--bg-card); color: var(--text-main); }
.input-field:focus { outline: 1.5px solid var(--brand-blue); }

footer { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--border-color); }

@media (max-width: 900px) {
  .kpi-grid, .main-grid, .arch-overview-grid, .services-row, .plans-grid, .gantt-container, .questionnaire-layout, .q-options-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== 零信任用户状态与安全准入模态框样式 (Skill 112 / Skill 116) ==================== */
.user-badge-box { display: flex; align-items: center; gap: 8px; background: var(--bg-card-alt); border: 1px solid var(--border-color); padding: 3px 8px; border-radius: 6px; font-size: 11.5px; }
.role-badge { padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.badge-admin { background: #6366f1; color: #fff; }
.badge-operator { background: #10b981; color: #fff; }
.user-name { font-weight: 600; color: var(--text-main); font-family: monospace; }
.btn-xs { padding: 3px 7px; font-size: 11px; border-radius: 4px; }

/* 全屏居中零信任准入弹窗 */
.zero-trust-modal-overlay { position: fixed; inset: 0; background: rgba(10, 15, 29, 0.75); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 99999; animation: fadeIn 0.2s ease-out; }
.zero-trust-modal-overlay.active { display: flex; }

.zero-trust-card { width: 92%; max-width: 480px; background: var(--bg-card); border: 1.5px solid var(--border-color); border-radius: 12px; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35); padding: 24px; position: relative; animation: slideUp 0.25s ease-out; }
.modal-badge { display: inline-block; background: rgba(37, 99, 235, 0.12); color: var(--brand-blue); border: 1px solid var(--brand-blue); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.modal-title { font-size: 18px; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
.modal-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }

/* 零阻力一键快捷填入区 */
.preset-credentials-box { background: var(--bg-card-alt); border: 1px dashed var(--border-color); border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; }
.preset-label { font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.preset-btn-group { display: flex; flex-direction: column; gap: 6px; }
.preset-btn { text-align: left; padding: 6px 10px; font-size: 11.5px; font-family: monospace; border-radius: 6px; cursor: pointer; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); transition: all 0.15s; }
.preset-btn:hover { border-color: var(--brand-blue); transform: translateX(2px); }
.preset-admin:hover { background: rgba(99, 102, 241, 0.08); border-color: #6366f1; }
.preset-operator:hover { background: rgba(16, 185, 129, 0.08); border-color: #10b981; }

.login-form .form-group { margin-bottom: 12px; }
.login-form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; color: var(--text-main); }
.login-form .form-control { width: 100%; padding: 8px 10px; font-size: 13px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-card-alt); color: var(--text-main); transition: border-color 0.15s; }
.login-form .form-control:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15); }

/* 动态人机算术验证码挑战条 */
.challenge-row { display: flex; align-items: center; gap: 8px; }
.challenge-display { background: var(--bg-card-alt); border: 1.5px solid var(--border-color); padding: 6px 12px; border-radius: 6px; font-weight: 800; font-family: monospace; font-size: 15px; color: var(--brand-blue); letter-spacing: 1px; min-width: 110px; text-align: center; }
.btn-refresh-ch { padding: 6px 10px; font-size: 11px; border-radius: 6px; border: 1px solid var(--border-color); background: var(--bg-card); cursor: pointer; }
.btn-refresh-ch:hover { background: var(--bg-card-alt); }
.challenge-input { flex: 1; font-family: monospace; font-weight: 700; font-size: 14px; text-align: center; }

.login-err-box { background: rgba(239, 68, 68, 0.1); border: 1px solid #ef4444; color: #ef4444; padding: 8px 12px; border-radius: 6px; font-size: 12px; margin-bottom: 12px; }
.btn-block { width: 100%; }
.btn-login-submit { padding: 10px; font-size: 13.5px; font-weight: 700; border-radius: 6px; margin-top: 6px; }
.modal-footer-notice { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border-color); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ==================== ADR-0521 游客模式工控视界受控锁定样式 ==================== */
.guest-locked-wrapper { position: relative; width: 100%; }
.guest-locked-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  border-radius: 12px;
  animation: fadeIn 0.3s ease-out;
}
[data-theme="daylight"] .guest-locked-overlay {
  background: rgba(248, 250, 252, 0.72);
}
.guest-locked-card {
  max-width: 520px;
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  padding: 28px 24px;
  text-align: center;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lock-icon-circle {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.guest-locked-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}
.guest-locked-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.guest-action-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.tab-lock-tag {
  font-size: 10.5px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  font-weight: 700;
}

/* ==================== 95%+ 审慎工况问卷与报告增强样式 (ADR-0521) ==================== */
.survey-presets-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-sub-bg);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 8px;
  flex-wrap: wrap;
}
.preset-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-blue);
  white-space: nowrap;
}
.preset-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-preset {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-preset:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
.btn-preset.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  font-weight: 700;
}
.q-module-header {
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 8px;
}
.q-module-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
}
.q-title-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.q-id-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-blue);
  background: rgba(37, 99, 235, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
}
.q-title-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}
.q-impact-alert {
  font-size: 11px;
  color: #d97706;
  background: rgba(217, 119, 6, 0.08);
  border-left: 3px solid #d97706;
  padding: 3px 8px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 8px;
}
.q-opt-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: var(--card-sub-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.q-opt-label:hover {
  border-color: var(--brand-blue);
}
.q-opt-label.selected {
  background: rgba(37, 99, 235, 0.06);
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 1px var(--brand-blue);
}
.opt-content {
  display: flex;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
}
.opt-key {
  font-weight: 700;
  color: var(--brand-blue);
}
.opt-text {
  color: var(--text-main);
}
.risk-pill-item {
  font-size: 11px;
  color: #b45309;
  background: rgba(245, 158, 11, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 4px;
  line-height: 1.35;
}

/* 研判报告模态弹窗 */
.survey-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.survey-modal-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}
.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.kpi-mini-box {
  background: var(--card-sub-bg);
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}
.kpi-mini-box .lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.kpi-mini-box .val {
  font-size: 15px;
  font-weight: 800;
}
.report-section {
  margin-bottom: 14px;
  background: var(--card-sub-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
}
.report-section .sec-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}
.report-section .sec-item {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.risk-report-card {
  border-left: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.06);
  padding: 8px 10px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 6px;
}
.risk-report-card.level-high {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
}
.risk-report-card .r-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.risk-report-card .r-badge {
  font-size: 9.5px;
  font-weight: 800;
  background: #ef4444;
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
}
.risk-report-card .r-dim {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}
.risk-report-card .r-issue {
  font-size: 11.5px;
  color: var(--text-muted);
}
.risk-report-card .r-mitigation {
  font-size: 11.5px;
  color: var(--brand-blue);
  line-height: 1.4;
}
.report-note {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted);
  background: rgba(37, 99, 235, 0.05);
  border: 1px dashed rgba(37, 99, 235, 0.3);
  padding: 10px;
  border-radius: 6px;
}

