/* 个人中心样式 */

/* 头部信息 */
.profile-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  color: white;
  margin: 30px 0;
}

.avatar {
  font-size: 5rem;
  margin-bottom: 20px;
}

.username {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.userlevel {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* 统计卡片 */
.stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  color: #7f8c8d;
  font-size: 0.95rem;
}

/* 进度列表 */
.progress-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.progress-item {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
}

.progress-percent {
  font-size: 1rem;
  font-weight: 600;
  color: #667eea;
}

.progress-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* 成就徽章 */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.achievement {
  background: white;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.achievement.unlocked {
  border: 2px solid #667eea;
}

.achievement.locked {
  opacity: 0.6;
}

.achievement:hover {
  transform: translateY(-5px);
}

.achievement-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.achievement-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.achievement-desc {
  font-size: 0.9rem;
  color: #7f8c8d;
}

/* 操作按钮 */
.action-buttons {
  text-align: center;
  padding: 40px 0;
}

.action-buttons .btn-secondary {
  margin: 0 10px;
}

/* 响应式 */
@media (max-width: 768px) {
  .profile-header {
    padding: 30px 20px;
  }

  .avatar {
    font-size: 4rem;
  }

  .username {
    font-size: 1.5rem;
  }

  .stats-section {
    grid-template-columns: 1fr;
  }

  .achievements-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
