/* 全局布局与通用样式：仅引用 theme.css 令牌，不出现硬编码颜色 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--app-font-family);
  color: var(--app-text-primary);
  background: var(--app-bg-page);
  font-size: 14px;
}
#app { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- 顶部导航（主题蓝底白字，参考 NUDT 门户形态） ---------- */
.app-nav {
  height: var(--app-nav-height);
  background: var(--app-nav-gradient);
  display: flex; align-items: center;
  padding: 0 28px; gap: 36px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(24, 30, 51, .18);
}
.app-logo { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: bold; color: #fff; cursor: pointer; white-space: nowrap; }
.app-logo .el-icon { font-size: 24px; }
.app-nav-menu { flex: 1; display: flex; align-items: center; gap: 10px; }
.nav-icon-item { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: rgba(255, 255, 255, .88); font-size: 14px; padding: 6px 12px; border-radius: var(--app-radius-sm); transition: background .15s; }
.nav-icon-item:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.nav-item-active { background: rgba(255, 255, 255, .22); color: #fff !important; font-weight: bold; }
.app-nav-right { display: flex; align-items: center; gap: 16px; }

/* ---------- 导航大面板下拉（参考门户站大菜单形态） ---------- */
.nav-drop { position: relative; display: inline-block; }
.nav-drop:hover .nav-icon-item { background: rgba(255, 255, 255, .16); color: #fff; }
.nav-panel {
  display: none; position: absolute; top: 100%; left: -10px; min-width: 380px;
  background: var(--app-bg-white); border-radius: 10px; padding: 8px;
  box-shadow: 0 10px 32px rgba(24, 30, 51, .24); z-index: 300;
}
.nav-panel::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-drop:hover .nav-panel { display: block; }
.nav-panel-item { display: flex; gap: 12px; padding: 13px 14px; border-radius: 8px; cursor: pointer; align-items: flex-start; }
.nav-panel-item:hover { background: var(--el-color-primary-light-9); }
.nav-panel-item + .nav-panel-item { border-top: 1px solid var(--app-border-light); }
.npi-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--el-color-primary-light-9); color: var(--app-primary); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.nav-panel-item:hover .npi-icon { background: #fff; }
.npi-title { font-size: 14px; font-weight: bold; color: var(--app-text-primary); }
.npi-desc { font-size: 12px; color: var(--app-text-secondary); margin-top: 3px; line-height: 1.6; }
html.nav-demo .nav-drop:first-of-type .nav-panel,
.nav-drop:hover .nav-panel { display: block; }

/* ---------- 内容区与页脚 ---------- */
.app-main { flex: 1; width: 100%; }
.app-container { max-width: var(--app-content-width); margin: 0 auto; padding: 26px 28px 48px; }
.app-footer {
  text-align: center; color: var(--app-text-secondary); font-size: 12px;
  padding: 20px 0 24px; line-height: 1.9; border-top: 1px solid var(--app-border-light);
  background: var(--app-bg-white); margin-top: 24px;
}

/* ---------- 通用卡片/区块 ---------- */
.panel-card { background: var(--app-bg-white); border-radius: var(--app-radius); border: 1px solid var(--app-border-light); padding: 24px; }
/* 面板标题：左色条 + 深藏青 + 下分隔线，强化功能分区辨识度 */
.panel-title {
  font-size: 16px; font-weight: bold; color: var(--app-navy);
  display: flex; align-items: center; gap: 9px;
  padding-bottom: 11px; margin: 0 0 18px; border-bottom: 1px solid var(--app-border-light);
}
.panel-title::before { content: ""; width: 4px; height: 17px; background: var(--app-primary); border-radius: 2px; flex-shrink: 0; }
.panel-title .el-icon { color: var(--app-primary); font-size: 18px; }
.pt-more { margin-left: auto; font-size: 13px; font-weight: normal; color: var(--app-primary); cursor: pointer; }
.pt-more:hover { text-decoration: underline; }
.section-gap { margin-top: 24px; }

/* ---------- 页面通用头 ---------- */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.page-header h2 { margin: 0; font-size: 20px; color: var(--app-navy); }
.page-header .sub { color: var(--app-text-secondary); font-size: 13px; margin-top: 6px; }

/* ---------- 首页 Hero 横幅 ---------- */
.hero-banner {
  background: var(--app-nav-gradient); border-radius: 12px; color: #fff;
  padding: 34px 42px; display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden; margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(61, 130, 242, .28);
}
.hero-banner::before, .hero-banner::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.hero-banner::before { width: 260px; height: 260px; right: -70px; top: -110px; }
.hero-banner::after { width: 180px; height: 180px; right: 130px; bottom: -100px; }
.hero-title { font-size: 27px; font-weight: bold; letter-spacing: 1px; margin-bottom: 18px; }
.hero-sub { font-size: 14px; color: rgba(255, 255, 255, .86); margin: 10px 0 20px; letter-spacing: .5px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 8px; }
.hero-btn-ghost { background: transparent !important; border-color: rgba(255, 255, 255, .45) !important; color: rgba(255, 255, 255, .92) !important; }
.hero-btn-ghost:hover { background: rgba(255, 255, 255, .14) !important; border-color: #fff !important; color: #fff !important; }

/* ---------- Hero 右侧索引按钮 ---------- */
.hero-art { display: flex; gap: 18px; align-items: center; z-index: 1; }
.art-index {
  width: 96px; padding: 14px 6px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .3);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: #fff; cursor: pointer; transition: background .2s, transform .2s;
}
.art-index .el-icon { font-size: 26px; }
.art-index span { font-size: 12px; letter-spacing: 1px; }
.art-index:hover { background: rgba(255, 255, 255, .26); transform: translateY(-3px); }

/* ---------- 数据库概览弹窗统计块 ---------- */
.dbstat { background: var(--app-fill-light); border: 1px solid var(--app-border-light); border-radius: var(--app-radius-sm); padding: 10px 12px; text-align: center; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.dbstat b { font-size: 20px; color: var(--app-navy); }
.dbstat b i { font-size: 12px; font-style: normal; color: var(--app-text-secondary); }
.dbstat span { font-size: 12px; color: var(--app-text-secondary); margin-top: 2px; }

/* ---------- KPI 统计卡 ---------- */
.kpi-card { background: var(--app-bg-white); border-radius: var(--app-radius); border: 1px solid var(--app-border-light); padding: 18px 22px; display: flex; align-items: center; gap: 14px; }
.kpi-num { font-size: 28px; font-weight: bold; color: var(--app-navy); line-height: 1.2; }
.kpi-num .unit { font-size: 13px; font-weight: normal; color: var(--app-text-secondary); margin-left: 2px; }
.kpi-label { font-size: 13px; color: var(--app-text-regular); margin-top: 2px; }
.kpi-icon { width: 46px; height: 46px; border-radius: var(--app-radius); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.kpi-blue { background: var(--el-color-primary-light-9); color: var(--app-primary); }
.kpi-green { background: #f0f9eb; color: var(--app-success); }
.kpi-orange { background: #fdf6ec; color: var(--app-warning); }
.kpi-navy { background: #e9ecf5; color: var(--app-navy); }

/* ---------- 首页快捷卡 ---------- */
.quick-card { cursor: pointer; transition: box-shadow .2s, border-color .2s; }
.quick-card:hover { box-shadow: 0 4px 16px rgba(24, 30, 51, .1); border-color: var(--app-primary-light); }
.hero-btn { font-size: 16px; height: 48px; padding: 0 34px; }

/* ---------- 向导：五步统一骨架（引导条 → 内容卡片 → 底部操作） ---------- */
.wizard-steps { margin: 8px 0 22px; }
.wizard-steps .el-step__title.is-process { font-weight: bold; }
.wizard-body { min-height: 460px; }
.step-guide {
  display: flex; align-items: center; gap: 10px;
  background: var(--el-color-primary-light-9); border: 1px solid var(--el-color-primary-light-8);
  border-radius: var(--app-radius-sm); padding: 11px 16px; margin-bottom: 18px;
  font-size: 13px; color: var(--app-text-regular);
}
.step-guide .el-icon { color: var(--app-primary); font-size: 16px; }
.step-guide b { color: var(--app-primary); }
.wizard-footer { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--app-border-light); }
.mode-card { border: 1px solid var(--app-border); border-radius: var(--app-radius); padding: 20px; cursor: pointer; transition: all .2s; height: 100%; }
.mode-card:hover { border-color: var(--app-primary); box-shadow: 0 4px 14px rgba(61, 130, 242, .14); }
.mode-card.active { border-color: var(--app-primary); background: var(--el-color-primary-light-9); }
.mode-card h4 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.mode-card h4 .el-icon { color: var(--app-primary); font-size: 18px; }
.mode-card p { margin: 0 0 6px; font-size: 13px; color: var(--app-text-regular); line-height: 1.8; }
.mode-card .scene { color: var(--app-text-secondary); font-size: 12px; }
.mode-card .demo-line { color: var(--app-text-secondary); font-size: 12px; border-top: 1px dashed var(--app-border-light); padding-top: 8px; margin-top: 10px; }
/* 分组配置卡（Step4/5） */
.config-group { border: 1px solid var(--app-border-light); border-radius: var(--app-radius); padding: 18px 20px; height: 100%; }
.config-group .cg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: bold; color: var(--app-navy); }
.config-group .cg-head .el-icon { color: var(--app-primary); }
/* 引导三步条 */
.how-to-strip { display: flex; gap: 0; margin-top: 18px; border: 1px dashed var(--app-primary-light); border-radius: var(--app-radius); padding: 14px 18px; background: var(--app-fill-light); }
.how-to-strip .ht-item { flex: 1; display: flex; gap: 10px; align-items: center; }
.how-to-strip .ht-item + .ht-item { border-left: 1px dashed var(--app-border); padding-left: 18px; }
.how-to-strip .ht-num { width: 24px; height: 24px; border-radius: 50%; background: var(--app-primary); color: #fff; text-align: center; line-height: 24px; font-size: 12px; flex-shrink: 0; }
.how-to-strip .ht-text { font-size: 13px; color: var(--app-text-regular); }

/* ---------- 标签/徽标 ---------- */
.tier-tag { margin: 0 4px 4px 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.empty-line { color: var(--app-text-secondary); }

/* ---------- 布局：侧栏+主区 ---------- */
.with-sidebar { display: flex; gap: 20px; align-items: flex-start; }
.side-panel { width: 270px; flex-shrink: 0; }
.main-panel { flex: 1; min-width: 0; }

/* ---------- 置信度/状态 ---------- */
.conf-high { color: var(--app-success); font-weight: bold; }
.conf-mid { color: var(--app-warning); font-weight: bold; }
.conf-low { color: var(--app-text-secondary); font-weight: bold; }

/* ---------- 预警卡片：左置信度色条 + 信息分层 ---------- */
.alert-card { position: relative; border: 1px solid var(--app-border-light); border-radius: var(--app-radius); padding: 16px 18px 14px 24px; margin-bottom: 14px; background: var(--app-bg-white); }
.alert-card:hover { border-color: var(--app-primary); }
.alert-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: var(--app-radius) 0 0 var(--app-radius); background: var(--app-border-light); }
.alert-card.conf-g::before { background: var(--app-success); }
.alert-card.conf-m::before { background: var(--app-warning); }
.alert-card.conf-l::before { background: var(--app-border); }
.al-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.al-tags { display: flex; align-items: center; gap: 8px; }
.al-name { font-size: 16px; font-weight: bold; color: var(--app-navy); }
.al-time { font-size: 12px; color: var(--app-text-secondary); flex-shrink: 0; }
.al-brief { font-size: 15px; font-weight: bold; color: var(--app-text-primary); margin: 10px 0 9px; }
.al-logic { display: flex; align-items: center; gap: 6px; background: var(--app-fill-light); border-radius: 4px; padding: 6px 11px; font-size: 12px; color: var(--app-text-regular); }
.al-logic .el-icon { color: var(--app-info); flex-shrink: 0; }
.al-actions { margin-top: 11px; display: flex; gap: 8px; }

/* ---------- 来源字段徽标（报告中〔源:x〕的渲染形态） ---------- */
.src-ref {
  font-size: 10px; color: var(--app-primary);
  background: var(--el-color-primary-light-9);
  border: 1px solid var(--el-color-primary-light-8);
  border-radius: 3px; padding: 0 4px; margin: 0 2px;
  vertical-align: 2px; cursor: help; white-space: nowrap;
}

/* ---------- 表格：加大行距 ---------- */
.el-table .el-table__cell { padding: 11px 0; }

/* ---------- 报告预览 ---------- */
.report-paper { background: var(--app-bg-white); border: 1px solid var(--app-border-light); border-radius: var(--app-radius); padding: 40px 52px; line-height: 2.1; }
.report-paper h3 { text-align: center; margin: 0 0 6px; color: var(--app-navy); font-size: 19px; }
.report-paper .paper-meta { text-align: center; color: var(--app-text-secondary); font-size: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--app-navy); margin-bottom: 18px; }
.report-paper h4 { margin: 26px 0 10px; color: var(--app-navy); font-size: 15px; border-left: 4px solid var(--app-primary); padding-left: 10px; }
.report-paper h5 { margin: 16px 0 8px; font-size: 14px; }
.report-paper p { margin: 0 0 10px; text-align: justify; }
.report-paper .abstract { background: var(--app-fill-light); border: 1px solid var(--app-border-light); border-radius: var(--app-radius-sm); padding: 14px 18px; }
.num-ref { color: var(--app-primary); cursor: pointer; border-bottom: 1px dashed var(--app-primary); font-weight: bold; }
.report-figure { border: 1px solid var(--app-border-light); border-radius: var(--app-radius-sm); padding: 12px; margin: 12px 0; }
.report-figure .fig-caption { text-align: center; font-size: 12px; color: var(--app-text-secondary); margin-top: 6px; }
.suggest-item { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--app-border-light); border-radius: var(--app-radius-sm); margin-bottom: 10px; background: var(--app-fill-light); }

/* ---------- 对话 ---------- */
.chat-box { display: flex; flex-direction: column; gap: 14px; }
.msg-row { display: flex; gap: 10px; }
.msg-row.user { flex-direction: row-reverse; }
.bubble { max-width: 78%; border-radius: var(--app-radius); padding: 12px 16px; line-height: 1.9; }
.msg-row.ai .bubble { background: var(--app-bg-white); border: 1px solid var(--app-border-light); }
.msg-row.user .bubble { background: var(--el-color-primary-light-9); border: 1px solid var(--app-primary-light); }

/* ---------- 表格内操作 ---------- */
.op-btn { padding: 0 !important; }

/* ---------- 溯源弹层内容 ---------- */
.provenance { font-size: 13px; line-height: 1.9; max-width: 280px; }
.provenance b { display: block; margin-bottom: 4px; }

/* ---------- 信号时间线 ---------- */
.signal-desc { font-size: 13px; color: var(--app-text-regular); }

/* ---------- 帮助步骤 ---------- */
.guide-step { text-align: center; padding: 14px 8px; }
.guide-step .num { width: 36px; height: 36px; border-radius: 50%; background: var(--el-color-primary-light-9); color: var(--app-primary); font-weight: bold; line-height: 36px; margin: 0 auto 10px; font-size: 16px; }

/* ---------- 报告口径声明（结构化） ---------- */
.caliber-panel {
  background: var(--el-color-primary-light-9);
  border: 1px solid var(--el-color-primary-light-8);
  border-radius: var(--app-radius-sm);
  padding: 12px 16px; margin-bottom: 14px;
}
.caliber-head { display: flex; align-items: center; gap: 6px; font-weight: bold; color: var(--app-navy); margin-bottom: 10px; font-size: 13px; }
.caliber-head .el-icon { color: var(--app-primary); }
.caliber-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.caliber-item { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; line-height: 1.8; }
.ci-t { flex-shrink: 0; color: var(--app-primary); background: #fff; border: 1px solid var(--el-color-primary-light-7); border-radius: 3px; padding: 0 6px; }
.ci-t.isdemo { color: var(--app-warning); border-color: var(--app-warning); background: var(--el-color-warning-light-9); }
.ci-v { color: var(--app-text-regular); }

/* 映射待处理行高亮：点"返回处理"跳回 Step3 时闪烁提示（3.5s 内闪烁两轮渐隐） */
@keyframes pendingFlash {
  0%, 100% { background-color: transparent; }
  15%, 55% { background-color: var(--el-color-warning-light-8); }
  35%, 75% { background-color: transparent; }
}
tr.pending-flash > td { animation: pendingFlash 1.8s ease-in-out 2; }

/* ===== 动向预警：提前量徽标 / AI 解读 / 信号漏斗 / 演示动线 ===== */
.lead-badge { font-size: 12px; color: #b8820b; background: #fdf6ec; border: 1px solid #efd6a0; border-radius: 10px; padding: 1px 10px; white-space: nowrap; }
.lead-badge.mute { color: #909399; background: #f4f4f5; border-color: #e0e0e0; }
.interp-line { margin-top: 8px; font-size: 13px; color: #3c5170; background: #f5f8ff; border-left: 3px solid var(--app-primary, #3d82f2); padding: 6px 10px; border-radius: 4px; line-height: 1.7; }
.funnel-facts .ff-row { font-size: 14px; color: var(--app-text-regular, #444); }
.funnel-facts .ff-num { font-size: 20px; font-weight: bold; color: var(--app-primary, #3d82f2); margin: 0 2px; }
.funnel-facts .ff-num.hi { color: #67c23a; }
.funnel-facts .ff-arrow { color: #a8abb2; margin: 0 6px; }
.el-timeline-item.sig-dim { opacity: 0.12; filter: grayscale(1); }
.el-timeline-item.sig-lit { opacity: 1; transition: opacity 0.5s ease; }
.demo-banner { margin-top: 12px; }

/* ===== 动向预警：监测驾驶舱 ===== */
.alert-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.alert-kpi {
  background: var(--app-bg-white, #fff);
  border: 1px solid var(--app-border-light, #ebeef5);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 1px 2px rgba(20, 40, 80, 0.03);
}
.alert-kpi b {
  display: block;
  font-size: 26px;
  line-height: 1.2;
  color: var(--app-primary, #2f6bd8);
  font-weight: 700;
}
.alert-kpi b.hi { color: var(--app-success, #67c23a); }
.alert-kpi b em { font-size: 13px; font-style: normal; font-weight: 500; margin-left: 2px; color: var(--app-text-secondary, #909399); }
.alert-kpi span { font-size: 12px; color: var(--app-text-secondary, #909399); }

.alert-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.cockpit-grid {
  display: grid;
  grid-template-columns: 300px minmax(360px, 1fr) 420px;
  gap: 14px;
  align-items: start;
}
.cockpit-panel {
  background: var(--app-bg-white, #fff);
  border: 1px solid var(--app-border-light, #ebeef5);
  border-radius: 10px;
  padding: 14px;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(20, 40, 80, 0.03);
}
.cockpit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--app-text-primary, #303133);
  margin-bottom: 10px;
  font-size: 13px;
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: #67c23a;
  box-shadow: 0 0 0 0 rgba(103, 194, 58, 0.5);
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(103, 194, 58, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(103, 194, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(103, 194, 58, 0); }
}

.signal-feed { max-height: 640px; overflow-y: auto; padding-right: 2px; }
.signal-item {
  display: flex;
  gap: 9px;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--app-border-light, #ebeef5);
  cursor: pointer;
  border-radius: 6px;
}
.signal-item:hover { background: var(--app-fill-light, #f5f8ff); }
.signal-item.signal-new { animation: signalFlash 2s ease; }
@keyframes signalFlash {
  0% { background: #e8f3ff; }
  100% { background: transparent; }
}
.signal-type {
  width: 46px;
  flex-shrink: 0;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.signal-type.st-intent { color: #b8820b; background: #fdf6ec; }
.signal-type.st-resource { color: #2f6bd8; background: #ecf3ff; }
.signal-type.st-protect { color: #a855f7; background: #f6edff; }
.signal-type.st-output { color: #2f9e6e; background: #eaf8f1; }
.signal-type.st-other { color: #909399; background: #f4f4f5; }
.signal-meta { font-size: 11px; color: var(--app-text-secondary, #909399); line-height: 1.5; }
.signal-text { font-size: 12px; color: var(--app-text-regular, #606266); line-height: 1.6; margin-top: 2px; }

.alert-list { max-height: 640px; overflow-y: auto; padding-right: 2px; }
.alert-mini {
  border: 1px solid var(--app-border-light, #ebeef5);
  border-left: 4px solid var(--app-border, #dcdfe6);
  border-radius: 8px;
  padding: 11px 12px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.alert-mini:hover { border-color: var(--app-primary, #2f6bd8); }
.alert-mini.active { box-shadow: 0 0 0 2px rgba(47, 107, 216, .18); border-color: var(--app-primary, #2f6bd8); }
.alert-mini.conf-g { border-left-color: var(--app-success, #67c23a); }
.alert-mini.conf-m { border-left-color: var(--app-warning, #e6a23c); }
.alert-mini.conf-l { border-left-color: var(--app-border, #dcdfe6); }
.alert-mini-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.alert-mini-title { font-size: 12px; color: var(--app-text-secondary, #909399); margin-top: 7px; }
.alert-mini-brief { font-size: 13px; font-weight: 600; color: var(--app-text-primary, #303133); line-height: 1.55; margin-top: 3px; }
.alert-mini-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.detail-panel { position: sticky; top: 10px; max-height: calc(100vh - 20px); overflow-y: auto; }
.detail-school { font-size: 12px; color: var(--app-text-secondary, #909399); margin-bottom: 4px; }
.detail-brief { font-size: 16px; font-weight: 700; color: var(--app-text-primary, #303133); line-height: 1.5; margin-bottom: 6px; }
.cockpit-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--app-text-primary, #303133);
  margin: 12px 0 6px;
}

.gap-chart {
  background: var(--app-fill-light, #f5f8ff);
  border: 1px solid var(--app-border-light, #ebeef5);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0;
}
.gap-chart-title { font-size: 12px; font-weight: 600; color: var(--app-text-primary, #303133); margin-bottom: 6px; }
.gap-row { display: flex; align-items: center; gap: 8px; margin: 7px 0; }
.gap-label { width: 56px; flex-shrink: 0; font-size: 11px; color: var(--app-text-secondary, #909399); }
.gap-track {
  position: relative;
  height: 34px;
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--app-border-light, #ebeef5);
  border-radius: 6px;
  overflow: hidden;
}
.gap-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
  transform: translateX(-50%);
  z-index: 2;
}
.gap-dot.st-intent { background: #e6a23c; }
.gap-dot.st-resource { background: #2f6bd8; }
.gap-dot.st-protect { background: #a855f7; }
.gap-dot.st-output { background: #2f9e6e; }
.gap-dot.st-other { background: #909399; }
.gap-year { position: absolute; bottom: 2px; font-size: 9px; color: #b1b3b8; transform: translateX(-50%); }
.gap-zero {
  position: absolute;
  left: 9px;
  top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #f56c6c;
}
.gap-bar {
  position: absolute;
  left: 0;
  top: 10px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #9fc0f5, #2f6bd8);
}
.gap-count { position: absolute; right: 7px; top: 8px; font-size: 11px; color: var(--app-text-secondary, #909399); }
.gap-note { font-size: 11px; color: var(--app-text-secondary, #909399); line-height: 1.5; }

.evidence-list { max-height: 310px; overflow-y: auto; padding-right: 2px; }
.evidence-item { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--app-border-light, #ebeef5); }
.evidence-item:last-child { border-bottom: 0; }
.evidence-item.sig-dim { opacity: 0.16; filter: grayscale(1); }
.evidence-item.sig-lit { opacity: 1; transition: opacity .45s ease; }
.ev-time { width: 82px; flex-shrink: 0; font-size: 11px; color: var(--app-text-secondary, #909399); line-height: 1.5; }
.ev-body { flex: 1; min-width: 0; font-size: 12px; color: var(--app-text-regular, #606266); line-height: 1.65; }

.disc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.disc-card {
  padding: 10px 12px;
  background: var(--app-fill-light, #f5f8ff);
  border: 1px solid var(--app-border-light, #ebeef5);
  border-radius: 8px;
  cursor: pointer;
}
.disc-card:hover { border-color: var(--app-primary, #2f6bd8); }
.disc-card b { display: block; font-size: 13px; color: var(--app-text-primary, #303133); margin-bottom: 3px; }

@media (max-width: 1320px) {
  .cockpit-grid { grid-template-columns: 280px minmax(320px, 1fr) 380px; }
}
@media (max-width: 1120px) {
  .cockpit-grid { grid-template-columns: 1fr; }
  .detail-panel { position: static; max-height: none; }
  .alert-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .disc-grid { grid-template-columns: 1fr; }
}


/* ===== 报告打印 / PDF 导出 ===== */
@media print {
  .app-nav, .app-footer, .page-header, .side-panel, .el-tabs__header, .el-button, .el-tag { display: none !important; }
  .app-main { padding: 0 !important; }
  .with-sidebar { display: block !important; }
  .main-panel { border: 0 !important; box-shadow: none !important; padding: 0 !important; background: #fff !important; }
  .report-paper { box-shadow: none !important; margin: 0 !important; border: 0 !important; }
  .panel-card { box-shadow: none !important; }
}

/* ===== 全局生成任务指示 ===== */
.nav-icon-item.gen-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecf3ff;
  color: #2f6bd8;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 12px;
}
.nav-icon-item.gen-indicator:hover { background: #dfeaff; }
