:root {
  --bg: #eef3f7;
  --panel: #ffffff;
  --ink: #152033;
  --muted: #5e6b7c;
  --line: #d6dee8;
  --navy: #17476d;
  --blue-soft: #e8f1f8;
  --amber-soft: #fff6df;
  --green: #00866b;
  --red: #c5483b;
  --shadow: 0 10px 28px rgba(21, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

.shell {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 36px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--navy);
  color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  opacity: 0.76;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  font-weight: 700;
}

.date-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.kpi-card,
.summary-section,
.chart-section,
.full-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.kpi-card {
  padding: 16px 18px;
}

.kpi-label {
  color: var(--muted);
  font-size: 13px;
}

.kpi-value {
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 760;
  line-height: 1.1;
}

.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}

.tone-up {
  color: var(--red);
}

.tone-down {
  color: var(--green);
}

.summary-section,
.chart-section,
.full-section {
  margin-top: 14px;
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: var(--blue-soft);
  border-bottom: 1px solid var(--line);
}

.section-head span {
  color: var(--muted);
  font-size: 13px;
}

.summary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.summary-item {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdff;
  line-height: 1.55;
  font-size: 13px;
}

.summary-item.major {
  background: var(--amber-soft);
  border-color: #ead9a7;
  font-weight: 700;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.chart-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

.chart-title {
  padding: 9px 12px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.chart-card img {
  display: block;
  width: 100%;
  height: auto;
}

.image-scroll {
  overflow: auto;
  max-height: 76vh;
  background: white;
}

.image-scroll img {
  display: block;
  width: max(100%, 1560px);
  height: auto;
}

@media (max-width: 980px) {
  .shell {
    width: min(100vw - 18px, 780px);
    padding-top: 10px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .kpi-grid,
  .summary-list,
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .image-scroll img {
    width: 1680px;
  }
}
