/**
 * 四大场景演示详情页 · 统一 UI
 * 页面 body 添加：demo-report + demo-report--s1|s2|s3|s4
 */

:root {
  --report-width: 1080px;
  --report-pad-x: 32px;

  --primary: #1677ff;
  --primary-dark: #0958d9;
  --primary-light: #e6f4ff;
  --blue-deep: #0a3d7a;
  --blue: #1357a6;
  --blue-mid: #1e6db8;
  --blue-border: rgba(22, 119, 255, 0.14);

  --text: #1f2937;
  --muted: #64748b;
  --bg: #f4f7fb;
  --card: #ffffff;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 36px rgba(15, 23, 42, 0.1);

  /* 场景主题色（与渠道推介页四大场景一致） */
  --scene-accent: var(--primary);
  --scene-accent-dark: var(--primary-dark);
  --scene-grad-start: #0958d9;
  --scene-grad-end: #1677ff;
  --scene-light: #e6f4ff;

  --chart-1: #0958d9;
  --chart-2: #1677ff;
  --chart-3: #4096ff;
  --chart-4: #69b1ff;
  --chart-5: #94a3b8;

  --warn: #d97706;
  --risk-high: #b91c1c;
  --red: #b91c1c;
  --orange: #d97706;
  --green: #047857;
}

/* 场景 02 · 考核调度 */
.demo-report--s2 {
  --scene-accent: #722ed1;
  --scene-accent-dark: #531dab;
  --scene-grad-start: #531dab;
  --scene-grad-end: #722ed1;
  --scene-light: #f9f0ff;
  --chart-1: #531dab;
  --chart-2: #722ed1;
  --chart-3: #9254de;
  --chart-4: #b37feb;
  --chart-5: #94a3b8;
}

/* 场景 03 · 典型办件 */
.demo-report--s3 {
  --scene-accent: #fa8c16;
  --scene-accent-dark: #d46b08;
  --scene-grad-start: #d46b08;
  --scene-grad-end: #fa8c16;
  --scene-light: #fff7e6;
  --chart-1: #d46b08;
  --chart-2: #fa8c16;
  --chart-3: #ffc069;
  --chart-4: #ffd591;
  --chart-5: #94a3b8;
}

/* 场景 04 · 办件质检 */
.demo-report--s4 {
  --scene-accent: #13c2c2;
  --scene-accent-dark: #08979c;
  --scene-grad-start: #08979c;
  --scene-grad-end: #13c2c2;
  --scene-light: #e6fffb;
  --chart-1: #08979c;
  --chart-2: #13c2c2;
  --chart-3: #36cfc9;
  --chart-4: #5cdbd3;
  --chart-5: #94a3b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.demo-report {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.demo-report a { color: var(--primary); text-decoration: none; }
body.demo-report a:hover { text-decoration: underline; }

/* ── 顶栏 ── */
.demo-report-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.demo-report-topbar-inner {
  max-width: var(--report-width);
  margin: 0 auto;
  padding: 12px var(--report-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.demo-report-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}
.demo-report-back:hover { text-decoration: none; opacity: 0.85; }
.demo-report-scene-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--scene-accent-dark);
  background: var(--scene-light);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── 主容器 ── */
.report-wrap {
  max-width: var(--report-width);
  margin: 0 auto;
  padding: 28px var(--report-pad-x) 64px;
}

/* ── 报告头 ── */
.report-header {
  color: #fff;
  padding: 32px 34px 28px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--scene-grad-start), var(--scene-grad-end));
  box-shadow: 0 12px 36px rgba(9, 88, 217, 0.22);
}
.report-header .tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  margin-bottom: 14px;
  font-weight: 600;
}
.report-header h1 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.report-header .sub {
  font-size: 14px;
  opacity: 0.94;
  line-height: 1.8;
  max-width: 920px;
}
.report-header .sub strong { font-weight: 700; }
.report-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  opacity: 0.88;
  line-height: 1.7;
}

/* ── 目录 ── */
.toc {
  background: var(--card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.toc h2 {
  font-size: 15px;
  color: var(--blue-deep);
  margin-bottom: 12px;
  font-weight: 800;
}
.toc ol {
  padding-left: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}
.toc a { color: var(--primary-dark); font-weight: 500; }

/* ── 正文块 ── */
section.block,
.block {
  background: var(--card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
section.block > h2,
.block > h2 {
  color: var(--blue-deep);
  font-weight: 800;
  margin-bottom: 14px;
  font-size: 18px;
  border-left: 4px solid var(--scene-accent);
  padding-left: 12px;
  margin-left: -4px;
}
section.block > h3,
.block > h3 {
  color: var(--blue-deep);
  font-size: 16px;
  font-weight: 800;
  margin: 20px 0 10px;
}
section.block > h3:first-child,
.block > h3:first-child { margin-top: 0; }
.sub-h3 {
  font-size: 15px;
  color: var(--blue-deep);
  margin: 18px 0 10px;
  font-weight: 800;
}
.sub-h3:first-child { margin-top: 0; }
section.block p,
.block p {
  margin-bottom: 12px;
  text-align: justify;
  color: var(--text);
}
section.block p:last-child,
.block p:last-child { margin-bottom: 0; }

.stat-inline { font-weight: 800; color: var(--scene-accent-dark); }

/* ── 表格 ── */
table.gov-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 14px 0;
}
table.gov-table th,
table.gov-table td {
  border: 1px solid var(--border);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}
table.gov-table th {
  background: var(--scene-light);
  color: var(--blue-deep);
  font-weight: 700;
}
table.gov-table tr:nth-child(even) td { background: #fafbfc; }

/* ── 引导框 ── */
.lead-box {
  background: linear-gradient(135deg, var(--scene-light), #fafbfc);
  border: 1px solid var(--blue-border);
  border-left: 4px solid var(--scene-accent);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin: 12px 0;
  font-size: 14px;
}
.lead-box h4 {
  font-size: 13px;
  margin: 0 0 6px;
  color: var(--blue-deep);
  font-weight: 800;
}
.lead-box p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: justify;
}
.lead-box--neutral {
  background: #f8fafc;
  border-color: var(--border);
  border-left-color: #94a3b8;
}
.lead-box--blue {
  background: linear-gradient(135deg, #e6f4ff, #f8fafc);
  border-left-color: var(--primary);
}

/* ── 图表区 ── */
.viz-wrap {
  margin: 18px 0;
  padding: 20px 22px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.viz-wrap > h3 {
  font-size: 14px;
  color: var(--blue-deep);
  margin-bottom: 16px;
  font-weight: 800;
}
.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  flex-wrap: wrap;
}
.bar-row .label {
  width: 200px;
  flex-shrink: 0;
  color: var(--muted);
  font-weight: 600;
}
.bar-track {
  flex: 1;
  min-width: 80px;
  height: 22px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  min-width: 2px;
  background: linear-gradient(90deg, var(--scene-grad-start), var(--scene-grad-end));
}
.bar-val {
  min-width: 120px;
  text-align: right;
  font-weight: 700;
  color: var(--blue-deep);
  font-size: 12px;
}
.month-bars {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 160px;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--border);
}
.month-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 100px;
}
.month-col {
  width: 100%;
  max-width: 56px;
  background: linear-gradient(180deg, var(--scene-grad-start), var(--scene-grad-end));
  border-radius: 6px 6px 0 0;
  min-height: 8px;
}
.month-item span { font-size: 12px; color: var(--muted); }
.month-item .n { font-weight: 800; color: var(--blue-deep); font-size: 13px; }

/* ── 标签 ── */
.tier-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  margin-right: 6px;
}
.tier-a { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.tier-b { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.tier-c { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* ── 摘要卡片（场景 02/04 常用） ── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.summary-card {
  background: var(--card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.summary-card .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.summary-card .value {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--blue-deep);
  margin-bottom: 6px;
}
.summary-card .desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── 页脚说明 ── */
.footer-meta {
  margin-top: 28px;
  padding: 18px 20px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
}
.note-muted { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ── 场景 01 等页面常用补充 ── */
.summary-lead { margin-bottom: 14px; text-align: justify; }
.chart-wrap {
  margin: 18px 0;
  padding: 20px 22px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.chart-wrap h3,
.chart-wrap h4 {
  font-size: 14px;
  color: var(--blue-deep);
  margin-bottom: 14px;
  font-weight: 800;
}
.scene-box {
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 14px 0;
  background: #fbfcfe;
}
.scene-box h4 { margin-top: 0; color: var(--blue-deep); font-weight: 800; }
.suggest-block {
  margin: 14px 0;
  padding-left: 14px;
  border-left: 3px solid var(--scene-accent);
}
.suggest-block strong { color: var(--blue-deep); }

/* ── 场景 03 办件思路 ── */
.key-point {
  background: var(--scene-light);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.75;
}
.quote-speech {
  border-left: 4px solid var(--scene-accent);
  padding: 14px 18px;
  margin: 14px 0;
  background: #f8fafc;
  font-size: 14px;
  color: var(--text);
}

/* ── 场景 04 质检状态 ── */
.summary-card.danger .value { color: var(--risk-high); }
.status-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.status-card {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fafbfc;
}
.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.status-red { background: #fef2f2; color: #991b1b; }
.status-orange { background: #fffbeb; color: #92400e; }
.focus-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  background: #fef3c7;
  color: var(--warn);
  border: 1px solid rgba(180, 83, 9, 0.35);
}

/* ── 兼容旧类名 ── */
.back-link { margin-bottom: 0; }
.doc-para { text-indent: 2em; }
ul.std-list, ol.std-list { margin: 10px 0 10px 22px; }
ul.std-list li, ol.std-list li { margin-bottom: 8px; }

@media (max-width: 900px) {
  :root { --report-pad-x: 20px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .bar-row .label { width: 140px; }
}
