/* 统计页面样式 */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.kpi-card {
  background: white;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.kpi-card:hover { box-shadow: 0 4px 20px rgba(136,190,69,0.15); }
.kpi-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.kpi-body { flex: 1; }
.kpi-num { font-size: 28px; font-weight: 700; color: var(--text-main); line-height: 1; }
.kpi-num.success { color: #5a9a20; }
.kpi-num.warning { color: #d48806; }
.kpi-num.danger  { color: var(--red); }
.kpi-label { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.chart-card {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chart-card.chart-wide { grid-column: span 1; }
.chart-header {
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border);
}
.chart-title { font-size: 14px; font-weight: 600; color: var(--text-main); }
.chart-body {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-section {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}
.section-header {
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border);
}
.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.detail-table thead th {
  background: #f8fdf3;
  color: var(--text-sub);
  font-weight: 600;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border);
}
.detail-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #f5f5f5;
  color: var(--text-main);
}
.detail-table tbody tr:hover { background: var(--primary-lighter); }
.rate-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rate-bar-track {
  flex: 1;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}
.rate-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #88be45, #a8d865);
  border-radius: 3px;
  transition: width 0.6s ease;
}
.rate-text { font-size: 12px; color: var(--primary-dark); font-weight: 600; min-width: 38px; }

@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .chart-grid { grid-template-columns: 1fr 1fr; }
}
