/* 首页样式 */

/* 头像颜色类 */
.name-avatar.blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.name-avatar.green {
  background: linear-gradient(135deg, #10b981, #059669);
}
.name-avatar.purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.name-avatar.orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* 进度条样式 */
.progress-bar {
  height: 6px;
  background-color: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* 脉冲点样式 */
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #3b82f6;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background-color: #3b82f6;
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* 统计卡片样式 */
.stat-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 加载动画 */
@keyframes pulse-bg {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse-bg 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}