.card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.kpi-card { transition: transform 0.2s; }
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.up { color: #f5222d; }
.down { color: #52c41a; }
.neutral { color: #8c8c8c; }
.preset-btn { cursor: pointer; padding: 6px 14px; border-radius: 6px; font-size: 13px; border: 1px solid #e5e7eb; background: #fff; transition: all 0.2s; }
.preset-btn:hover { border-color: #818cf8; color: #4f46e5; }
.preset-btn.active { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.loading-mask { position: fixed; inset: 0; background: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.spinner { width: 40px; height: 40px; border: 4px solid #e5e7eb; border-top-color: #4f46e5; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chart-container { height: 320px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title { font-size: 15px; font-weight: 600; color: #1f2937; }
.section-desc { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.data-table th,
.data-table td { border-bottom: 1px solid #e5e7eb; padding: 10px 12px; font-size: 13px; }
.data-table th { background: #f9fafb; color: #6b7280; font-weight: 600; text-align: left; white-space: nowrap; }
.data-table td { color: #1f2937; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td.metric-name { white-space: nowrap; }
.data-table tbody tr:hover { background: #fafafa; }
.empty-table { padding: 24px 12px; color: #9ca3af; text-align: center; font-size: 13px; }
@media (max-width: 768px) {
  .chart-container { height: 260px; }
}

/* 指标说明角标 */
.kpi-card { position: relative; }
.kpi-help-btn {
  position: absolute; top: 8px; right: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #f0f0f0; color: #999; border: none;
  font-size: 11px; line-height: 18px; text-align: center;
  cursor: pointer; transition: all 0.2s; z-index: 2;
}
.kpi-help-btn:hover { background: #e0e0e0; color: #666; }
.kpi-tooltip {
  display: none; position: absolute; top: 30px; right: 4px;
  width: 260px; padding: 12px 14px;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 100; font-size: 12px; color: #555; line-height: 1.6;
}
.kpi-tooltip .tip-title { font-weight: 600; color: #333; margin-bottom: 4px; }
.kpi-tooltip .tip-note { color: #999; margin-top: 4px; font-size: 11px; }
