:root {
  --navy: #1F4E79;
  --navy-dark: #17395c;
  --bg: #f2f5f9;
  --card: #ffffff;
  --line: #e2e8f0;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --text: #1e293b;
  --muted: #64748b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: var(--bg); color: var(--text); }
/* ===== 顶栏（品牌区 + 工具栏，最显眼的首屏区域） ===== */
.topbar { background: linear-gradient(120deg, #12304d 0%, #1F4E79 52%, #2E75B6 100%); color: #fff; padding: 18px 28px 16px; box-shadow: 0 3px 16px rgba(18,48,77,.28); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.14); }
.topbar-inner > * { margin-bottom: 12px; }
.brand { display: flex; align-items: center; min-width: 0; margin-right: 26px; }
.brand-mark { margin-right: 14px; }
.brand-mark { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; background: linear-gradient(145deg,#c8a462,#e6cf9a); color: #17395c; font-size: 21px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 14px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.6); letter-spacing: .5px; }
.brand-text { min-width: 0; }
.brand-title { font-size: 19px; font-weight: 700; letter-spacing: .4px; line-height: 1.25; }
.brand-sub { font-size: 12px; opacity: .72; margin-top: 4px; letter-spacing: .8px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 16px; }
.toolbar > * { margin-bottom: 14px; }
.toolbar-group { display: flex; align-items: center; flex-wrap: wrap; margin-right: 26px; }
.toolbar-group > * { margin-right: 14px; margin-bottom: 12px; }
.toolbar-label { font-size: 12px; letter-spacing: 1.5px; opacity: .68; white-space: nowrap; }
.toolbar-actions { display: flex; align-items: center; flex-wrap: wrap; }
.toolbar-actions > * { margin-right: 14px; margin-bottom: 12px; }
.toolbar select { min-width: 92px; }
.toolbar .btn { white-space: nowrap; }
select { padding: 8px 14px; border: 1px solid rgba(255,255,255,.30); border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
select:hover { background: rgba(255,255,255,.22); }
select:focus { outline: none; border-color: #e6cf9a; box-shadow: 0 0 0 3px rgba(230,207,154,.20); }
select option { color: #1e293b; background: #fff; }
.btn { padding: 9px 18px; border: none; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .12s, box-shadow .18s, background .18s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--navy); box-shadow: 0 3px 10px rgba(0,0,0,.20); }
.btn-primary:hover { background: #f4f9ff; box-shadow: 0 5px 14px rgba(0,0,0,.26); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.32); }
.btn-ghost:hover { background: rgba(255,255,255,.26); }
.period-label { font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); white-space: nowrap; }
.badge { background: #f59e0b; color: #fff; font-size: 12px; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.hidden { display: none; }
main { padding: 20px 24px; max-width: 1500px; margin: 0 auto; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi-card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 11px; box-shadow: 0 1px 3px rgba(15,23,42,.05); }
.kpi-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--navy), #2E75B6); }
.kpi-card:hover { box-shadow: 0 5px 18px rgba(31,78,121,.13); transform: translateY(-1px); transition: all .18s; }
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-value { font-size: 22px; font-weight: 700; margin: 4px 0 6px; white-space: nowrap; }
.kpi-delta { font-size: 12px; display: flex; flex-wrap: wrap; }
.kpi-delta > * { margin-right: 12px; }
.delta { font-weight: 600; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta.flat { color: var(--muted); }
.kpi-unit { font-size: 11px; color: var(--muted); font-weight: 400; }

.charts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
.chart-panel { grid-column: span 1; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(15,23,42,.05); margin-bottom: 14px; }
.panel:hover { box-shadow: 0 4px 16px rgba(31,78,121,.09); transition: box-shadow .18s; }
.panel-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.chart-panel .panel-title { display: flex; align-items: center; }
.chart-panel .panel-title > * { margin-right: 7px; }
.chart-panel .panel-title::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: linear-gradient(180deg, var(--navy), #2E75B6); }
.panel-title.sub { margin-top: 16px; font-size: 13px; }
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; }
.lower { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; }

.issue { border-left: 4px solid var(--amber); background: #fffbeb; padding: 10px 12px; border-radius: 6px; margin-bottom: 8px; }
.issue.alert { border-left-color: var(--red); background: #fef2f2; }
.issue-head { display: flex; align-items: center; flex-wrap: wrap; }
.issue-head > * { margin-right: 8px; margin-bottom: 4px; }
.sev { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; }
.sev.alert { background: var(--red); }
.sev.warn { background: var(--amber); }
.issue-cat { font-size: 12px; color: var(--muted); }
.issue-title { font-weight: 700; font-size: 13px; }
.issue-sug { font-size: 12px; color: #7c2d12; margin-top: 4px; }
.issue-actions { margin-top: 6px; display: flex; flex-wrap: wrap; }
.issue-actions > * { margin-right: 6px; margin-bottom: 6px; }
.mini { font-size: 11px; padding: 3px 10px; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; color: #475569; cursor: pointer; }
.mini:hover { border-color: var(--navy); color: var(--navy); }
.istatus { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.istatus.new { background: #dbeafe; color: #1d4ed8; }
.istatus.跟进中 { background: #fef3c7; color: #92400e; }
.istatus.已解决 { background: #dcfce7; color: #166534; }
.issue-plan { margin-top: 8px; border: 1px solid #e2e8f0; border-left: 3px solid var(--navy); background: #fff; border-radius: 6px; padding: 8px 10px; }
.plan-objective { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.plan-steps { font-size: 12px; line-height: 1.7; padding-left: 18px; margin: 0 0 4px; color: #334155; }
.plan-review { font-size: 11px; color: #64748b; }
.trend-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 10px; }
.trend-head > * { margin-right: 8px; margin-bottom: 8px; }
.seg { display: inline-flex; background: #eef2f7; border-radius: 8px; padding: 3px; }
.seg > * { margin-left: 2px; }
.seg > *:first-child { margin-left: 0; }
.seg-btn { border: none; background: transparent; padding: 5px 14px; border-radius: 6px; font-size: 12px; color: #475569; cursor: pointer; }
.seg-btn:hover { color: var(--navy); }
.seg-btn.active { background: var(--navy); color: #fff; font-weight: 600; }
.trend-body { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; align-items: center; }
.trend-bars .chart, .trend-donut .chart { width: 100%; }
.compare-text { margin-bottom: 10px; }
.cmp-conclusion { font-size: 13.5px; font-weight: 700; color: var(--navy); background: linear-gradient(90deg, #eef6ff, #f7fafd); border: 1px solid #bcd3e8; border-left: 4px solid var(--navy); border-radius: 8px; padding: 10px 14px; line-height: 1.7; margin-bottom: 10px; }
.cmp-line { font-size: 12.5px; line-height: 1.8; color: #334155; border-left: 3px solid var(--navy); padding-left: 10px; margin-bottom: 4px; background: #f8fafc; border-radius: 0 6px 6px 0; padding: 6px 10px; }
.compare-chart { max-width: 720px; margin: 0 auto 12px; }
.compare-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
@media (max-width: 900px) { .compare-cards { grid-template-columns: 1fr; } }
.cmp-card { border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; padding: 10px 12px; }
.cmp-card-title { font-size: 12px; font-weight: 800; color: var(--navy); margin-bottom: 8px; letter-spacing: .5px; }
.cmp-card-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.cmp-card-row > * { margin-right: 6px; }
.cmp-card-row:last-child { border-bottom: none; }
.cmp-item { color: #475569; flex: 1; }
.cmp-cur { font-weight: 700; color: #1e293b; }
.cmp-chg { font-weight: 700; font-size: 11.5px; white-space: nowrap; }
.cmp-chg.pos { color: var(--green); }
.cmp-chg.neg { color: var(--red); }
.cmp-empty { font-size: 12px; color: #94a3b8; padding: 8px 0; }
.compare-table { overflow-x: auto; }
.compare-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.compare-table th, .compare-table td { border: 1px solid #e2e8f0; padding: 6px 9px; text-align: right; white-space: nowrap; }
.compare-table th { background: var(--navy); color: #fff; position: sticky; top: 0; }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; }
.compare-table .group-row td { background: #eef2f7; font-weight: 700; text-align: left; color: var(--navy); }
.compare-table td.pos { color: #16a34a; }
.compare-table td.neg { color: #dc2626; }
.compare-table tr:nth-child(even) td { background: #fafcff; }
@media (max-width: 900px) {
  .trend-body { grid-template-columns: 1fr; }
}

.plan-box { border: 1px solid var(--navy); border-radius: 8px; padding: 12px; background: #f8fafc; }
.plan-targets { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 10px 0; }
.plan-target { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.plan-target .k { font-size: 11px; color: var(--muted); }
.plan-target .v { font-size: 16px; font-weight: 700; color: var(--navy); }
.plan-actions { font-size: 12px; line-height: 1.7; padding-left: 18px; }
.feas { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #dcfce7; color: #166534; }
.valid { font-size: 12px; color: var(--muted); margin-top: 8px; }

.scenario { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
.scenario-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 700; }
.scenario .assume { font-size: 11px; color: var(--muted); margin: 4px 0; }
.scenario .nums { font-size: 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.scenario .nums b { color: var(--navy); }
.scenario .acts { font-size: 11px; color: #334155; padding-left: 16px; margin-top: 4px; }
.foot { font-size: 11px; color: var(--muted); text-align: center; padding: 12px 0 24px; }

/* ---------- 情景模拟 · 精细可执行 + 动画演示 ---------- */
.scenario { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.05); }
.scenario:hover { box-shadow: 0 3px 12px rgba(31,78,121,.10); }
.sc-title { font-weight: 700; font-size: 13.5px; color: var(--navy); }
.sc-variant { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.scenario .nums { font-size: 12.5px; display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0; }
.scenario .nums b { color: var(--navy); }
.sc-risk { font-size: 11.5px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 6px 10px; margin-top: 6px; }

.btn-demo { margin: 6px 0 2px; padding: 5px 14px; border: 1px solid var(--navy); background: #f0f7ff; color: var(--navy); border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s; }
.btn-demo:hover { background: var(--navy); color: #fff; }

.sc-flow, .sc-valid { margin-top: 7px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafc; }
.sc-flow summary, .sc-valid summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--navy); padding: 7px 10px; user-select: none; }
.sc-flow summary:hover, .sc-valid summary:hover { background: #eef2f7; }
.flow-list, .valid-list { list-style: none; padding: 0 10px 8px; font-size: 12px; line-height: 1.65; color: #334155; }
.flow-list li, .valid-list li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.flow-list li:last-child, .valid-list li:last-child { border-bottom: none; }
.flow-owner { display: inline-block; margin-left: 8px; font-size: 11px; color: var(--navy); background: #e8f0fa; border-radius: 4px; padding: 0 6px; }
.flow-check { display: block; font-size: 11px; color: var(--green); margin-top: 2px; }
.valid-act { display: block; font-size: 11px; color: var(--red); margin-top: 2px; }

/* 动画演示面板 */
.anim-wrap { margin-top: 6px; }
.anim-panel { border: 1px solid #bcd3e8; border-radius: 8px; background: linear-gradient(180deg, #f7fafd 0%, #ffffff 60%); padding: 10px 12px; }
.anim-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.anim-title { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.anim-ctrl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.anim-btn { padding: 4px 12px; border: 1px solid var(--navy); background: #fff; color: var(--navy); border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s; }
.anim-btn:hover:not(:disabled) { background: var(--navy); color: #fff; }
.anim-btn:disabled { opacity: .45; cursor: not-allowed; }
.anim-btn.play { background: var(--navy); color: #fff; }
.anim-step { font-size: 11px; color: var(--muted); background: #eef2f7; padding: 3px 9px; border-radius: 999px; }

.anim-body { display: grid; grid-template-columns: 1fr 1.3fr 0.9fr; gap: 14px; align-items: stretch; }
@media (max-width: 900px) { .anim-body { grid-template-columns: 1fr; } }
.anim-cell { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px; }
.anim-label { font-size: 11px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.anim-num.param { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.bar-track { height: 10px; background: #e8eef5; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 999px; transition: width .25s ease; }
.bar-fill.param { background: linear-gradient(90deg, #7FA8C9, var(--navy)); }
.bar-fill.feas { background: linear-gradient(90deg, var(--red), #f59e0b, var(--green)); }
.bar-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 3px; }

.res-cols { display: flex; gap: 16px; }
.res-item { flex: 1; text-align: center; }
.res-val { font-size: 13px; font-weight: 700; color: #1e293b; white-space: nowrap; margin-bottom: 4px; }
.res-track { height: 64px; background: #eef2f7; border-radius: 5px; display: flex; align-items: flex-end; overflow: hidden; padding: 3px; }
.res-fill { width: 100%; height: 0; border-radius: 4px; transition: height .25s ease; }
.res-fill.rev { background: linear-gradient(180deg, #2E75B6, var(--navy)); }
.res-fill.prof { background: linear-gradient(180deg, #4ade80, var(--green)); }
.res-fill.margin { background: linear-gradient(180deg, #fbbf24, #d97706); }
.res-name { font-size: 11px; color: var(--muted); margin-top: 4px; }

.feas-big { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.feas-tag { font-size: 11.5px; font-weight: 700; margin-top: 4px; }
.anim-note { font-size: 12px; color: #334155; background: #eef6ff; border-left: 3px solid var(--navy); border-radius: 0 6px 6px 0; padding: 6px 10px; margin-top: 8px; line-height: 1.6; min-height: 20px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 10px 22px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #fff; box-shadow: 0 6px 20px rgba(15,23,42,.25); z-index: 999; opacity: 0; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.ok { background: #16a34a; }
.toast.err { background: #dc2626; }
@media (max-width: 1000px) {
  .charts, .lower { grid-template-columns: 1fr; }
}

/* ---------- 自动诊断 · 三段式（事实/假设/验证） ---------- */
.issue-fact { font-size: 12.5px; margin-top: 6px; color: #1e293b; line-height: 1.6; }
.issue-fact b { color: var(--navy); }
.issue-hyps { margin-top: 6px; font-size: 12px; line-height: 1.6; }
.issue-hyps b { color: var(--navy); }
.issue-hyps ol { padding-left: 20px; margin: 4px 0 0; }
.issue-hyps li { margin-bottom: 5px; color: #334155; }
.hyp-verify { display: block; font-size: 11px; color: #92400e; background: #fef3c7; border-radius: 4px; padding: 1px 7px; margin-top: 1px; }
.issue-gap { margin-top: 6px; font-size: 12px; color: #1e293b; background: #eef2f7; border-radius: 6px; padding: 6px 9px; line-height: 1.6; }
.issue-gap b { color: var(--navy); }
.issue-impact { margin-top: 6px; font-size: 12px; color: #1e293b; background: #eff8f1; border: 1px solid #bbf7d0; border-left: 3px solid var(--green); border-radius: 6px; padding: 6px 9px; line-height: 1.6; }
.issue-impact b { color: var(--navy); }
.issue-impact .imp-amt { font-weight: 800; color: var(--green); }
.issue-impact .imp-note { display: block; font-size: 11px; color: var(--muted); }

/* ---------- 数据平衡板块 ---------- */
.balance-panel { border-top: 3px solid var(--navy); }
.balance-warn { font-size: 12.5px; color: #7c2d12; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; padding: 8px 11px; margin-bottom: 8px; font-weight: 600; }
.balance-formulas { font-size: 11.5px; color: var(--muted); background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 6px; padding: 8px 11px; margin-bottom: 8px; line-height: 1.7; }
.balance-notes-box { font-size: 12px; }
.balance-notes { background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 8px 11px; margin-bottom: 8px; }
.balance-notes b { color: #92400e; }
.balance-notes ol { padding-left: 20px; margin: 4px 0 0; line-height: 1.7; }
.balance-table { overflow-x: auto; }
.balance-table b { font-size: 12.5px; color: var(--navy); display: block; margin: 8px 0 6px; }
.balance-table table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.balance-table th, .balance-table td { border: 1px solid #e2e8f0; padding: 5px 8px; text-align: right; white-space: nowrap; }
.balance-table th { background: var(--navy); color: #fff; }
.balance-table td:first-child { text-align: left; }
.balance-table td.neg { color: var(--red); }

/* ---------- 因果链动画 ---------- */
.chain-panel { border: 1px solid #bcd3e8; border-radius: 8px; background: linear-gradient(180deg, #f7fafd 0%, #ffffff 60%); padding: 10px 12px; }
.chain-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.chain-title { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.chain-ctrl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chain-range-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.chain-range-tabs .rng { border: 1px solid #cbd5e1; background: #fff; color: #475569; border-radius: 999px; font-size: 11px; padding: 3px 12px; cursor: pointer; }
.chain-range-tabs .rng.active { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }
.chain-range-sum { font-size: 11.5px; color: var(--navy); background: #eef6ff; border-radius: 6px; padding: 6px 10px; margin-bottom: 6px; font-weight: 600; line-height: 1.6; }
.chain-steps { font-size: 11px; color: var(--muted); background: #eef2f7; display: inline-block; padding: 3px 9px; border-radius: 999px; margin-bottom: 6px; }
.chain-list { display: flex; flex-direction: column; gap: 0; }
.chain-arrow { text-align: center; color: #94a3b8; font-size: 12px; padding: 1px 0; letter-spacing: 2px; }
.ch-wrap { transition: all .2s; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.ch-wrap.active { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(31,78,121,.18); background: #f0f7ff; transform: translateX(3px); }
.ch-node { padding: 8px 11px; }
.ch-node-label { font-size: 11px; font-weight: 800; color: var(--navy); letter-spacing: 1px; }
.ch-node-title { font-size: 11px; color: var(--muted); }
.ch-node-value { font-size: 15px; font-weight: 800; color: #1e293b; margin: 3px 0; }
.ch-node-range { font-size: 11.5px; color: #7fa8c9; font-weight: 700; }
.ch-node-formula { font-size: 11.5px; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 5px; padding: 3px 8px; margin-top: 4px; font-family: Consolas, "Courier New", monospace; }
.ch-node-detail { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.55; }
.chain-attrib { margin-top: 8px; background: #f8fafc; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font-size: 12px; }
.chain-attrib b { color: var(--navy); }
.chain-attrib ul { padding-left: 18px; margin: 4px 0 0; line-height: 1.7; color: #334155; }
.chain-note { font-size: 12px; color: #334155; background: #eef6ff; border-left: 3px solid var(--navy); border-radius: 0 6px 6px 0; padding: 6px 10px; margin-top: 8px; line-height: 1.6; min-height: 20px; }

/* ---------- 竞争对标 ---------- */
.comp-list { list-style: none; padding: 0; margin: 6px 0 10px; font-size: 12.5px; }
.comp-list li { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 5px; background: #f8fafc; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.comp-status { font-size: 11px; color: var(--green); font-weight: 700; }
.comp-entry { border: 1px solid #bcd3e8; background: #f0f7ff; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.comp-entry-title { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.comp-fields { display: flex; gap: 8px; flex-wrap: wrap; }
.comp-fields select, .comp-fields input { padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 12px; }
.comp-fields select { color: #1e293b; background: #ffffff; }
.comp-fields select option { color: #1e293b; background: #ffffff; }
.comp-fields input { color: #1e293b; background: #ffffff; }
.comp-fields input { width: 150px; }
.comp-fields .mini { padding: 6px 18px; background: var(--navy); color: #fff; border: none; }
.comp-fields .mini:hover { background: var(--navy-dark); }
.comp-note { font-size: 11px; color: var(--muted); margin-top: 6px; }
.comp-analysis { border: 1px solid #bcd3e8; background: #f7fafd; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.comp-analysis-title { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.comp-band { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 8px; }
.comp-band th, .comp-band td { border: 1px solid #e2e8f0; padding: 5px 8px; text-align: center; }
.comp-band th { background: var(--navy); color: #fff; }
.comp-band .band-all td { background: #eef2f7; font-weight: 700; }
.comp-position { font-size: 12.5px; color: #1e293b; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; margin-bottom: 6px; }
.comp-needs { font-size: 11.5px; color: #334155; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 7px 10px; }
.comp-needs ul { padding-left: 18px; margin: 4px 0 0; line-height: 1.7; }

/* ---------- 单方案预期区间 ---------- */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 10px 0; }
.exp-card { border-radius: 8px; padding: 10px 12px; font-size: 12px; line-height: 1.8; color: #1e293b; }
.exp-card .exp-label { font-size: 11px; font-weight: 800; letter-spacing: 1px; margin-bottom: 3px; }
.exp-card .exp-main { font-size: 13px; font-weight: 700; }
.exp-neu { background: #eef6ff; border: 1px solid #bcd3e8; }
.exp-neu .exp-label { color: var(--navy); }
.exp-con { background: #fef3c7; border: 1px solid #fde68a; }
.exp-con .exp-label { color: #92400e; }
.exp-opt { background: #f0fdf4; border: 1px solid #bbf7d0; }
.exp-opt .exp-label { color: #166534; }
.research-box { padding: 8px 12px 10px; font-size: 12px; line-height: 1.8; color: #334155; }
.research-row { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.research-row:last-child { border-bottom: none; }
.research-row b { color: var(--navy); }
