/* ============ ai4c 财务分析智能体 · 演示系统样式 ============ */
:root {
  --primary: #2d5bff;
  --primary-deep: #1e3fd0;
  --primary-soft: #eef2ff;
  --ink: #1a2233;
  --ink-2: #4a556b;
  --ink-3: #8a94a8;
  --bg: #f4f6fb;
  --card: #ffffff;
  --line: #e6eaf2;
  --good: #10b981;
  --bad: #ef4444;
  --warn: #f59e0b;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(26,34,51,.05), 0 8px 24px rgba(26,34,51,.06);
  --mono: 'Cascadia Code', Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px;
  overflow: hidden;
}
.app { display: flex; height: 100vh; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: 216px; flex-shrink: 0; background: #0e1630;
  display: flex; flex-direction: column; color: #c9d2e8;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 16px; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #2d5bff, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #fff; letter-spacing: -.5px;
  font-family: var(--mono);
}
.brand .bt { line-height: 1.25; }
.brand .bt b { display: block; color: #fff; font-size: 15px; }
.brand .bt span { font-size: 11px; color: #7d89a8; }
.nav { flex: 1; padding: 10px 10px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  border-radius: 10px; cursor: pointer; margin-bottom: 4px;
  font-size: 13.5px; color: #aab6d4; transition: all .15s;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; font-weight: 600; }
.nav-item .ic { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item .ic svg { width: 100%; height: 100%; }
.side-foot { padding: 14px 18px; font-size: 11px; color: #5b6785; border-top: 1px solid rgba(255,255,255,.07); line-height: 1.6; }

/* ---------- 主区域 ---------- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 56px; background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 24px; gap: 14px; flex-shrink: 0;
}
.topbar h1 { font-size: 16px; font-weight: 700; }
.topbar .spacer { flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  background: var(--primary-soft); color: var(--primary-deep);
  border-radius: 999px; font-size: 12.5px; font-weight: 600;
}
.chip.gray { background: #f1f3f8; color: var(--ink-2); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.content { flex: 1; overflow-y: auto; padding: 24px 28px 60px; scroll-behavior: smooth; }
.view { display: none; max-width: 1180px; margin: 0 auto; }
.view.active { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 通用卡片 ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 18px; }
.card h3 { font-size: 15px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.card h3 .num {
  width: 22px; height: 22px; border-radius: 7px; background: var(--primary-soft);
  color: var(--primary-deep); font-size: 12px; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.card .sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 首页 ---------- */
.hero {
  background: linear-gradient(120deg, #16224d 0%, #1e3fd0 55%, #7c3aed 130%);
  border-radius: 18px; padding: 34px 36px; color: #fff; margin-bottom: 22px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); border-radius: 50%;
}
.hero .tag { display: inline-block; background: rgba(255,255,255,.16); padding: 4px 12px; border-radius: 999px; font-size: 12px; margin-bottom: 14px; }
.hero h2 { font-size: 26px; margin-bottom: 10px; font-weight: 800; }
.hero p { font-size: 14px; color: #cfd9ff; max-width: 640px; line-height: 1.8; }
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.entry {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; cursor: pointer; transition: all .18s; border: 1.5px solid transparent;
  position: relative;
}
.entry:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 12px 32px rgba(45,91,255,.14); }
.entry .eic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 21px; }
.entry h4 { font-size: 15.5px; margin-bottom: 8px; }
.entry p { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.entry .go { position: absolute; right: 18px; top: 22px; color: var(--ink-3); font-size: 18px; transition: all .18s; }
.entry:hover .go { color: var(--primary); transform: translateX(3px); }
.vs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vs-table th, .vs-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.vs-table th { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.vs-table td:first-child { color: var(--ink-2); font-weight: 600; width: 130px; }
.vs-table .hl { color: var(--primary-deep); font-weight: 600; }

/* ---------- 数据底座 ---------- */
.ds-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ds-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; border: 1.5px solid transparent; transition: all .18s;
}
.ds-card.off { background: #f8f9fc; border-style: dashed; border-color: #d5dbe8; box-shadow: none; }
.ds-head { display: flex; align-items: flex-start; gap: 12px; }
.ds-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.ds-card.off .ds-ic { background: #eceff5; filter: grayscale(1); opacity: .7; }
.ds-tt { flex: 1; min-width: 0; }
.ds-tt b { font-size: 14.5px; display: block; }
.ds-tt span { font-size: 12px; color: var(--ink-3); }
.ds-card.off .ds-tt b { color: var(--ink-3); }
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; cursor: pointer; }
.switch input { display: none; }
.switch .tr { position: absolute; inset: 0; background: #d3d9e5; border-radius: 999px; transition: .2s; }
.switch .tr::after { content: ''; position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; top: 2px; left: 2px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .tr { background: var(--good); }
.switch input:checked + .tr::after { left: 20px; }
.switch.locked { opacity: .45; pointer-events: none; }
.ds-caps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cap {
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  background: #eefbf4; color: #0a8f5b; font-weight: 600;
}
.ds-card.off .cap { background: #eceff5; color: var(--ink-3); }
.ds-detail { font-size: 12px; color: var(--ink-3); margin-top: 10px; line-height: 1.65; }
.ds-unlock {
  margin-top: 10px; font-size: 12px; padding: 9px 12px; border-radius: 9px;
  background: linear-gradient(90deg, #fff7e8, #fffdf7); color: #b45309; line-height: 1.6;
  border: 1px dashed #f3d9a4;
}
.ds-hint {
  background: linear-gradient(90deg, var(--primary-soft), #f6f0ff); border-radius: var(--radius);
  padding: 16px 20px; font-size: 13px; color: var(--ink-2); line-height: 1.8; margin-bottom: 18px;
  border: 1px solid #dfe6ff;
}
.ds-hint b { color: var(--primary-deep); }

/* ---------- 发起分析 ---------- */
.launch-wrap { max-width: 760px; margin: 30px auto; text-align: center; }
.launch-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 40px 44px; }
.launch-card .big-ic {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 18px;
  background: linear-gradient(135deg, #2d5bff, #7c3aed); display: flex;
  align-items: center; justify-content: center; font-size: 32px;
}
.launch-card h2 { font-size: 20px; margin-bottom: 8px; }
.launch-card > p { color: var(--ink-2); font-size: 13px; margin-bottom: 24px; line-height: 1.7; }
.launch-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; text-align: left; }
.lopt { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: all .15s; }
.lopt:hover { border-color: var(--primary); }
.lopt.sel { border-color: var(--primary); background: var(--primary-soft); }
.lopt b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.lopt span { font-size: 12px; color: var(--ink-3); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 30px;
  background: linear-gradient(90deg, var(--primary), #5a3bff); color: #fff;
  border: none; border-radius: 999px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .18s; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(45,91,255,.35); }
.btn.ghost { background: #fff; color: var(--primary-deep); border: 1.5px solid var(--primary); }
.btn.sm { padding: 8px 20px; font-size: 13px; }

/* ---------- Agent 协作面板 ---------- */
.agent-panel { max-width: 860px; margin: 0 auto; }
.ap-head {
  background: linear-gradient(120deg, #16224d, #1e3fd0); color: #fff;
  border-radius: 16px 16px 0 0; padding: 22px 26px; display: flex; align-items: center; gap: 16px;
}
.ap-orb {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(from 0deg, #7c3aed, #2d5bff, #38bdf8, #7c3aed);
  animation: spin 2.4s linear infinite; position: relative;
}
.ap-orb::after { content: ''; position: absolute; inset: 5px; background: #182a63; border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.ap-orb.done { animation: none; background: var(--good); }
.ap-orb.done::after { content: '✓'; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 19px; font-weight: 700; inset: 0; background: transparent; }
.ap-tt { flex: 1; }
.ap-tt b { font-size: 16px; display: block; margin-bottom: 3px; }
.ap-tt span { font-size: 12.5px; color: #b9c6f5; }
.ap-timer { font-family: var(--mono); font-size: 20px; font-weight: 600; color: #9fb4ff; }
.ap-progress { height: 5px; background: #dfe5f2; overflow: hidden; }
.ap-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2d5bff, #7c3aed); transition: width .5s ease; }
.ap-body { background: var(--card); border-radius: 0 0 16px 16px; box-shadow: var(--shadow); padding: 10px 0 16px; }
.planner-box {
  margin: 12px 20px; padding: 14px 16px; background: var(--primary-soft);
  border-radius: 12px; font-size: 13px; line-height: 1.75; color: var(--ink-2);
  border-left: 3px solid var(--primary); display: none;
}
.planner-box b { color: var(--primary-deep); }
.ag-row { border-bottom: 1px solid #f0f2f8; margin: 0 20px; display: none; }
.ag-row:last-child { border-bottom: none; }
.ag-head { display: flex; align-items: center; gap: 12px; padding: 13px 4px; cursor: pointer; }
.ag-st { width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ag-st .pend { width: 9px; height: 9px; border-radius: 50%; background: #d3d9e5; }
.ag-st .run { width: 17px; height: 17px; border: 2.5px solid var(--primary-soft); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
.ag-st .ok { color: var(--good); font-weight: 800; font-size: 15px; }
.ag-name { flex: 1; font-size: 14px; font-weight: 600; }
.ag-row.pending .ag-name { color: var(--ink-3); font-weight: 400; }
.ag-meta { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.ag-arrow { color: var(--ink-3); font-size: 11px; transition: transform .2s; }
.ag-row.open .ag-arrow { transform: rotate(180deg); }
.ag-logs { display: none; padding: 2px 0 14px 34px; }
.ag-row.open .ag-logs { display: block; }
.log-line { display: flex; gap: 9px; margin-bottom: 8px; font-size: 12.5px; line-height: 1.6; align-items: flex-start; animation: fadein .3s; }
.log-tag {
  flex-shrink: 0; font-size: 10.5px; font-weight: 700; padding: 2px 8px;
  border-radius: 5px; margin-top: 1px; white-space: nowrap;
}
.lg-fetch { background: #e8f0ff; color: #1d4fd8; }
.lg-rule { background: #f3e8ff; color: #7e22ce; }
.lg-ext { background: #e0f5f1; color: #0b8a6d; }
.lg-calc { background: #fff3e0; color: #c26a08; }
.lg-think { background: #ffe9ec; color: #cf3050; }
.lg-verify { background: #e8fbef; color: #0a8f5b; }
.lg-out { background: #1a2233; color: #fff; }
.log-txt { color: var(--ink-2); font-family: inherit; }
.log-line.is-out .log-txt { color: var(--ink); font-weight: 600; }
.ap-done-bar { text-align: center; padding: 18px 0 6px; display: none; }

/* ---------- 报告页 ---------- */
.rep-head {
  background: linear-gradient(120deg, #16224d, #1e3fd0 70%, #4630b8); color: #fff;
  border-radius: 18px; padding: 26px 30px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 20px;
}
.rep-head .rt { flex: 1; }
.rep-head h2 { font-size: 21px; margin-bottom: 8px; }
.rep-head .rmeta { font-size: 12.5px; color: #bcc9f7; display: flex; gap: 16px; flex-wrap: wrap; }
.score-ring { text-align: center; flex-shrink: 0; }
.score-ring .sv { font-size: 30px; font-weight: 800; font-family: var(--mono); }
.score-ring .sl { font-size: 11px; color: #bcc9f7; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.kpi {
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 15px 16px;
  position: relative;
}
.kpi .kn { font-size: 12px; color: var(--ink-3); margin-bottom: 7px; }
.kpi .kv { font-size: 21px; font-weight: 800; font-family: var(--mono); letter-spacing: -.5px; }
.kpi .kd { font-size: 12px; margin-top: 5px; font-weight: 700; }
.kpi .kd.up { color: var(--good); } .kpi .kd.down { color: var(--bad); } .kpi .kd.flat { color: var(--warn); }
.kpi .kd span { color: var(--ink-3); font-weight: 400; margin-left: 5px; }
.kpi .ksrc { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.src-tag {
  font-size: 10px; padding: 2px 7px; border-radius: 4px; background: #f1f3f8;
  color: var(--ink-3); cursor: default;
}
.src-tag::before { content: '⛁ '; font-size: 9px; }
.insight {
  border-left: 3px solid var(--primary); background: #f8faff;
  border-radius: 0 10px 10px 0; padding: 13px 16px; margin-bottom: 12px;
  font-size: 13px; line-height: 1.75; color: var(--ink-2); position: relative;
}
.insight b { color: var(--ink); }
.insight.warn { border-color: var(--warn); background: #fffaf0; }
.insight.bad { border-color: var(--bad); background: #fff6f6; }
.evidence { margin-top: 10px; }
.evidence summary {
  cursor: pointer; font-size: 12px; color: var(--primary-deep); font-weight: 600;
  list-style: none; display: inline-flex; align-items: center; gap: 5px; user-select: none;
}
.evidence summary::-webkit-details-marker { display: none; }
.evidence summary::before { content: '▸'; transition: transform .15s; }
.evidence[open] summary::before { transform: rotate(90deg); }
.ev-body {
  margin-top: 9px; background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 11px 13px; font-size: 12px; line-height: 1.7;
}
.ev-body .ev-step { display: flex; gap: 8px; margin-bottom: 6px; }
.ev-body .ev-step:last-child { margin-bottom: 0; }
.conf {
  display: inline-block; font-size: 10.5px; padding: 2px 8px; border-radius: 999px;
  background: #e8fbef; color: #0a8f5b; font-weight: 700; margin-left: 8px;
}
.chart { width: 100%; height: 300px; }
.chart.tall { height: 340px; }
.chart.short { height: 250px; }

/* 洞察卡降级（数据源关闭时） */
.card[data-deps] { position: relative; }
.card.degraded > *:not(.degrade-mask) { filter: grayscale(.9) opacity(.28); pointer-events: none; }
.degrade-mask {
  display: none; position: absolute; inset: 0; z-index: 5;
  border-radius: var(--radius); align-items: center; justify-content: center;
  background: rgba(248,249,252,.6); backdrop-filter: blur(1px);
}
.card.degraded .degrade-mask { display: flex; }
.degrade-inner {
  background: #fff; border: 1.5px dashed #e3b93f; border-radius: 12px;
  padding: 16px 22px; max-width: 430px; text-align: center; font-size: 13px;
  color: #92600a; line-height: 1.7; box-shadow: 0 8px 24px rgba(26,34,51,.1);
}
.degrade-inner b { display: block; font-size: 14px; margin-bottom: 5px; color: #7a4d02; }
.degrade-inner .lk { margin-top: 8px; }

/* 风险 & 建议 */
.risk-item { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid #f0f2f8; align-items: flex-start; }
.risk-item:last-child { border-bottom: none; }
.risk-lv { flex-shrink: 0; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 7px; margin-top: 1px; }
.risk-lv.high { background: #fee2e2; color: #b91c1c; }
.risk-lv.mid { background: #fef3c7; color: #b45309; }
.risk-lv.low { background: #e0f2fe; color: #0369a1; }
.risk-item b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.risk-item p { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }
.action-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  transition: all .15s; background: #fff;
}
.action-card:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(45,91,255,.1); }
.action-card .ac-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.action-card .ac-no {
  width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(135deg,#2d5bff,#7c3aed);
  color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.action-card b { font-size: 14px; flex: 1; }
.action-card .ac-own { font-size: 11px; background: #f1f3f8; padding: 3px 9px; border-radius: 999px; color: var(--ink-2); }
.action-card p { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.action-card .ac-link { margin-top: 9px; font-size: 11.5px; color: var(--primary-deep); background: var(--primary-soft); display: inline-block; padding: 4px 10px; border-radius: 7px; }
.action-card .ac-link::before { content: '⮑ 依据: '; color: var(--ink-3); }

/* ---------- 追问区 ---------- */
.qa-zone { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.qa-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.qa-chip {
  padding: 8px 16px; border: 1.5px solid #d9e2ff; background: #f6f8ff; color: var(--primary-deep);
  border-radius: 999px; font-size: 13px; cursor: pointer; transition: all .15s; font-weight: 600;
}
.qa-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qa-chip:disabled, .qa-chip.used { opacity: .45; pointer-events: none; }
.qa-thread { }
.qa-q { display: flex; justify-content: flex-end; margin: 14px 0 10px; }
.qa-q span {
  background: linear-gradient(90deg, var(--primary), #5a3bff); color: #fff;
  padding: 10px 16px; border-radius: 14px 14px 3px 14px; font-size: 13.5px; max-width: 70%;
}
.qa-a {
  background: #f8faff; border: 1px solid #e4eaff; border-radius: 3px 14px 14px 14px;
  padding: 14px 16px; max-width: 92%; margin-bottom: 6px;
}
.qa-steps { margin-bottom: 10px; }
.qa-step { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; animation: fadein .3s; }
.qa-step .qs-ic { flex-shrink: 0; width: 17px; height: 17px; border-radius: 5px; font-size: 10px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.qs-db { background: #e8f0ff; color: #1d4fd8; }
.qs-ext { background: #e0f5f1; color: #0b8a6d; }
.qs-calc { background: #fff3e0; color: #c26a08; }
.qs-check { background: #e8fbef; color: #0a8f5b; }
.qa-step.doing .qs-txt::after { content: '…'; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.qa-ans { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); display: none; }
.qa-ans b { color: var(--ink); }
.qa-ans .qa-chart { width: 100%; height: 280px; margin: 12px 0 4px; }
.qa-srcs { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.qa-input { display: flex; gap: 10px; margin-top: 16px; }
.qa-input input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 18px;
  font-size: 13.5px; outline: none; font-family: inherit; transition: border .15s;
}
.qa-input input:focus { border-color: var(--primary); }

/* ---------- 上市财报解读 ---------- */
.upload-box {
  border: 2px dashed #c9d4f2; border-radius: 14px; padding: 26px; text-align: center;
  background: #fafbff; cursor: pointer; transition: all .15s; margin-bottom: 14px;
}
.upload-box:hover { border-color: var(--primary); background: var(--primary-soft); }
.upload-box .up-ic { font-size: 30px; margin-bottom: 8px; }
.upload-box b { display: block; font-size: 14px; margin-bottom: 4px; }
.upload-box span { font-size: 12px; color: var(--ink-3); }
.sample-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: all .15s;
}
.sample-row:hover { border-color: var(--primary); background: var(--primary-soft); }
.sample-row .sic { width: 36px; height: 36px; border-radius: 9px; background: #fee2e2; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.sample-row b { font-size: 13.5px; display: block; }
.sample-row span { font-size: 11.5px; color: var(--ink-3); }
.sample-row .go2 { margin-left: auto; color: var(--primary); font-weight: 700; font-size: 13px; }

/* ---------- 导航徽标 / 跳过按钮 ---------- */
.nav-badge {
  margin-left: auto; font-size: 10px; background: #10b981; color: #fff;
  padding: 2px 7px; border-radius: 999px; font-weight: 700;
}
.ap-skip {
  font-size: 12px; color: #9fb4ff; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px; margin-right: 4px; flex-shrink: 0;
}
.ap-skip:hover { color: #fff; }

/* ---------- 管理层摘要（金字塔） ---------- */
.summary-card {
  background: linear-gradient(135deg, #fdfefe, #f6f8ff); border: 1.5px solid #dfe6ff;
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 18px;
}
.summary-card .sm-label {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800;
  color: var(--primary-deep); background: var(--primary-soft); padding: 5px 13px;
  border-radius: 999px; margin-bottom: 13px; letter-spacing: 1px;
}
.summary-card .verdict { font-size: 15.5px; line-height: 2; color: var(--ink); font-weight: 500; margin-bottom: 16px; }
.summary-card .verdict b { background: linear-gradient(transparent 62%, #ffe58f 62%); }
.sum-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sum-pt {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px;
  cursor: pointer; transition: all .15s; display: flex; flex-direction: column;
}
.sum-pt:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(45,91,255,.1); transform: translateY(-2px); }
.sum-pt .pt-no {
  width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg,#2d5bff,#7c3aed);
  color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center;
  justify-content: center; margin-bottom: 9px;
}
.sum-pt b { font-size: 13.5px; margin-bottom: 6px; display: block; }
.sum-pt p { font-size: 12px; color: var(--ink-2); line-height: 1.7; flex: 1; }
.sum-pt .pt-go { font-size: 11.5px; color: var(--primary-deep); font-weight: 700; margin-top: 9px; }

/* ---------- 决策台 ---------- */
.decision-card {
  background: #10182e; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; color: #dbe3f8;
}
.decision-card h3 { color: #fff; font-size: 15px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.decision-card .sub { color: #7d89a8; font-size: 12.5px; margin-bottom: 16px; }
.dec-item { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.dec-item:last-child { margin-bottom: 0; }
.dec-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.dec-no {
  width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg,#f59e0b,#ef4444);
  color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dec-top b { font-size: 14.5px; color: #fff; flex: 1; }
.dec-meta { font-size: 11px; background: rgba(255,255,255,.1); padding: 3px 10px; border-radius: 999px; }
.dec-ctx { font-size: 12.5px; color: #aab6d4; line-height: 1.7; margin-bottom: 11px; }
.dec-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 9px; margin-bottom: 11px; }
.dec-opt { background: rgba(255,255,255,.06); border-radius: 9px; padding: 10px 12px; font-size: 12px; line-height: 1.6; }
.dec-opt .ot { font-weight: 800; color: #ffd166; display: block; margin-bottom: 4px; font-size: 12px; }
.dec-opt .oi { color: #8fe3b4; display: block; margin-top: 5px; font-size: 11.5px; }
.dec-ai {
  font-size: 12.5px; line-height: 1.7; background: rgba(45,91,255,.16); border-left: 3px solid #5a7cff;
  padding: 10px 13px; border-radius: 0 9px 9px 0; color: #cfd9ff;
}
.dec-ai b { color: #fff; }

/* ---------- 数据出处角标 ---------- */
sup.cite {
  font-size: 10px; color: var(--primary-deep); font-weight: 700; cursor: help;
  letter-spacing: 1px; margin-left: 2px;
}
sup.cite.ext-c { color: #b45309; }
.src-tag.int::before { content: '内 '; color: #0a8f5b; font-weight: 800; font-size: 9px; }
.src-tag.ext::before { content: '外 '; color: #b45309; font-weight: 800; font-size: 9px; }
.srcreg-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.srcreg-table th, .srcreg-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.srcreg-table th { color: var(--ink-3); font-size: 11.5px; }
.srcreg-table .no { font-weight: 800; color: var(--primary-deep); }
.badge-int { font-size: 10.5px; padding: 2px 9px; border-radius: 999px; background: #e8fbef; color: #0a8f5b; font-weight: 700; }
.badge-ext { font-size: 10.5px; padding: 2px 9px; border-radius: 999px; background: #fff3e0; color: #b45309; font-weight: 700; }

/* ---------- 数据底座样例表 ---------- */
.ds-stat { font-size: 11.5px; color: var(--primary-deep); margin-top: 8px; font-weight: 600; }
.ds-sample summary {
  cursor: pointer; font-size: 12px; color: var(--primary-deep); font-weight: 700;
  list-style: none; margin-top: 10px; user-select: none; display: inline-flex; align-items: center; gap: 5px;
}
.ds-sample summary::-webkit-details-marker { display: none; }
.ds-sample summary::before { content: '▸'; transition: transform .15s; }
.ds-sample[open] summary::before { transform: rotate(90deg); }
.sample-table { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 8px; }
.sample-table caption { text-align: left; font-size: 11px; color: var(--ink-3); padding-bottom: 5px; }
.sample-table th { background: #f4f6fb; color: var(--ink-2); font-weight: 700; padding: 6px 9px; text-align: left; font-size: 11px; }
.sample-table td { padding: 6px 9px; border-bottom: 1px solid #f0f2f8; font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.sample-table tr td:first-child { font-family: inherit; }

/* ---------- 场景地图 ---------- */
.sc-group { margin-bottom: 16px; }
.sc-group .sc-gt { font-size: 12.5px; font-weight: 800; color: var(--ink-3); margin-bottom: 9px; letter-spacing: 1px; }
.sc-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.sc-item {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px;
  display: flex; gap: 10px; align-items: flex-start; background: #fff; transition: all .15s;
}
.sc-item.live { border-color: var(--primary); background: var(--primary-soft); cursor: pointer; }
.sc-item.live:hover { box-shadow: 0 6px 18px rgba(45,91,255,.15); transform: translateY(-2px); }
.sc-item .si { font-size: 20px; flex-shrink: 0; }
.sc-item b { font-size: 13px; display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.sc-item p { font-size: 11.5px; color: var(--ink-3); line-height: 1.55; }
.sc-badge { font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 5px; background: var(--primary); color: #fff; }
.sc-badge.part { background: #e8fbef; color: #0a8f5b; }

/* ---------- 主线闭环条（hero内） ---------- */
.loop-bar { display: flex; align-items: center; gap: 6px; margin-top: 22px; flex-wrap: wrap; position: relative; z-index: 1; }
.loop-step {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 11px; padding: 9px 16px; font-size: 13px; font-weight: 700; color: #fff;
}
.loop-step i {
  font-style: normal; font-size: 9.5px; background: rgba(255,255,255,.22); border-radius: 999px;
  padding: 1px 7px; margin-bottom: 3px; font-weight: 800;
}
.loop-step small { font-size: 10px; color: #b9c6f5; font-weight: 400; }
.loop-arrow { color: #8fa2e8; font-size: 15px; font-weight: 700; }
.loop-arrow.loop-back { font-size: 19px; color: #7ce3ae; }

/* ---------- 哨兵推送流 ---------- */
.sent-item { display: flex; gap: 11px; padding: 11px 2px; border-bottom: 1px solid #f0f2f8; align-items: flex-start; }
.sent-item:last-child { border-bottom: none; }
.sent-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.sent-dot.red { background: #ef4444; box-shadow: 0 0 0 3px #fee2e2; animation: pulse 1.6s infinite; }
.sent-dot.yellow { background: #f59e0b; box-shadow: 0 0 0 3px #fef3c7; }
.sent-dot.green { background: #10b981; box-shadow: 0 0 0 3px #d1fae5; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(239,68,68,.12); } }
.sent-body { flex: 1; min-width: 0; }
.sent-meta { font-size: 11px; color: var(--ink-3); margin-bottom: 3px; }
.sent-meta b { color: var(--ink-2); }
.sent-msg { font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.sent-msg b { color: var(--bad); }
.sent-act {
  display: inline-block; margin-top: 6px; font-size: 11.5px; color: var(--primary-deep);
  background: var(--primary-soft); padding: 4px 11px; border-radius: 7px; cursor: pointer; font-weight: 600;
}
.sent-act:hover { background: var(--primary); color: #fff; }

/* ---------- 智能体班组 ---------- */
.team-row { display: flex; align-items: center; gap: 11px; padding: 10px 2px; border-bottom: 1px solid #f0f2f8; }
.team-row:last-child { border-bottom: none; }
.team-ic { font-size: 19px; }
.team-row b { font-size: 13px; display: block; }
.team-mode { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e8fbef; color: #0a8f5b; margin-left: 6px; }
.team-stat { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 论点章节 ---------- */
.arg-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 6px; }
.arg-chip {
  flex-shrink: 0; background: linear-gradient(135deg,#2d5bff,#7c3aed); color: #fff;
  font-size: 12px; font-weight: 800; padding: 6px 13px; border-radius: 9px; margin-top: 2px; white-space: nowrap;
}
.arg-head h3 { font-size: 17px; line-height: 1.5; margin: 0; display: block; }
.arg-sub { font-size: 12.5px; color: var(--ink-3); margin: 4px 0 16px 0; }
.sub-arg { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.sub-arg:first-of-type { border-top: none; padding-top: 4px; }
.sub-arg .sa-title { display: flex; align-items: baseline; gap: 9px; margin-bottom: 4px; }
.sub-arg .sa-no { font-size: 11.5px; font-weight: 800; color: var(--primary-deep); background: var(--primary-soft); padding: 2px 9px; border-radius: 6px; flex-shrink: 0; }
.sub-arg .sa-title b { font-size: 14.5px; }
.chart-caption {
  font-size: 12.5px; font-weight: 700; color: var(--ink); margin: 8px 0 2px;
  padding-left: 10px; border-left: 3px solid var(--primary);
}
.chart-caption small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11.5px; margin-top: 2px; }

/* ---------- 决策建议书 ---------- */
.book-head {
  background: #10182e; border-radius: var(--radius); padding: 22px 26px; color: #dbe3f8; margin-bottom: 14px;
}
.book-head h3 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.book-head p { font-size: 12.5px; color: #aab6d4; line-height: 1.7; }
.dec-book { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); padding: 20px 24px; margin-bottom: 16px; }
.db-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.db-id { font-family: var(--mono); font-size: 11px; color: var(--ink-3); background: #f1f3f8; padding: 3px 9px; border-radius: 6px; }
.db-top b { font-size: 16px; flex: 1; }
.db-status { font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: #fef3c7; color: #b45309; }
.db-status.adopted { background: #d1fae5; color: #047857; }
.db-trigger {
  font-size: 12.5px; line-height: 1.75; color: var(--ink-2); background: #fff8ef;
  border-left: 3px solid var(--warn); padding: 10px 13px; border-radius: 0 9px 9px 0; margin-bottom: 14px;
}
.db-trigger b { color: #92600a; }
.strat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 14px; }
.strat {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; position: relative;
  font-size: 12px; line-height: 1.65; color: var(--ink-2); background: #fbfcfe;
}
.strat.rec { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 4px 14px rgba(45,91,255,.1); }
.strat .st-tag { font-size: 10.5px; font-weight: 800; color: var(--ink-3); }
.strat.rec .st-tag { color: var(--primary-deep); }
.strat .st-rec {
  position: absolute; top: -9px; right: 10px; font-size: 10px; font-weight: 800;
  background: linear-gradient(90deg,#2d5bff,#7c3aed); color: #fff; padding: 2px 10px; border-radius: 999px;
}
.strat b { display: block; font-size: 13.5px; color: var(--ink); margin: 3px 0 6px; }
.strat .st-impact { display: block; margin-top: 7px; color: #0a8f5b; font-weight: 600; }
.strat .st-risk { display: block; margin-top: 4px; color: #b45309; font-size: 11.5px; }
.db-reason {
  font-size: 13px; line-height: 1.8; color: var(--ink-2); background: #f6f9ff;
  border-left: 3px solid var(--primary); padding: 11px 14px; border-radius: 0 9px 9px 0; margin-bottom: 10px;
}
.db-reason b { color: var(--primary-deep); }
.db-contra {
  font-size: 12.5px; line-height: 1.75; color: var(--ink-2); background: #fdf6f6;
  border-left: 3px solid #e29797; padding: 10px 14px; border-radius: 0 9px 9px 0; margin-bottom: 14px;
}
.db-contra b { color: #b13a3a; }
.db-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.db-metrics { flex: 1; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; min-width: 260px; }
.db-metrics b { color: var(--ink-2); }
.adopt-plan {
  display: none; margin-top: 14px; border: 1.5px dashed #34d399; background: #f0fdf6;
  border-radius: 12px; padding: 14px 17px; animation: fadein .35s;
}
.adopt-plan.show { display: block; }
.adopt-plan .apl-t { font-size: 13px; font-weight: 800; color: #047857; margin-bottom: 9px; }
.apl-item { display: flex; gap: 9px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; align-items: baseline; }
.apl-item .apl-no { font-size: 10px; font-weight: 800; background: #d1fae5; color: #047857; border-radius: 5px; padding: 1px 7px; flex-shrink: 0; }
.apl-item .apl-own { margin-left: auto; font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.apl-sync { margin-top: 9px; font-size: 11.5px; color: #047857; }

/* ---------- 决策台账 ---------- */
.led-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.led-stat { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 15px 18px; }
.led-stat .lv { font-size: 24px; font-weight: 800; font-family: var(--mono); }
.led-stat .ln { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.led-item { border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; margin-bottom: 11px; background: #fff; }
.led-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.led-top b { font-size: 14px; flex: 1; }
.verdict-badge { font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.verdict-badge.ok { background: #d1fae5; color: #047857; }
.verdict-badge.warn { background: #fef3c7; color: #b45309; }
.verdict-badge.pend { background: #f1f3f8; color: var(--ink-3); }
.led-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.led-kv span b { color: var(--ink-3); font-weight: 600; font-size: 11px; display: block; margin-bottom: 1px; }
.led-note { font-size: 12px; color: var(--ink-2); line-height: 1.7; background: #f8faff; border-radius: 8px; padding: 9px 12px; }

/* ---------- 工作台驾驶舱 ---------- */
.ck-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 11px; margin-bottom: 16px; }
.ck-kpi { background: var(--card); border-radius: 11px; box-shadow: var(--shadow); padding: 12px 14px; }
.ck-kpi .n { font-size: 11px; color: var(--ink-3); margin-bottom: 5px; }
.ck-kpi .v { font-size: 18px; font-weight: 800; font-family: var(--mono); letter-spacing: -.5px; }
.ck-kpi .d { font-size: 10.5px; margin-top: 4px; font-weight: 700; }
.ck-kpi .d.down { color: var(--bad); } .ck-kpi .d.up { color: var(--good); } .ck-kpi .d.flat { color: var(--warn); }
.todo-item { display: flex; gap: 12px; padding: 13px 2px; border-bottom: 1px solid #f0f2f8; align-items: flex-start; }
.todo-item:last-child { border-bottom: none; }
.todo-lv { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
.todo-lv.red { background: #ef4444; box-shadow: 0 0 0 3px #fee2e2; }
.todo-lv.yellow { background: #f59e0b; box-shadow: 0 0 0 3px #fef3c7; }
.todo-item b { font-size: 13.5px; display: block; }
.todo-meta { font-size: 11px; color: var(--ink-3); margin: 2px 0 4px; }
.todo-impact { font-size: 12px; color: #b13a3a; line-height: 1.6; background: #fdf6f6; border-radius: 7px; padding: 6px 10px; }
.todo-item .btn.sm { flex-shrink: 0; align-self: center; padding: 7px 16px; font-size: 12px; }
.exec-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #f0f2f8; font-size: 12.5px; }
.exec-row:last-child { border-bottom: none; }
.exec-row b { flex: 1; font-size: 13px; font-weight: 600; }
.exec-row .er-src { font-size: 10.5px; color: var(--ink-3); }

/* ---------- 报告清单 / 主题清单 ---------- */
.slice-row {
  display: flex; align-items: center; gap: 14px; padding: 15px 17px;
  border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 10px; transition: all .15s; background: #fff;
}
.slice-row.openable { cursor: pointer; }
.slice-row.openable:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(45,91,255,.12); }
.slice-row .sl-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.slice-row.dim { background: #fafbfd; }
.slice-row.dim .sl-ic { background: #eef0f5; filter: grayscale(.6); }
.slice-row b { font-size: 14px; display: block; }
.slice-row .sl-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.slice-row .sl-note { font-size: 11px; color: #b45309; margin-top: 3px; }
.slice-badge { flex-shrink: 0; font-size: 10.5px; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.slice-badge.b1 { background: #d1fae5; color: #047857; }
.slice-badge.b2 { background: #f1f3f8; color: var(--ink-3); }
.slice-badge.b3 { background: #fef3c7; color: #b45309; }
.slice-row .sl-open { flex-shrink: 0; color: var(--primary); font-weight: 700; font-size: 13px; }
.topic-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 11px; margin-bottom: 8px; }
.topic-row.on { border-color: var(--primary); background: var(--primary-soft); }
.topic-row.off { opacity: .55; }
.topic-row b { font-size: 13px; }
.topic-row p { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.topic-tag { margin-left: auto; flex-shrink: 0; font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.topic-tag.t-on { background: var(--primary); color: #fff; }
.topic-tag.t-off { background: #f1f3f8; color: var(--ink-3); }

/* ---------- 同业对标 ---------- */
.bench-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.bench-table th, .bench-table td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.bench-table th { color: var(--ink-3); font-size: 11.5px; font-family: inherit; }
.bench-table th:first-child, .bench-table td:first-child { text-align: left; font-family: inherit; font-weight: 600; }
.bench-table td.self { background: var(--primary-soft); font-weight: 800; color: var(--primary-deep); }
.bench-table td.worst { color: var(--bad); font-weight: 700; }
.bench-table td.best { color: var(--good); font-weight: 700; }

/* ---------- 引用角标与悬停出处 ---------- */
sup.cite.ct-ai { color: #b45309; }
sup.cite.ct-int { color: #8a94a8; }
.cite-tip {
  display: none; position: fixed; z-index: 999; max-width: 380px;
  background: #10182e; color: #dbe3f8; border-radius: 11px; padding: 12px 15px;
  font-size: 12px; line-height: 1.7; box-shadow: 0 12px 36px rgba(10,16,40,.35);
  pointer-events: none;
}
.cite-tip b { color: #fff; display: block; margin-bottom: 4px; font-size: 12.5px; }
.cite-tip .tip-loc { color: #9fb4ff; font-size: 11px; margin-bottom: 6px; }
.cite-tip.show { display: block; animation: fadein .12s; }
.cite-tip.tp-ai b { color: #ffd166; }
.cite-tip.tp-int b { color: #aab6d4; }

/* ---------- 解锁预览卡（内部数据升级位） ---------- */
.locked-card { border: 1.5px dashed #c9d4f2; background: #fafbff; box-shadow: none; }
.locked-card .lk-head { display: flex; align-items: flex-start; gap: 12px; }
.locked-card .lk-ic { width: 40px; height: 40px; border-radius: 11px; background: #eef0f7; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.locked-card .lk-tt b { font-size: 14.5px; display: block; margin-bottom: 4px; }
.locked-card .lk-tt p { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.locked-card .lk-cta { margin-top: 10px; font-size: 12px; color: var(--primary-deep); background: var(--primary-soft); display: inline-block; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-weight: 700; }
.locked-card .lk-cta:hover { background: var(--primary); color: #fff; }
.locked-card .preview-body { display: none; margin-top: 14px; }
.locked-card.unlocked { border-style: solid; border-color: #a7e3c4; background: #fff; box-shadow: var(--shadow); }
.locked-card.unlocked .preview-body { display: block; animation: fadein .3s; }
.locked-card.unlocked .lk-cta { display: none; }
.preview-banner {
  font-size: 11.5px; font-weight: 700; color: #047857; background: #ecfdf3;
  border: 1px solid #a7e3c4; border-radius: 8px; padding: 6px 12px; display: inline-block; margin-bottom: 10px;
}

/* ---------- 进度条与监控框（决策跟踪） ---------- */
.prog { display: flex; align-items: center; gap: 10px; margin: 9px 0 7px; }
.prog .pg-bar { flex: 1; height: 8px; background: #eef0f6; border-radius: 999px; overflow: hidden; }
.prog .pg-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2d5bff, #7c3aed); }
.prog .pg-bar i.warn { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.prog .pg-bar i.ok { background: #10b981; }
.prog .pg-txt { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; font-weight: 700; }
.monitor-box {
  font-size: 12px; color: var(--ink-2); line-height: 1.7; background: #f6f9ff;
  border-left: 3px solid #5a7cff; padding: 8px 12px; border-radius: 0 8px 8px 0; margin-bottom: 7px;
}
.agentlog-box {
  font-size: 12px; color: #4a4458; line-height: 1.7; background: #faf7ff;
  border-left: 3px solid #a78bfa; padding: 8px 12px; border-radius: 0 8px 8px 0; margin-bottom: 7px;
}
.alert-box {
  font-size: 12px; color: #b13a3a; line-height: 1.7; background: #fdf6f6;
  border-left: 3px solid #ef4444; padding: 8px 12px; border-radius: 0 8px 8px 0;
}

/* ---------- 外部研究 ---------- */
.pipe-row { display: flex; flex-wrap: wrap; gap: 9px; }
.pipe {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  padding: 8px 15px; border-radius: 999px; border: 1.5px solid #a7e3c4; background: #ecfdf3; color: #047857;
}
.pipe .pd { width: 7px; height: 7px; border-radius: 50%; background: #10b981; }
.pipe.off { border-color: var(--line); background: #f7f8fb; color: var(--ink-3); }
.pipe.off .pd { background: #c3cad8; }
.research-search { display: flex; gap: 10px; margin-top: 14px; }
.research-search input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 20px;
  font-size: 13.5px; outline: none; font-family: inherit;
}
.research-search input:focus { border-color: var(--primary); }
.rs-card { border: 1px solid var(--line); border-radius: 13px; padding: 18px 20px; background: #fff; }
.rs-card .rs-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rs-card .rs-ic { font-size: 22px; }
.rs-card b.rs-name { font-size: 15px; }
.rs-card .rs-value { font-size: 12.5px; color: var(--ink); font-weight: 600; margin-bottom: 7px; }
.rs-card .rs-flow { font-size: 11.5px; color: var(--ink-3); line-height: 1.65; background: #f7f8fb; border-radius: 8px; padding: 7px 11px; margin-bottom: 10px; }
.agent-chip {
  display: inline-block; font-size: 11px; font-weight: 700; color: #6d28d9;
  background: #f3e8ff; padding: 3px 10px; border-radius: 999px; margin: 0 5px 5px 0;
}

/* ---------- 智能体体系（方案介绍） ---------- */
.agsys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.agsys {
  border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; background: #fff;
}
.agsys .as-top { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.agsys .as-ic { font-size: 20px; }
.agsys b { font-size: 14px; }
.agsys .as-mode { margin-left: auto; font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: #e8fbef; color: #0a8f5b; }
.agsys p { font-size: 11.5px; color: var(--ink-3); line-height: 1.65; margin-top: 7px; }

/* ---------- 财务分析双 tab ---------- */
.ai-tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; border-bottom: 1.5px solid var(--line); padding-bottom: 0; }
.ai-tab {
  padding: 11px 20px; font-size: 14px; font-weight: 700; color: var(--ink-3);
  cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; transition: all .15s;
}
.ai-tab:hover { color: var(--ink); }
.ai-tab.active { color: var(--primary-deep); border-bottom-color: var(--primary); }
.ai-tabs .spacer { flex: 1; }

/* ---------- 报告陈列（目录式） ---------- */
.gal-head { display: flex; align-items: center; margin-bottom: 12px; }
.gal-head h3 { font-size: 15px; }
.gal-head .spacer { flex: 1; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 13px; }
.gal-card {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 18px 20px;
  border: 1.5px solid transparent; transition: all .18s; position: relative; display: flex; flex-direction: column;
}
.gal-card.openable { cursor: pointer; }
.gal-card.openable:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(45,91,255,.13); }
.gal-card.dim { background: #fafbfd; box-shadow: none; border: 1.5px dashed #dfe3ec; }
.gal-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.gal-top .gi { width: 40px; height: 40px; border-radius: 11px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.gal-card.dim .gi { background: #eef0f5; filter: grayscale(.5); }
.gal-top b { font-size: 14.5px; flex: 1; line-height: 1.4; }
.gal-rating {
  font-family: var(--mono); font-size: 15px; font-weight: 800; color: var(--primary-deep);
  background: var(--primary-soft); padding: 4px 11px; border-radius: 9px; flex-shrink: 0;
}
.gal-card.dim .gal-rating { background: #eef0f5; color: var(--ink-3); font-size: 12px; }
.gal-one { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; flex: 1; }
.gal-meta { font-size: 11px; color: var(--ink-3); margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.gal-meta .spacer { flex: 1; }
.gal-open { color: var(--primary); font-weight: 700; font-size: 12.5px; }
.gal-note { font-size: 11px; color: #b45309; margin-top: 6px; }

/* ---------- 数据说明卡（诉求与价值） ---------- */
.dsv-row { display: grid; grid-template-columns: 16px 1fr; gap: 8px; font-size: 12px; line-height: 1.7; color: var(--ink-2); margin-top: 8px; }
.dsv-row .dv-ic { font-size: 11px; margin-top: 2px; }
.dsv-row b { color: var(--ink); font-weight: 700; }
.dsv-without { color: #b13a3a; }
.ds-status { flex-shrink: 0; font-size: 10.5px; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.ds-status.on { background: #d1fae5; color: #047857; }
.ds-status.off { background: #fef3c7; color: #b45309; }

/* ---------- 方案介绍：痛点/局限 ---------- */
.pain-card { border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; background: #fff; }
.pain-card .pi { font-size: 21px; margin-bottom: 8px; display: block; }
.pain-card b { font-size: 13.5px; display: block; margin-bottom: 5px; }
.pain-card p { font-size: 12px; color: var(--ink-2); line-height: 1.7; }
.limit-row { padding: 13px 0; border-bottom: 1px solid #f0f2f8; }
.limit-row:last-child { border-bottom: none; }
.limit-row b { font-size: 13.5px; display: block; margin-bottom: 5px; color: var(--ink); }
.limit-row p { font-size: 12.5px; color: var(--ink-2); line-height: 1.75; }
.sol-card { border: 1px solid #dfe6ff; background: #f8faff; border-radius: 12px; padding: 16px 18px; }
.sol-card .si2 { font-size: 21px; display: block; margin-bottom: 8px; }
.sol-card b { font-size: 14px; display: block; margin-bottom: 6px; color: var(--primary-deep); }
.sol-card p { font-size: 12.5px; color: var(--ink-2); line-height: 1.75; }

/* ---------- 状态徽章（跟踪） ---------- */
.verdict-badge.bad { background: #fee2e2; color: #b91c1c; }
.outcome-box {
  font-size: 12px; color: #065f46; line-height: 1.7; background: #ecfdf3;
  border-left: 3px solid #10b981; padding: 8px 12px; border-radius: 0 8px 8px 0; margin-bottom: 7px;
}

/* ---------- 研究主题 tab ---------- */
.theme-tabs { display: flex; gap: 9px; margin-bottom: 14px; flex-wrap: wrap; }
.theme-tab {
  padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13px;
  font-weight: 700; color: var(--ink-2); cursor: pointer; transition: all .15s; background: #fff;
}
.theme-tab:hover { border-color: var(--primary); color: var(--primary-deep); }
.theme-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.dim-chip {
  display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  background: #f1f3f8; padding: 4px 12px; border-radius: 999px; margin: 0 6px 6px 0;
}
.obj-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 7px 15px; border-radius: 999px; border: 1.5px solid #d9e2ff; background: #f6f8ff;
  color: var(--primary-deep); cursor: pointer; margin: 0 7px 7px 0; transition: all .15s;
}
.obj-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 顶栏三大Tab布局 ---------- */
.app-top { flex-direction: column; }
.app-top .main { width: 100%; min-height: 0; }
.app-top .content { min-height: 0; }
.topnav {
  height: 60px; background: #0e1630; display: flex; align-items: center;
  padding: 0 22px; gap: 18px; flex-shrink: 0;
}
.topnav .spacer { flex: 1; }
.brand-top { padding: 0; }
.brand-top .bt b { font-size: 14.5px; }
.top-tabs { display: flex; gap: 6px; margin-left: 18px; }
.top-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 22px;
  border-radius: 11px; font-size: 14.5px; font-weight: 700; color: #aab6d4;
  cursor: pointer; transition: all .15s;
}
.top-tab:hover { background: rgba(255,255,255,.07); color: #fff; }
.top-tab.active { background: var(--primary); color: #fff; }
.topnav .chip { background: rgba(255,255,255,.09); color: #c9d2e8; }
.topnav .chip.gray { background: rgba(255,255,255,.06); color: #93a0c0; }
.topnav .chip .dot { background: #34d399; }

/* ---------- 新建分析弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 900; background: rgba(14,22,48,.55);
  backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center;
}
.modal {
  width: 620px; max-width: 92vw; max-height: 84vh; background: #fff; border-radius: 16px;
  box-shadow: 0 24px 80px rgba(10,16,40,.4); display: flex; flex-direction: column;
  animation: fadein .18s;
}
.modal-head { display: flex; align-items: center; padding: 18px 22px 12px; }
.modal-head b { font-size: 16px; flex: 1; }
.modal-close { cursor: pointer; color: var(--ink-3); font-size: 15px; padding: 4px 8px; border-radius: 7px; }
.modal-close:hover { background: #f1f3f8; color: var(--ink); }
.modal-body { padding: 4px 22px 10px; overflow-y: auto; }
.modal-foot { padding: 12px 22px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 5px; }
.nm-group { font-size: 12px; font-weight: 800; color: var(--ink-3); margin: 12px 0 7px; letter-spacing: 1px; }
.nm-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: 11px; margin-bottom: 7px; transition: all .15s;
}
.nm-item.on { cursor: pointer; }
.nm-item.on:hover { border-color: var(--primary); background: var(--primary-soft); }
.nm-item.off { opacity: .55; }
.nm-item b { font-size: 13.5px; display: block; }
.nm-item p { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.nm-go { margin-left: auto; flex-shrink: 0; font-size: 12px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.nm-off { margin-left: auto; flex-shrink: 0; font-size: 10.5px; color: var(--ink-3); background: #f1f3f8; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------- 分析集市 ---------- */
.mkt-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.mkt-cats { display: flex; gap: 7px; flex-wrap: wrap; }
.mkt-cat {
  padding: 8px 17px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: var(--ink-2); background: #fff; border: 1.5px solid var(--line); cursor: pointer; transition: all .15s;
}
.mkt-cat:hover { border-color: var(--primary); color: var(--primary-deep); }
.mkt-cat.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.mkt-search {
  flex: 1; min-width: 180px; max-width: 300px; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: 12.5px; outline: none; font-family: inherit; background: #fff;
}
.mkt-search:focus { border-color: var(--primary); }
.mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.mkt-card {
  background: var(--card); border-radius: 15px; box-shadow: var(--shadow); padding: 18px 20px;
  border: 1.5px solid transparent; transition: all .18s; position: relative;
  display: flex; flex-direction: column; overflow: hidden;
}
.mkt-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #2d5bff, #7c3aed);
}
.mkt-card.dim::before { background: #dfe3ec; }
.mkt-card.openable { cursor: pointer; }
.mkt-card.openable:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(45,91,255,.15); }
.mkt-card.dim { background: #fafbfd; box-shadow: none; border: 1.5px dashed #e2e6ee; }
.mkt-new {
  position: absolute; top: 12px; right: -26px; transform: rotate(38deg);
  background: linear-gradient(90deg, #f43f5e, #f97316); color: #fff; font-size: 10px;
  font-weight: 800; padding: 3px 30px; letter-spacing: 2px;
}
.mkt-top { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 10px; }
.mkt-top .mi { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.mkt-card.dim .mi { background: #eef0f5; filter: grayscale(.5); }
.mkt-top b { font-size: 14.5px; line-height: 1.4; flex: 1; padding-top: 2px; }
.mkt-rating {
  font-family: var(--mono); font-size: 13px; font-weight: 800; padding: 4px 11px;
  border-radius: 9px; flex-shrink: 0; background: #f1f3f8; color: var(--ink-2);
}
.mkt-rating.warn { background: #fef3c7; color: #b45309; }
.mkt-rating.bad { background: #fee2e2; color: #b91c1c; }
.mkt-rating.demo { background: #e0f2fe; color: #0369a1; }
.mkt-one { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; flex: 1; }
.mkt-meta { font-size: 11px; color: var(--ink-3); margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.mkt-meta .cat-tag { font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: #f1f3f8; color: var(--ink-3); }
.mkt-meta .spacer { flex: 1; }
.mkt-empty {
  grid-column: 1 / -1; text-align: center; padding: 40px 0; color: var(--ink-3); font-size: 13px;
}

/* ---------- 研究报告页 ---------- */
.rr-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.rr-head h2 { font-size: 19px; flex: 1; }
.rr-badge { font-size: 11px; font-weight: 800; padding: 5px 14px; border-radius: 999px; }

/* 打印 / 滚动条 */
.content::-webkit-scrollbar { width: 9px; }
.content::-webkit-scrollbar-thumb { background: #cdd5e4; border-radius: 6px; }
.content::-webkit-scrollbar-thumb:hover { background: #b4bfd4; }
.footer-note { text-align: center; font-size: 11.5px; color: var(--ink-3); padding: 20px 0 0; }
