
:root {
  color-scheme: light;
  --bg: #f3f6f8;
  --paper: #ffffff;
  --ink: #18212a;
  --muted: #607080;
  --line: #d8e0e8;
  --accent: #176375;
  --accent-soft: #e7f1f4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.page-header { margin-bottom: 20px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}
h1, h2 { margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
h2 { font-size: 22px; }
.lede { max-width: 720px; margin: 12px 0 0; color: var(--muted); line-height: 1.7; }

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.kpi-strip article, figure, .crop-section, section[aria-label="品种汇总"] {
  border: 1px solid var(--line);
  background: var(--paper);
}
.kpi-strip article { padding: 14px; border-radius: 8px; }
.kpi-strip span { display: block; color: var(--muted); font-size: 12px; font-weight: 650; }
.kpi-strip strong { display: block; margin-top: 8px; font-size: 22px; line-height: 1.15; }
.kpi-strip small { color: var(--muted); font-size: 13px; font-weight: 600; }

.chart-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}
figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
}
figure img { display: block; width: 100%; height: auto; }
figcaption { padding: 0 16px 14px; color: var(--muted); font-size: 13px; }

.crop-section, section[aria-label="品种汇总"] {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}
.crop-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.crop-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 7px 12px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.crop-button.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #0f4d5c;
  font-weight: 700;
}
.swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--swatch);
}

.empty-note {
  margin: 8px 0 12px;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
}
caption {
  padding: 10px 12px;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
}
th, td {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  text-align: right;
  font-size: 14px;
}
th:first-child, td:first-child, td:nth-child(2) { text-align: left; }
thead th {
  background: #eef3f6;
  color: #31404d;
  font-weight: 700;
}
footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-pair { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .crop-buttons { justify-content: flex-start; margin-top: 12px; }
}

@media (max-width: 520px) {
  .page-shell { padding: 18px 12px 30px; }
  .kpi-strip { grid-template-columns: 1fr; }
  .kpi-strip strong { font-size: 20px; }
}
