/* 高级版核心样式 - 适配侧边栏+增强视觉 */
.w-profile-card {
  background: #fff;
  border-radius: 12px;
  overflow: visible; /* 关键：允许头像溢出 */
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  position: relative;
  transition: all 0.3s ease;
  margin: 20px 0; /* 上边距优化 */
}
/* 卡片悬浮轻微上浮+阴影增强 */
.w-profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}
/* 顶部渐变背景（高级渐变+纹理） */
.profile-header {
  height: 90px;
  background: linear-gradient(135deg, #3688FF 0%, #00B4FF 50%, #69D2FF 100%);
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
/* 顶部装饰光点 */
.profile-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2) 0%, transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.15) 0%, transparent 40%);
  pointer-events: none;
}
/* 头像样式（精准居中蓝白交界处+呼吸发光） */
.profile-avatar {
  position: absolute;
  left: 50%;
  top: 45px; /* 核心：头像居中在蓝色和白色中间 */
  transform: translateX(-50%) translateY(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 5px solid #fff;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(54, 136, 255, 0.3);
  transition: all 0.5s ease;
  z-index: 99;
  /* 呼吸发光动画 */
  animation: avatarGlow 3s ease-in-out infinite;
}
/* 头像呼吸光效 */
@keyframes avatarGlow {
  0% { box-shadow: 0 5px 20px rgba(54, 136, 255, 0.3); }
  50% { box-shadow: 0 5px 30px rgba(54, 136, 255, 0.6); }
  100% { box-shadow: 0 5px 20px rgba(54, 136, 255, 0.3); }
}
.profile-avatar:hover {
  transform: translateX(-50%) translateY(-50%) rotate(5deg) scale(1.08);
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}
.profile-avatar:hover img {
  transform: scale(1.1);
}
/* 个人信息区域（适配头像位置） */
.profile-info {
  padding: 70px 25px 25px;
  text-align: center;
}
.profile-name {
  font-size: 22px;
  font-weight: 600;
  color: #2D3748;
  margin: 0 0 8px;
  position: relative;
  display: inline-block;
}
/* 昵称下方装饰线 */
.profile-name::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #3688FF, #00B4FF);
  border-radius: 1px;
}
.profile-motto {
  font-size: 15px;
  color: #718096;
  line-height: 1.6;
  margin: 12px 0 25px;
  font-style: italic;
}
/* 社交图标区域（优化布局+响应式） */
.profile-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
/* 社交图标容器（优化定位） */
.social-item {
  position: relative;
  perspective: 500px;
}
.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
}
/* 图标悬浮效果（3D翻转+光影） */
.social-icon:hover {
  transform: rotateY(10deg) scale(1.1);
  box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}
/* 社交图标配色（更精准的品牌色） */
.social-icon.qq { 
  background: linear-gradient(135deg, #12B7F5 0%, #00A3E0 100%); 
}
.social-icon.wechat { 
  background: linear-gradient(135deg, #07C160 0%, #06B058 100%); 
}
.social-icon.bilibili { 
  background: linear-gradient(135deg, #FB7299 0%, #F95C8B 100%); 
}
.social-icon.douyin { 
  background: linear-gradient(135deg, #000000 0%, #222222 100%); 
}
.social-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(100);
  transition: all 0.3s ease;
}
.social-icon:hover img {
  transform: scale(1.1);
}
/* 二维码悬浮层 */
.qrcode-popup {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 130px;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.18);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.qrcode-popup::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,0.08));
}
.qrcode-inner {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #f0f2f5;
}
.qrcode-popup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
.social-item:hover .qrcode-popup {
  opacity: 1;
  visibility: visible;
  top: -150px;
  transform: translateX(-50%) translateY(0);
}
/* 数据统计区域（渐变文字+动态滚动） */
.profile-stats {
  display: flex;
  justify-content: space-around;
  padding: 20px 0;
  border-top: 1px solid #f5f7fa;
  position: relative;
}
.profile-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3688FF, transparent);
}
.stats-item {
  text-align: center;
  padding: 0 10px;
  position: relative;
}
.stats-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 30px;
  background: #f0f2f5;
}
.stats-label {
  font-size: 13px;
  color: #A0AEC0;
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.stats-value {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #3688FF 0%, #00B4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
/* 响应式适配 */
@media (max-width: 768px) {
  .profile-social { gap: 15px; }
  .social-icon { width: 40px; height: 40px; }
  .qrcode-popup { width: 120px; height: 120px; }
  .stats-value { font-size: 18px; }
}