.profile-container {
  min-height: 100vh;
  background: #f5f5f5;
}

.profile-content {
  padding: 0;
}

.profile-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  margin: 0 -16px 24px -16px;
  padding-left: 16px;
  padding-right: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.profile-main {
  padding-bottom: 24px;
}

.profile-card,
.stats-card,
.achievements-card,
.settings-card,
.logout-card {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
}

.profile-card {
  border-left: 4px solid #1890ff;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  border: 3px solid #f0f0f0;
  transition: all 0.3s;
}

.profile-avatar:hover {
  border-color: #1890ff;
  transform: scale(1.05);
}

.profile-info {
  flex: 1;
}

.profile-level {
  text-align: right;
}

.stats-card .ant-card-head {
  border-bottom: 1px solid #f0f0f0;
}

.stats-card .ant-statistic {
  text-align: center;
}

.stats-card .ant-statistic-title {
  font-size: 12px;
  color: #999;
}

.stats-card .ant-statistic-content {
  font-size: 20px;
  font-weight: bold;
}

.achievements-card .ant-card-head {
  border-bottom: 1px solid #f0f0f0;
}

.achievement-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 2px solid;
  border-radius: 8px;
  transition: all 0.3s;
  position: relative;
  background: #fff;
}

.achievement-item.achieved {
  background: linear-gradient(135deg, #f0f9ff 0%, #f9fffe 100%);
}

.achievement-item.locked {
  background: #fafafa;
  opacity: 0.6;
}

.achievement-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
  font-size: 20px;
  margin-right: 12px;
  transition: all 0.3s;
}

.achievement-content {
  flex: 1;
}

.achievement-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #52c41a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid #fff;
}

.settings-card .ant-card-head {
  border-bottom: 1px solid #f0f0f0;
}

.settings-card .ant-list-item {
  padding: 16px 0;
  border-bottom: 1px solid #f5f5f5;
}

.settings-card .ant-list-item:last-child {
  border-bottom: none;
}

.logout-card {
  border-left: 4px solid #f5222d;
}

/* 动画效果 */
.profile-card,
.stats-card,
.achievements-card,
.settings-card,
.logout-card {
  animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.achievement-item.achieved .achievement-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* 弹窗样式 */
.ant-modal .ant-form-item {
  margin-bottom: 20px;
}

.ant-modal .ant-input,
.ant-modal .ant-input:focus {
  border-radius: 6px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .profile-page {
    padding: 0 12px;
  }
  
  .page-header {
    margin: 0 -12px 16px -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .profile-level {
    text-align: center;
  }
  
  .stats-card .ant-col {
    margin-bottom: 16px;
  }
  
  .achievement-item {
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .page-header h3 {
    font-size: 18px;
  }
  
  .profile-avatar {
    width: 60px !important;
    height: 60px !important;
  }
  
  .profile-info h4 {
    font-size: 18px;
  }
  
  .stats-card .ant-row {
    flex-direction: column;
  }
  
  .stats-card .ant-col {
    width: 100% !important;
    margin-bottom: 12px;
  }
  
  .achievement-item {
    flex-direction: column;
    text-align: center;
    padding: 16px 12px;
  }
  
  .achievement-icon {
    margin-right: 0;
    margin-bottom: 8px;
    font-size: 24px;
  }
}
