/**
 * 桌面端个人中心页头高级样式
 * 提供更具高级感的视觉效果
 */

/* 桌面端个人中心模态框整体样式优化 */
.desktop-profile.profile-modal {
  position: fixed;
  top: 70px;
  right: 10px;
  width: 320px;
  max-width: 320px;
  height: auto;
  max-height: calc(100vh - 100px);
  background-color: white;
  color: #333;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  z-index: 9980;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideInFromTop 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 优化动画效果，使用更平滑的缓动函数 */
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 高级感页头样式 */
.desktop-profile .profile-header {
  padding: 18px 24px;
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(255, 117, 140, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 页头左侧区域样式 */
.desktop-profile .profile-header .header-left {
  display: flex;
  align-items: center;
}

/* 页头标题样式优化 */
.desktop-profile .profile-header h2,
.desktop-profile .profile-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-family: 'Montserrat', sans-serif;
}

/* 关闭按钮样式优化 */
.desktop-profile .close-profile,
.desktop-profile .close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 关闭按钮悬停效果 */
.desktop-profile .close-profile:hover,
.desktop-profile .close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* 关闭按钮图标样式 */
.desktop-profile .close-profile i,
.desktop-profile .close-btn i {
  font-size: 14px;
}

/* 内容区域样式优化 */
.desktop-profile .profile-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #fff;
}

/* 自定义滚动条样式 */
.desktop-profile .profile-content::-webkit-scrollbar {
  width: 6px;
}

.desktop-profile .profile-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.desktop-profile .profile-content::-webkit-scrollbar-thumb {
  background: #ff758c;
  border-radius: 10px;
}

.desktop-profile .profile-content::-webkit-scrollbar-thumb:hover {
  background: #ff7eb3;
}
