/* ====== 河南农产 · 数据看板（深色驾驶舱主题） ====== */
/* 复用全站字体：Fraunces(展示) + Noto Serif SC(标题) + Noto Sans SC(正文) */

body.data-page {
  padding-top: 64px; /* 避开固定导航栏 */
  --dash-bg: #10200d;
  --dash-card: rgba(255, 255, 255, .045);
  --dash-card-border: rgba(232, 197, 82, .16);
  --dash-gold: #e8c552;
  --dash-gold-2: #c9962b;
  --dash-green: #7bb04a;
  --dash-text: #f3efe4;
  --dash-muted: #9fae90;
  --dash-radius: 16px;

  color: var(--dash-text);
  background-color: #10200d;
  background-image:
    radial-gradient(1200px 620px at 82% -12%, rgba(201, 150, 43, .16), transparent 60%),
    radial-gradient(900px 520px at -8% 108%, rgba(123, 176, 74, .14), transparent 55%),
    linear-gradient(158deg, #10200d 0%, #16290f 52%, #0d190a 100%);
  background-attachment: scroll;
  min-height: 100vh;
  position: relative;
}
/* 细微噪点，营造纵深、避免纯色平铺 */
body.data-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.dash {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 38px 22px 64px;
}

/* ---------- 覆盖全站 light 样式，保证深色一致 ---------- */
body.data-page .navbar { background: rgba(16,32,13,.82); border-bottom-color: rgba(232,197,82,.18); }
body.data-page .nav-logo { color: #f3efe4; }
body.data-page .nav-logo span { color: var(--dash-gold); }
body.data-page .nav-links a { color: rgba(243,239,228,.82); }
body.data-page .nav-links a:hover,
body.data-page .nav-links a.active { color: var(--dash-gold); }
body.data-page .nav-links a.active::after { background: var(--dash-gold); }
body.data-page .user-btn { background: rgba(255,255,255,.08); color: rgba(243,239,228,.85); border-color: rgba(255,255,255,.12); }
body.data-page .user-btn:hover { background: var(--dash-gold); color: #16290f; border-color: var(--dash-gold); }

/* ---------- Hero ---------- */
.dash-hero {
  margin-bottom: 30px;
}
.dash-hero-eyebrow {
  display: inline-block;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dash-gold);
  border: 1px solid var(--dash-card-border);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 16px;
  background: rgba(232, 197, 82, .06);
}
.dash-title {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-weight: 900;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -.5px;
  color: var(--dash-text);
  margin: 0 0 12px;
}
.dash-title span {
  background: linear-gradient(96deg, var(--dash-gold) 0%, #f3d98a 50%, var(--dash-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dash-sub {
  font-family: "Noto Sans SC", sans-serif;
  font-size: clamp(15px, 2.4vw, 17px);
  color: var(--dash-muted);
  max-width: 640px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.dash-meta {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 12.5px;
  color: var(--dash-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-meta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--dash-green);
  box-shadow: 0 0 0 4px rgba(123, 176, 74, .18);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- KPI ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.kpi-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: var(--dash-card);
  border: 1px solid var(--dash-card-border);
  border-radius: var(--dash-radius);
  backdrop-filter: blur(6px);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .25s;
}
.kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 197, 82, .4);
}
.kpi-ico {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(232, 197, 82, .1);
  color: var(--dash-gold);
}
.kpi-ico svg { width: 24px; height: 24px; }
.kpi-body { min-width: 0; }
.kpi-num {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.kpi-num small { font-size: 14px; color: var(--dash-muted); font-weight: 600; margin-left: 2px; }
.kpi-label {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 13px;
  color: var(--dash-muted);
  margin-top: 4px;
}

/* ---------- Chart grid ---------- */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.chart-card {
  background: var(--dash-card);
  border: 1px solid var(--dash-card-border);
  border-radius: var(--dash-radius);
  padding: 18px 18px 14px;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chart-card.span-2 { grid-column: 1 / -1; }
.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.chart-head h2 {
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  margin: 0;
}
.chart-tag {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 11.5px;
  color: var(--dash-muted);
  border: 1px solid var(--dash-card-border);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.chart-box {
  width: 100%;
  height: 300px;
}
.chart-box-map { height: 440px; }

.chart-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--dash-muted);
  font-size: 14px;
  text-align: center;
  padding: 0 20px;
}

.dash-foot {
  margin-top: 28px;
  text-align: center;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 12px;
  color: var(--dash-muted);
  opacity: .8;
}

/* ---------- 响应式：移动优先塌缩 ---------- */
@media (max-width: 760px) {
  .dash { padding: 26px 16px 48px; }
  .chart-grid { grid-template-columns: 1fr; }
  .chart-card.span-2 { grid-column: auto; }
  .chart-box { height: 260px; }
  .chart-box-map { height: 360px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-card { padding: 14px 16px; }
}

/* 尊重 reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .kpi-card, .dash-meta .dot { transition: none; animation: none; }
}
