/*
 * 莫高股份玄谋智脑 · 公用样式表
 * 路径: /XMEIB/assets/common.css
 * 用途: 06/08/09/10/11/12等HTML文件共用
 * 维护: 修改此文件即可统一更新所有页面风格
 * 注意: 各页面特有样式（如06的sidebar/toc、08的article/codeblock）保留在各HTML文件内
 */

:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-2: #f1f3f7;
  --border: #e2e6ec;
  --border-strong: #cdd3dc;
  --text: #1a202c;
  --text-2: #5a6678;
  --text-3: #8b95a5;
  --accent: #4f46e5;
  --accent-light: #eef2ff;
  --accent-hover: #4338ca;
  --wine: #9f1239;
  --wine-light: #fff1f2;
  --green: #059669;
  --green-light: #ecfdf5;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --red: #dc2626;
  --red-light: #fef2f2;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --purple: #7c3aed;
  --purple-light: #f5f3ff;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.08);
  --radius: 12px;
  --radius-sm: 8px;
  --topbar-h: 60px;
}
[data-theme="dark"] {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1c2129;
  --border: #30363d;
  --border-strong: #3d444d;
  --text: #e6edf3;
  --text-2: #9198a1;
  --text-3: #656d76;
  --accent: #818cf8;
  --accent-light: #1e1b4b;
  --accent-hover: #a5b4fc;
  --wine: #fb7185;
  --wine-light: #4c0519;
  --green: #34d399;
  --green-light: #022c22;
  --amber: #fbbf24;
  --amber-light: #292524;
  --red: #f87171;
  --red-light: #2d1215;
  --blue: #60a5fa;
  --blue-light: #0d1b3e;
  --purple: #a78bfa;
  --purple-light: #1e1b4b;
  --shadow: 0 1px 3px rgba(0,0,0,.3);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.4);
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:calc(var(--topbar-h) + 16px); overflow-x:hidden; }
body { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif; font-size:14px; line-height:1.6; color:var(--text); background:var(--bg); overflow-x:hidden; max-width:100vw; }

/* Topbar */
.topbar { position:fixed; top:0; left:0; right:0; height:var(--topbar-h); background:var(--surface); border-bottom:1px solid var(--border); display:flex; align-items:center; padding:0 24px; z-index:100; gap:16px; box-shadow:var(--shadow); }
.topbar-brand { display:flex; align-items:center; gap:10px; font-weight:700; font-size:16px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.topbar-brand svg { width:24px; height:24px; color:var(--wine); flex-shrink:0; }
.topbar-meta { font-size:12px; color:var(--text-3); white-space:nowrap; }
.topbar-right { margin-left:auto; display:flex; align-items:center; gap:12px; flex-shrink:0; }
.badge-st { background:var(--red-light); color:var(--red); font-size:11px; font-weight:700; padding:3px 8px; border-radius:4px; border:1px solid var(--red); }
.badge-ver { font-size:11px; color:var(--text-3); background:var(--surface-2); padding:3px 8px; border-radius:4px; border:1px solid var(--border); }
.theme-toggle { background:none; border:1px solid var(--border); border-radius:8px; width:36px; height:36px; cursor:pointer; display:flex; align-items:center; justify-content:center; color:var(--text); transition:background .2s; }
.theme-toggle:hover { background:var(--surface-2); }
.theme-toggle svg { width:18px; height:18px; }

/* Layout */
.container { max-width:1280px; margin:0 auto; padding:calc(var(--topbar-h) + 24px) 24px 48px; }

/* Section */
.section { margin-bottom:32px; }
.section-title { font-size:18px; font-weight:700; color:var(--text); margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.section-title svg { width:20px; height:20px; color:var(--wine); }
.section-title .count { font-size:12px; font-weight:400; color:var(--text-3); }

/* KPI Cards */
.kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:24px; }
.kpi-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); position:relative; overflow:hidden; }
.kpi-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; }
.kpi-card.kpi-wine::before { background:var(--wine); }
.kpi-card.kpi-green::before { background:var(--green); }
.kpi-card.kpi-red::before { background:var(--red); }
.kpi-card.kpi-amber::before { background:var(--amber); }
.kpi-label { font-size:12px; color:var(--text-3); font-weight:600; text-transform:uppercase; letter-spacing:.5px; margin-bottom:8px; }
.kpi-value { font-size:28px; font-weight:700; color:var(--text); line-height:1.2; margin-bottom:4px; font-variant-numeric:tabular-nums; }
.kpi-unit { font-size:14px; font-weight:400; color:var(--text-2); }
.kpi-change { font-size:13px; font-weight:600; display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.kpi-change.up { color:var(--green); }
.kpi-change.down { color:var(--red); }
.kpi-change.neutral { color:var(--text-2); }
.kpi-change svg { width:14px; height:14px; }
.kpi-sub { font-size:12px; color:var(--text-3); margin-top:6px; }

/* Info Cards Grid */
.info-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.info-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); }
.info-card-title { font-size:15px; font-weight:700; color:var(--text); margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.info-card-title svg { width:18px; height:18px; color:var(--wine); flex-shrink:0; }
.info-list { list-style:none; padding:0; }
.info-list li { font-size:13px; color:var(--text-2); padding:6px 0; border-bottom:1px solid var(--border); display:flex; gap:8px; align-items:flex-start; min-width:0; }
.info-list li:last-child { border-bottom:none; }
.info-list li strong { color:var(--text); flex-shrink:0; }
.info-list li span { flex:1; min-width:0; word-break:break-word; }

/* Two column */
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* Panel */
.panel { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); }
.panel-title { font-size:15px; font-weight:700; color:var(--text); margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.panel-title svg { width:18px; height:18px; color:var(--wine); flex-shrink:0; }

/* Bridge */
.bridge-row { display:flex; align-items:center; gap:8px; margin-bottom:6px; font-size:13px; min-width:0; }
.bridge-label { width:130px; text-align:right; color:var(--text-2); flex-shrink:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bridge-bar-area { flex:1; height:24px; position:relative; display:flex; align-items:center; overflow:hidden; min-width:0; }
.bridge-bar { height:20px; border-radius:3px; display:flex; align-items:center; justify-content:flex-end; padding-right:6px; font-size:11px; font-weight:700; color:#fff; white-space:nowrap; transition:width .6s; min-width:2px; overflow:hidden; }
.bridge-bar.positive { background:var(--green); }
.bridge-bar.negative { background:var(--red); }
.bridge-bar.neutral { background:var(--text-3); }
.bridge-value { width:80px; font-variant-numeric:tabular-nums; font-weight:600; flex-shrink:0; }
.bridge-value.positive { color:var(--green); }
.bridge-value.negative { color:var(--red); }
.bridge-total { border-top:2px solid var(--border); padding-top:8px; margin-top:8px; font-weight:700; }
.bridge-total .bridge-label { color:var(--text); }

/* Alert List */
.alert-item { display:flex; align-items:flex-start; gap:10px; padding:12px 0; border-bottom:1px solid var(--border); }
.alert-item:last-child { border-bottom:none; }
.alert-icon { width:28px; height:28px; border-radius:6px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.alert-icon svg { width:16px; height:16px; }
.alert-red .alert-icon { background:var(--red-light); color:var(--red); }
.alert-amber .alert-icon { background:var(--amber-light); color:var(--amber); }
.alert-yellow .alert-icon { background:var(--amber-light); color:var(--amber); }
.alert-pending .alert-icon { background:var(--surface-2); color:var(--text-3); }
.alert-content { flex:1; min-width:0; }
.alert-title { font-size:13px; font-weight:600; color:var(--text); margin-bottom:2px; word-break:break-word; }
.alert-desc { font-size:12px; color:var(--text-2); word-break:break-word; }
.alert-meta { font-size:11px; color:var(--text-3); margin-top:3px; }
.alert-level { font-size:10px; font-weight:700; padding:1px 6px; border-radius:3px; flex-shrink:0; margin-top:2px; white-space:nowrap; }
.level-red { background:var(--red); color:#fff; }
.level-amber { background:var(--amber); color:#fff; }
.level-yellow { background:#fde047; color:#422006; }
.level-pending { background:var(--surface-2); color:var(--text-3); border:1px solid var(--border); }

/* HealthScore */
.health-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); }
.health-card-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; gap:8px; min-width:0; }
.health-card-name { font-size:14px; font-weight:700; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.health-score-circle { width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:700; flex-shrink:0; }
.score-good { background:var(--green-light); color:var(--green); border:2px solid var(--green); }
.score-warn { background:var(--amber-light); color:var(--amber); border:2px solid var(--amber); }
.score-risk { background:var(--red-light); color:var(--red); border:2px solid var(--red); }
.health-dim { display:flex; align-items:center; gap:6px; margin-bottom:4px; font-size:12px; min-width:0; }
.health-dim-label { width:80px; color:var(--text-2); flex-shrink:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.health-dim-bar { flex:1; height:6px; border-radius:3px; background:var(--surface-2); overflow:hidden; min-width:0; }
.health-dim-fill { height:100%; border-radius:3px; }
.health-dim-score { width:36px; text-align:right; font-weight:600; color:var(--text); flex-shrink:0; font-variant-numeric:tabular-nums; white-space:nowrap; }

/* Finding Cards */
.finding-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.finding-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); padding:14px; border-left:4px solid var(--wine); min-width:0; }
.finding-card.f-p0 { border-left-color:var(--red); }
.finding-card.f-p1 { border-left-color:var(--amber); }
.finding-card.f-p2 { border-left-color:var(--blue); }
.finding-id { font-size:11px; font-weight:700; color:var(--text-3); margin-bottom:4px; }
.finding-title { font-size:14px; font-weight:600; color:var(--text); margin-bottom:4px; }
.finding-desc { font-size:12px; color:var(--text-2); line-height:1.5; word-break:break-word; }
.finding-priority { font-size:10px; font-weight:700; padding:1px 6px; border-radius:3px; display:inline-block; margin-top:6px; }
.priority-p0 { background:var(--red-light); color:var(--red); }
.priority-p1 { background:var(--amber-light); color:var(--amber); }
.priority-p2 { background:var(--blue-light); color:var(--blue); }

/* Callout */
.callout { border-radius:var(--radius-sm); padding:14px 16px; margin-bottom:16px; display:flex; gap:10px; min-width:0; }
.callout-icon { flex-shrink:0; }
.callout-icon svg { width:20px; height:20px; }
.callout-content { flex:1; min-width:0; font-size:13px; color:var(--text-2); line-height:1.6; word-break:break-word; }
.callout-content strong { color:var(--text); }
.callout-danger { background:var(--red-light); border:1px solid var(--red); }
.callout-danger .callout-icon { color:var(--red); }
.callout-info { background:var(--blue-light); border:1px solid var(--blue); }
.callout-info .callout-icon { color:var(--blue); }
.callout-warn { background:var(--amber-light); border:1px solid var(--amber); }
.callout-warn .callout-icon { color:var(--amber); }
.callout-wine { background:var(--wine-light); border:1px solid var(--wine); }
.callout-wine .callout-icon { color:var(--wine); }

/* Scheme Card */
.scheme-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); margin-bottom:20px; box-shadow:var(--shadow); overflow:hidden; }
.scheme-header { padding:16px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; min-width:0; }
.scheme-header-left { display:flex; align-items:center; gap:12px; min-width:0; flex-wrap:wrap; }
.scheme-id { font-size:12px; font-weight:700; color:var(--text-3); background:var(--surface-2); padding:3px 8px; border-radius:4px; }
.scheme-title { font-size:16px; font-weight:700; color:var(--text); }
.scheme-level { font-size:11px; font-weight:700; padding:3px 10px; border-radius:4px; white-space:nowrap; }
.level-a { background:var(--red); color:#fff; }
.level-b { background:var(--amber); color:#fff; }
.level-c { background:var(--blue); color:#fff; }
.scheme-priority { font-size:11px; font-weight:700; padding:3px 8px; border-radius:4px; }
.scheme-body { padding:20px; }
.scheme-meta { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:16px; }
.meta-item { background:var(--surface-2); border-radius:var(--radius-sm); padding:10px 14px; }
.meta-label { font-size:11px; color:var(--text-3); font-weight:600; margin-bottom:2px; }
.meta-value { font-size:13px; font-weight:600; color:var(--text); }
.problem-link { background:var(--wine-light); border:1px solid var(--wine); border-radius:var(--radius-sm); padding:10px 14px; margin-bottom:16px; font-size:13px; display:flex; align-items:flex-start; gap:8px; min-width:0; }
.problem-link svg { width:16px; height:16px; color:var(--wine); flex-shrink:0; margin-top:2px; }
.problem-link strong { color:var(--wine); }
.subsection-title { font-size:14px; font-weight:700; color:var(--text); margin:16px 0 10px; display:flex; align-items:center; gap:6px; }
.subsection-title svg { width:16px; height:16px; color:var(--wine); }
.scenario-table { width:100%; border-collapse:collapse; font-size:13px; margin-bottom:12px; }
.scenario-table th { text-align:left; padding:10px 12px; background:var(--surface-2); color:var(--text-2); font-weight:600; font-size:12px; border-bottom:2px solid var(--border); white-space:nowrap; }
.scenario-table td { padding:10px 12px; border-bottom:1px solid var(--border); vertical-align:top; word-break:break-word; }
.scenario-table tr:last-child td { border-bottom:none; }
.scenario-table .scenario-baseline { background:var(--amber-light); font-weight:600; }
.scenario-table .scenario-best { background:var(--green-light); }
.scenario-table .scenario-worst { background:var(--red-light); }
.scenario-table .num { font-variant-numeric:tabular-nums; font-weight:600; }
.num-positive { color:var(--green); }
.num-negative { color:var(--red); }
.num-neutral { color:var(--text-2); }
.sensitivity-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:12px; }
.sensitivity-card { background:var(--surface-2); border-radius:var(--radius-sm); padding:12px 14px; }
.sensitivity-label { font-size:12px; color:var(--text-3); margin-bottom:4px; }
.sensitivity-value { font-size:18px; font-weight:700; font-variant-numeric:tabular-nums; }
.sensitivity-desc { font-size:11px; color:var(--text-2); margin-top:2px; }
.action-list { list-style:none; padding:0; }
.action-list li { display:flex; align-items:flex-start; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); font-size:13px; min-width:0; }
.action-list li:last-child { border-bottom:none; }
.action-num { width:24px; height:24px; border-radius:50%; background:var(--wine-light); color:var(--wine); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; flex-shrink:0; }
.action-text { flex:1; min-width:0; color:var(--text); word-break:break-word; }
.action-text strong { color:var(--text); }
.benefit-bar { display:flex; align-items:center; gap:12px; padding:12px 16px; border-radius:var(--radius-sm); margin-bottom:12px; min-width:0; }
.benefit-bar.positive { background:var(--green-light); border:1px solid var(--green); }
.benefit-bar.neutral { background:var(--amber-light); border:1px solid var(--amber); }
.benefit-bar svg { width:20px; height:20px; flex-shrink:0; }
.benefit-bar.positive svg { color:var(--green); }
.benefit-bar.neutral svg { color:var(--amber); }
.benefit-bar-content { flex:1; min-width:0; font-size:13px; word-break:break-word; }
.benefit-bar-content strong { font-size:15px; font-weight:700; }
.benefit-bar.positive .benefit-bar-content strong { color:var(--green); }
.benefit-bar.neutral .benefit-bar-content strong { color:var(--amber); }
.risk-note { background:var(--amber-light); border:1px solid var(--amber); border-radius:var(--radius-sm); padding:10px 14px; font-size:12px; color:var(--text-2); display:flex; gap:8px; margin-top:12px; min-width:0; }
.risk-note svg { width:16px; height:16px; color:var(--amber); flex-shrink:0; margin-top:1px; }

/* Total card */
.total-card { background:linear-gradient(135deg,var(--wine),var(--purple)); border-radius:var(--radius); padding:24px; color:#fff; margin-bottom:24px; box-shadow:var(--shadow-lg); }
.total-title { font-size:16px; font-weight:700; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.total-title svg { width:20px; height:20px; }
.total-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.total-item { text-align:center; }
.total-item-label { font-size:12px; opacity:.8; margin-bottom:4px; }
.total-item-value { font-size:28px; font-weight:700; font-variant-numeric:tabular-nums; }
.total-item-unit { font-size:14px; opacity:.8; }

/* Tab bar */
.tab-bar { display:flex; gap:4px; margin-bottom:24px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:4px; box-shadow:var(--shadow); min-width:0; }
.tab-btn { flex:1; padding:10px 16px; border:none; background:none; border-radius:var(--radius-sm); font-size:13px; font-weight:600; color:var(--text-2); cursor:pointer; transition:all .2s; display:flex; align-items:center; justify-content:center; gap:6px; min-width:0; overflow:hidden; }
.tab-btn:hover { background:var(--surface-2); color:var(--text); }
.tab-btn.active { background:var(--wine); color:#fff; }
.tab-btn svg { width:16px; height:16px; }
.tab-count { font-size:11px; padding:1px 6px; border-radius:3px; background:rgba(255,255,255,.2); }
.tab-btn:not(.active) .tab-count { background:var(--surface-2); color:var(--text-3); }

/* Data Gap */
.gap-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.gap-item { display:flex; align-items:center; gap:8px; padding:8px 12px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); font-size:12px; min-width:0; }
.gap-item svg { width:16px; height:16px; color:var(--amber); flex-shrink:0; }
.gap-item-text { color:var(--text-2); flex:1; min-width:0; word-break:break-word; }
.gap-item-priority { font-size:10px; font-weight:700; padding:1px 6px; border-radius:3px; flex-shrink:0; white-space:nowrap; }

/* Award table */
.award-table { width:100%; border-collapse:collapse; font-size:13px; }
.award-table th { text-align:left; padding:10px 12px; background:var(--surface-2); color:var(--text-2); font-weight:600; font-size:12px; border-bottom:2px solid var(--border); }
.award-table td { padding:10px 12px; border-bottom:1px solid var(--border); vertical-align:top; }
.award-table tr:last-child td { border-bottom:none; }
.award-table tr:hover td { background:var(--surface-2); }
.award-medal { font-size:11px; font-weight:700; padding:2px 8px; border-radius:4px; background:var(--amber-light); color:var(--amber); white-space:nowrap; }

/* Declaration */
.declaration { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px; margin-top:32px; box-shadow:var(--shadow); }
.declaration-title { font-size:16px; font-weight:700; color:var(--text); margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.declaration-title svg { width:20px; height:20px; color:var(--wine); }
.declaration-text { font-size:13px; color:var(--text-2); line-height:1.8; }
.declaration-text p { margin-bottom:8px; }
.declaration-text strong { color:var(--text); }

/* Responsive */
@media (max-width:1024px) {
  .kpi-grid { grid-template-columns:repeat(2,1fr); }
  .info-grid { grid-template-columns:1fr; }
  .two-col { grid-template-columns:1fr; }
  .finding-grid { grid-template-columns:1fr; }
  .gap-grid { grid-template-columns:1fr; }
  .scheme-meta { grid-template-columns:repeat(2,1fr); }
  .sensitivity-grid { grid-template-columns:1fr; }
  .total-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px) {
  :root { --topbar-h:52px; }
  .kpi-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
  .container { padding:calc(var(--topbar-h) + 12px) 10px 24px; }
  .topbar { padding:0 10px; gap:8px; height:52px; }
  .topbar-brand { font-size:13px; gap:6px; }
  .topbar-brand svg { width:18px; height:18px; }
  .topbar-meta { display:none; }
  .topbar-right { gap:6px; }
  .badge-st, .badge-ver { font-size:10px; padding:2px 6px; }
  .theme-toggle { width:30px; height:30px; }
  .theme-toggle svg { width:15px; height:15px; }
  .section { margin-bottom:20px; }
  .section-title { font-size:15px; margin-bottom:10px; flex-wrap:wrap; }
  .section-title svg { width:17px; height:17px; }
  .kpi-card { padding:14px 12px; }
  .kpi-value { font-size:20px; }
  .kpi-label { font-size:10px; margin-bottom:4px; }
  .kpi-change { font-size:11px; }
  .kpi-sub { font-size:11px; }
  .panel { padding:14px 12px; }
  .bridge-row { font-size:12px; gap:6px; }
  .bridge-label { width:80px; font-size:11px; }
  .bridge-bar-area { height:20px; }
  .bridge-bar { height:16px; font-size:10px; padding-right:4px; }
  .bridge-value { width:60px; font-size:11px; }
  .scheme-meta { grid-template-columns:1fr; }
  .total-grid { grid-template-columns:repeat(2,1fr); }
  .scheme-card { margin-bottom:14px; }
  .scheme-header { padding:12px; flex-direction:column; align-items:flex-start; }
  .scheme-title { font-size:14px; }
  .scheme-body { padding:14px 12px; }
  .scenario-table { font-size:12px; display:block; overflow-x:auto; white-space:nowrap; }
  .scenario-table thead, .scenario-table tbody { display:table; width:max-content; min-width:100%; }
  .scenario-table th, .scenario-table td { padding:8px 10px; }
  .callout { padding:12px; gap:8px; }
  .callout-content { font-size:12px; }
  .total-card { padding:16px 14px; }
  .total-item-value { font-size:20px; }
  .tab-btn { padding:8px 6px; font-size:12px; }
  .tab-btn .tab-count { display:none; }
  .finding-card { padding:12px; }
  .gap-item { font-size:11px; padding:6px 10px; }
}
@media (max-width:480px) {
  .topbar-brand { font-size:12px; }
  .badge-ver { display:none; }
  .total-grid { grid-template-columns:1fr; }
}
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:3px; }
::-webkit-scrollbar-track { background:transparent; }

/* ===== 12竞争性分析独有组件 ===== */
.panel-body { font-size:13px; color:var(--text-2); line-height:1.7; }
.panel-body p { margin-bottom:8px; }
.panel-body strong { color:var(--text); }
.data-table { width:100%; border-collapse:collapse; font-size:13px; margin-bottom:12px; }
.data-table th { text-align:left; padding:10px 12px; background:var(--surface-2); color:var(--text-2); font-weight:600; font-size:12px; border-bottom:2px solid var(--border); white-space:nowrap; }
.data-table td { padding:10px 12px; border-bottom:1px solid var(--border); vertical-align:top; word-break:break-word; }
.data-table tr:last-child td { border-bottom:none; }
.data-table tr:hover td { background:var(--surface-2); }
.data-table .row-mogao { background:var(--wine-light); font-weight:600; }
.data-table .row-mogao:hover td { background:var(--wine-light); }
.data-table .num { font-variant-numeric:tabular-nums; font-weight:600; }
.num-positive { color:var(--green); }
.num-negative { color:var(--red); }
.num-neutral { color:var(--text-2); }
.tag-st { font-size:11px; font-weight:700; padding:2px 6px; border-radius:3px; background:var(--red-light); color:var(--red); border:1px solid var(--red); white-space:nowrap; }
.tag-normal { font-size:11px; font-weight:700; padding:2px 6px; border-radius:3px; background:var(--green-light); color:var(--green); border:1px solid var(--green); white-space:nowrap; }
.tag-warn { font-size:11px; font-weight:700; padding:2px 6px; border-radius:3px; background:var(--amber-light); color:var(--amber); border:1px solid var(--amber); white-space:nowrap; }
.matrix-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); margin-bottom:16px; }
.matrix-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.matrix-item { background:var(--surface-2); border-radius:var(--radius-sm); padding:14px; border-left:4px solid var(--wine); }
.matrix-item.advantage { border-left-color:var(--green); }
.matrix-item.disadvantage { border-left-color:var(--red); }
.matrix-item.opportunity { border-left-color:var(--blue); }
.matrix-item-title { font-size:14px; font-weight:700; color:var(--text); margin-bottom:6px; }
.matrix-item-desc { font-size:12px; color:var(--text-2); line-height:1.6; }

/* Position Matrix (visual) */
.position-matrix { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow); margin-bottom:16px; }
.matrix-axis { position:relative; height:320px; margin:20px 0; border-left:2px solid var(--border-strong); border-bottom:2px solid var(--border-strong); }
.matrix-y-label { position:absolute; left:-40px; top:50%; transform:rotate(-90deg) translateX(50%); transform-origin:left center; font-size:12px; color:var(--text-2); font-weight:600; white-space:nowrap; }
.matrix-x-label { position:absolute; bottom:-24px; left:50%; transform:translateX(-50%); font-size:12px; color:var(--text-2); font-weight:600; white-space:nowrap; }
.matrix-point { position:absolute; padding:6px 10px; border-radius:6px; font-size:11px; font-weight:700; color:#fff; white-space:nowrap; transform:translate(-50%, 50%); box-shadow:var(--shadow); }
.matrix-point.mogao { background:var(--wine); z-index:3; }
.matrix-point.zhangyu { background:var(--accent); z-index:2; }
.matrix-point.niya { background:var(--green); z-index:2; }
.matrix-point.weilong { background:var(--amber); z-index:2; }
.matrix-point.tongpu { background:var(--text-3); z-index:1; }

/* Target Table */
.target-table th, .target-table td { text-align:center; }
.target-table .col-current { background:var(--amber-light); }
.target-table .col-target { background:var(--green-light); }
.target-table .col-benchmark { background:var(--blue-light); }
  .matrix-grid { grid-template-columns:1fr; }
  .data-table { font-size:12px; display:block; overflow-x:auto; white-space:nowrap; }
  .data-table thead, .data-table tbody { display:table; width:max-content; min-width:100%; }
  .data-table th, .data-table td { padding:8px 10px; }

/* ===== 09驾驶舱独有组件 ===== */
.kpi-card.kpi-accent::before { background:var(--accent); }
.segment-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.segment-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); }
.segment-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; gap:8px; min-width:0; }
.segment-name { font-size:15px; font-weight:700; color:var(--text); }
.segment-status { font-size:11px; font-weight:700; padding:2px 8px; border-radius:4px; }
.status-green { background:var(--green-light); color:var(--green); }
.status-red { background:var(--red-light); color:var(--red); }
.status-amber { background:var(--amber-light); color:var(--amber); }
.segment-rev { font-size:22px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; margin-bottom:2px; }
.segment-rev-unit { font-size:13px; color:var(--text-2); font-weight:400; }
.segment-growth { font-size:13px; font-weight:600; margin-bottom:8px; }
.segment-bar { height:6px; border-radius:3px; background:var(--surface-2); overflow:hidden; margin-bottom:8px; }
.segment-bar-fill { height:100%; border-radius:3px; transition:width .6s; }
.segment-share { font-size:12px; color:var(--text-3); display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px; }
.segment-health { margin-top:10px; padding-top:10px; border-top:1px solid var(--border); font-size:12px; color:var(--text-2); display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px; }
.segment-health strong { color:var(--text); }
.health-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.action-table { width:100%; border-collapse:collapse; font-size:13px; }
.action-table th { text-align:left; padding:10px 12px; background:var(--surface-2); color:var(--text-2); font-weight:600; font-size:12px; border-bottom:1px solid var(--border); }
.action-table td { padding:10px 12px; border-bottom:1px solid var(--border); color:var(--text); vertical-align:top; }
.action-table tr:last-child td { border-bottom:none; }
.action-table tr:hover td { background:var(--surface-2); }
.action-table .col-num { width:32px; color:var(--text-3); font-weight:700; }
.action-table .col-priority { width:60px; }
.loop-vlist { display:flex; flex-direction:column; gap:12px; margin-bottom:16px; }
.loop-vrow { display:flex; flex-direction:column; gap:6px; padding:10px 14px; background:var(--surface-2); border-radius:var(--radius-sm); }
.loop-vinfo { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; }
.loop-vname { font-size:14px; font-weight:600; color:var(--text); white-space:nowrap; }
.loop-vvalue { font-size:20px; font-weight:700; font-variant-numeric:tabular-nums; flex-shrink:0; }
.loop-vbar { height:6px; border-radius:3px; background:var(--surface); overflow:hidden; }
.loop-vbar-fill { height:100%; border-radius:3px; transition:width .6s; }
.loop-vtarget { font-size:11px; color:var(--text-3); }
.loop-vtotal { text-align:center; padding:14px; background:var(--surface-2); border-radius:var(--radius-sm); }
.loop-vtotal-label { font-size:13px; color:var(--text-2); margin-bottom:4px; }
.loop-vtotal-value { font-size:28px; font-weight:700; color:var(--red); font-variant-numeric:tabular-nums; margin-bottom:4px; }
.loop-vtotal-desc { font-size:12px; color:var(--text-3); }

/* Risk List - Vertical Cards */
.risk-list { display:flex; flex-direction:column; gap:8px; }
.risk-row { padding:10px 14px; background:var(--surface-2); border-radius:var(--radius-sm); border-left:3px solid var(--border); }
.risk-row:has(.level-red) { border-left-color:var(--red); }
.risk-row:has(.level-amber) { border-left-color:var(--amber); }
.risk-row-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:4px; min-width:0; }
.risk-row-name { font-size:13px; font-weight:600; color:var(--text); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.risk-row-body { display:flex; align-items:baseline; justify-content:space-between; gap:8px; flex-wrap:wrap; min-width:0; }
.risk-row-value { font-size:14px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; }
.risk-row-value em { font-style:normal; font-size:12px; font-weight:400; color:var(--text-3); }
.risk-row-line { font-size:11px; color:var(--text-3); white-space:nowrap; }
  .segment-grid { grid-template-columns:repeat(2,1fr); }
  .health-grid { grid-template-columns:1fr; }
  .segment-grid { grid-template-columns:repeat(2,1fr); gap:10px; }

/* ===== 10方案卡独有组件 ===== */
.summary-bar { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px 24px; margin-bottom:24px; box-shadow:var(--shadow); display:flex; align-items:center; gap:32px; flex-wrap:wrap; min-width:0; }
.summary-item { text-align:center; }
.summary-label { font-size:11px; color:var(--text-3); font-weight:600; text-transform:uppercase; letter-spacing:.5px; margin-bottom:4px; }
.summary-value { font-size:24px; font-weight:700; font-variant-numeric:tabular-nums; }
.summary-value.green { color:var(--green); }
.summary-value.red { color:var(--red); }
.summary-value.accent { color:var(--accent); }
.timeline { display:flex; gap:0; margin:12px 0; overflow-x:auto; }
.timeline-item { flex:1; min-width:120px; text-align:center; position:relative; padding:0 4px; }
.timeline-dot { width:12px; height:12px; border-radius:50%; background:var(--accent); margin:0 auto 8px; position:relative; z-index:1; }
.timeline-item.done .timeline-dot { background:var(--green); }
.timeline-item.pending .timeline-dot { background:var(--text-3); }
.timeline-line { position:absolute; top:6px; left:50%; right:-50%; height:2px; background:var(--border); z-index:0; }
.timeline-item:last-child .timeline-line { display:none; }
.timeline-label { font-size:11px; font-weight:600; color:var(--text); margin-bottom:2px; }
.timeline-time { font-size:10px; color:var(--text-3); }
  .summary-bar { gap:12px 20px; padding:14px 12px; }
  .summary-value { font-size:18px; }
  .summary-label { font-size:10px; }
  .summary-bar { gap:12px 16px; padding:14px 10px; }
  .summary-value { font-size:16px; }
  .summary-bar { flex-direction:column; gap:10px; }
  .summary-item { width:100%; text-align:left; }

/* ===== 13供应链模块组件 ===== */

/* Tab Panel 切换面板 */
.tab-panel { display:none; }
.tab-panel.active { display:block; }

/* Filter Bar 筛选栏 */
.filter-bar { display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.filter-btn { padding:6px 14px; border:1px solid var(--border); border-radius:20px; background:var(--surface); color:var(--text-2); font-size:12px; font-weight:600; cursor:pointer; transition:all .2s; white-space:nowrap; }
.filter-btn:hover { border-color:var(--wine); color:var(--wine); }
.filter-btn.active { background:var(--wine); color:#fff; border-color:var(--wine); }

/* Score Card 评分卡 */
.score-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); margin-bottom:16px; }
.score-card-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; gap:12px; flex-wrap:wrap; }
.score-card-title { font-size:16px; font-weight:700; color:var(--text); display:flex; align-items:center; gap:8px; }
.score-card-title svg { width:20px; height:20px; color:var(--wine); flex-shrink:0; }
.score-card-grade { font-size:24px; font-weight:800; padding:4px 16px; border-radius:var(--radius-sm); }
.score-card-grade.grade-a { background:var(--green-light); color:var(--green); }
.score-card-grade.grade-b { background:var(--amber-light); color:var(--amber); }
.score-card-grade.grade-c { background:var(--red-light); color:var(--red); }

/* Score Row 评分行 */
.score-row { display:grid; grid-template-columns:140px 1fr 60px 80px; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid var(--border); min-width:0; }
.score-row:last-child { border-bottom:none; }
.score-label { font-size:13px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.score-bar { height:8px; border-radius:4px; background:var(--surface-2); overflow:hidden; }
.score-bar-fill { height:100%; border-radius:4px; transition:width .6s; }
.score-bar-fill.fill-green { background:var(--green); }
.score-bar-fill.fill-amber { background:var(--amber); }
.score-bar-fill.fill-red { background:var(--red); }
.score-bar-fill.fill-wine { background:var(--wine); }
.score-value { font-size:14px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; text-align:right; }
.score-tag { font-size:11px; font-weight:700; padding:2px 8px; border-radius:4px; text-align:center; white-space:nowrap; }
.score-tag.tag-green { background:var(--green-light); color:var(--green); }
.score-tag.tag-amber { background:var(--amber-light); color:var(--amber); }
.score-tag.tag-red { background:var(--red-light); color:var(--red); }

/* Progress Track 进度条 */
.progress-item { margin-bottom:12px; }
.progress-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; gap:8px; min-width:0; }
.progress-label { font-size:13px; font-weight:600; color:var(--text); }
.progress-value { font-size:13px; font-weight:700; color:var(--wine); font-variant-numeric:tabular-nums; white-space:nowrap; }
.progress-track { height:10px; border-radius:5px; background:var(--surface-2); overflow:hidden; }
.progress-fill { height:100%; border-radius:5px; background:var(--wine); transition:width .6s; }
.progress-fill.fill-green { background:var(--green); }
.progress-fill.fill-amber { background:var(--amber); }
.progress-fill.fill-red { background:var(--red); }
.progress-fill.fill-accent { background:var(--accent); }

/* Stat Row 统计行 */
.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:16px; }
.stat-item { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); padding:14px; text-align:center; }
.stat-label { font-size:11px; color:var(--text-3); font-weight:600; text-transform:uppercase; letter-spacing:.5px; margin-bottom:6px; }
.stat-value { font-size:22px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; }
.stat-unit { font-size:12px; font-weight:400; color:var(--text-2); }
.stat-change { font-size:11px; font-weight:600; margin-top:4px; }
.stat-change.up { color:var(--green); }
.stat-change.down { color:var(--red); }

/* Competitor Card 竞争对手卡片 */
.competitor-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-bottom:16px; }
.competitor-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); border-top:4px solid var(--accent); }
.competitor-card.comp-zhangyu { border-top-color:var(--accent); }
.competitor-card.comp-weilong { border-top-color:var(--amber); }
.competitor-card.comp-niya { border-top-color:var(--green); }
.competitor-card.comp-tongpu { border-top-color:var(--text-3); }
.competitor-card.comp-mogao { border-top-color:var(--wine); }
.competitor-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; gap:8px; flex-wrap:wrap; }
.competitor-name { font-size:16px; font-weight:700; color:var(--text); }
.competitor-tag { font-size:11px; font-weight:700; padding:2px 8px; border-radius:4px; }
.competitor-body { font-size:13px; color:var(--text-2); line-height:1.7; }
.competitor-body ul { margin:6px 0 0 16px; }
.competitor-body li { margin-bottom:4px; }
.competitor-body strong { color:var(--text); }
.competitor-footer { margin-top:12px; padding-top:12px; border-top:1px solid var(--border); display:flex; gap:8px; flex-wrap:wrap; }

/* Innovation Card 创新模式卡 */
.innovation-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:16px; }
.innovation-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); position:relative; }
.innovation-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--wine); border-radius:var(--radius) var(--radius) 0 0; }
.innovation-card.innov-p0::before { background:var(--red); }
.innovation-card.innov-p1::before { background:var(--amber); }
.innovation-card.innov-p2::before { background:var(--accent); }
.innovation-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; gap:8px; }
.innovation-title { font-size:14px; font-weight:700; color:var(--text); }
.innovation-source { font-size:11px; color:var(--text-3); }
.innovation-desc { font-size:12px; color:var(--text-2); line-height:1.6; margin-bottom:10px; }
.innovation-meta { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.innovation-apply { font-size:11px; font-weight:700; padding:2px 8px; border-radius:4px; }
.innovation-apply.apply-high { background:var(--green-light); color:var(--green); }
.innovation-apply.apply-mid { background:var(--amber-light); color:var(--amber); }
.innovation-apply.apply-low { background:var(--surface-2); color:var(--text-3); }

/* Responsive 13 */
@media (max-width:768px) {
  .score-row { grid-template-columns:100px 1fr 50px 60px; gap:8px; }
  .stat-grid { grid-template-columns:repeat(2,1fr); }
  .competitor-grid { grid-template-columns:1fr; }
  .innovation-grid { grid-template-columns:1fr; }
}
@media (max-width:480px) {
  .score-row { grid-template-columns:1fr; gap:4px; }
  .score-bar { width:100%; }
  .stat-grid { grid-template-columns:1fr; }
}

/* ===== 时间维度组件（zhinao-demo-builder 强制规范）===== */

/* 1. 粒度切换器：日/月/年三段segment */
.time-switch { display:inline-flex; background:var(--surface-2); border:1px solid var(--border); border-radius:8px; padding:2px; gap:2px; }
.time-switch button { border:none; background:transparent; padding:6px 14px; font-size:12px; font-weight:600; color:var(--text-2); border-radius:6px; cursor:pointer; transition:all .15s; }
.time-switch button.active { background:var(--accent); color:#fff; }
.time-switch button:hover:not(.active) { background:var(--surface); color:var(--text); }

/* 2. 时序图表容器（ECharts渲染） */
.trend-chart { width:100%; height:320px; min-height:280px; }
.trend-chart.trend-mini { height:140px; min-height:120px; }
.trend-chart.trend-large { height:420px; }
.trend-section { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:14px 16px; }
.trend-section .trend-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; flex-wrap:wrap; gap:8px; }
.trend-section .trend-title { font-size:13px; font-weight:700; color:var(--text); }
.trend-section .trend-tools { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

/* 3. 同比环比标注（KPI卡附属） */
.kpi-delta-yoy, .kpi-delta-mom { display:inline-flex; align-items:center; gap:3px; font-size:11px; font-weight:700; padding:2px 6px; border-radius:4px; margin-top:4px; }
.kpi-delta-yoy.up, .kpi-delta-mom.up { background:var(--green-light); color:var(--green); }
.kpi-delta-yoy.down, .kpi-delta-mom.down { background:#fee2e2; color:#dc2626; }
.kpi-delta-yoy::before, .kpi-delta-mom::before { font-size:10px; }
.kpi-delta-yoy.up::before { content:'▲'; }
.kpi-delta-yoy.down::before, .kpi-delta-mom.down::before { content:'▼'; }
.kpi-delta-mom.up::before { content:'▲'; }
.kpi-delta-label { font-size:10px; color:var(--text-3); margin-right:2px; font-weight:500; }

/* 4. 日期范围选择器 */
.date-picker { display:inline-flex; align-items:center; gap:6px; font-size:12px; }
.date-picker input[type="date"] { border:1px solid var(--border); border-radius:6px; padding:5px 8px; font-size:12px; color:var(--text); background:var(--surface); }
.date-picker input[type="date"]:focus { outline:none; border-color:var(--accent); }
.date-picker .dp-sep { color:var(--text-3); font-size:11px; }
.date-picker .dp-quick { display:inline-flex; gap:4px; margin-left:8px; }
.date-picker .dp-quick button { border:1px solid var(--border); background:var(--surface); padding:3px 8px; font-size:11px; border-radius:4px; cursor:pointer; color:var(--text-2); }
.date-picker .dp-quick button.active { background:var(--accent); color:#fff; border-color:var(--accent); }

/* 5. 时间轴（数据时序版，区别于落地路径timeline） */
.timeline-data { display:flex; gap:0; overflow-x:auto; padding:8px 0; }
.timeline-data .tl-item { flex:1; min-width:90px; text-align:center; position:relative; padding:0 4px; }
.timeline-data .tl-dot { width:10px; height:10px; border-radius:50%; background:var(--accent); margin:0 auto 6px; position:relative; z-index:1; }
.timeline-data .tl-item.warn .tl-dot { background:var(--amber); }
.timeline-data .tl-item.danger .tl-dot { background:#dc2626; }
.timeline-data .tl-item.done .tl-dot { background:var(--green); }
.timeline-data .tl-line { position:absolute; top:4px; left:50%; right:-50%; height:2px; background:var(--border); z-index:0; }
.timeline-data .tl-item:last-child .tl-line { display:none; }
.timeline-data .tl-date { font-size:10px; color:var(--text-3); margin-bottom:2px; }
.timeline-data .tl-label { font-size:11px; font-weight:600; color:var(--text); margin-bottom:2px; }
.timeline-data .tl-value { font-size:11px; color:var(--text-2); }

/* 6. ECharts容器响应式 */
.trend-chart canvas { border-radius:6px; }
@media (max-width:768px) {
  .trend-chart { height:240px; min-height:240px; }
  .trend-chart.trend-mini { height:100px; min-height:100px; }
  .date-picker { flex-wrap:wrap; }
}
