/* ========== 通用卡片 ========== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.card-header h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--accent-dim);
  color: var(--accent);
  letter-spacing: 0.3px;
}

.card-badge.pulse {
  animation: badge-pulse 2.5s infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,113,78,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(212,113,78,0); }
}

/* ========== 统计卡片 ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover::before {
  opacity: 0.5;
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card:nth-child(1) .stat-icon { background: var(--coral-dim); color: var(--coral); }
.stat-card:nth-child(2) .stat-icon { background: var(--amber-dim); color: var(--amber); }
.stat-card:nth-child(3) .stat-icon { background: var(--plum-dim); color: var(--plum); }
.stat-card:nth-child(4) .stat-icon { background: var(--sage-dim); color: var(--sage); }
.stat-card:nth-child(5) .stat-icon { background: var(--coral-dim); color: var(--coral); }

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-info {
  flex: 1;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.stat-trend {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.stat-trend.up {
  color: var(--sage);
  background: var(--sage-dim);
}

.stat-trend.up.bad {
  color: var(--amber);
  background: var(--amber-dim);
}

.stat-trend.down {
  color: var(--sage);
  background: var(--sage-dim);
}

/* ========== 按钮 ========== */
.btn-predict {
  padding: 9px 20px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.btn-predict:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.btn-predict.schedule {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.btn-predict.schedule:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}
