/* 3D Profile Card Styles - 独立样式文件，避免与现有样式冲突 */

/* CSS变量定义 - 使用pc-前缀避免冲突 */
:root {
  --pc-pointer-x: 50%;
  --pc-pointer-y: 50%;
  --pc-pointer-from-center: 0;
  --pc-pointer-from-top: 0.5;
  --pc-pointer-from-left: 0.5;
  --pc-card-opacity: 0;
  --pc-rotate-x: 0deg;
  --pc-rotate-y: 0deg;
  --pc-background-x: 50%;
  --pc-background-y: 50%;
  --pc-grain: none;
  --pc-icon: none;
  --pc-behind-gradient: none;
  --pc-behind-glow-color: rgba(125, 190, 255, 0.67);
  --pc-behind-glow-size: 25%;
  --pc-inner-gradient: none;
  --pc-sunpillar-1: hsl(2, 100%, 73%);
  --pc-sunpillar-2: hsl(53, 100%, 69%);
  --pc-sunpillar-3: hsl(93, 100%, 69%);
  --pc-sunpillar-4: hsl(176, 100%, 76%);
  --pc-sunpillar-5: hsl(228, 100%, 74%);
  --pc-sunpillar-6: hsl(283, 100%, 73%);
  --pc-sunpillar-clr-1: var(--pc-sunpillar-1);
  --pc-sunpillar-clr-2: var(--pc-sunpillar-2);
  --pc-sunpillar-clr-3: var(--pc-sunpillar-3);
  --pc-sunpillar-clr-4: var(--pc-sunpillar-4);
  --pc-sunpillar-clr-5: var(--pc-sunpillar-5);
  --pc-sunpillar-clr-6: var(--pc-sunpillar-6);
  --pc-card-radius: 30px;
}

/* 3D卡片容器 */
.pc-card-wrapper {
  perspective: 500px;
  transform: translate3d(0, 0, 0.1px);
  position: relative;
  touch-action: none;
  max-width: 500px;
  margin: 0 auto;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 点击展开状态 */
.pc-card-wrapper.expanded {
  transform: translate3d(-120px, 0, 0.1px);
}

/* 详细内容面板 - 优化垂直布局，支持横向拖动 */
.pc-details-panel {
  position: absolute;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100%;
  max-height: 540px; /* 限制最大高度避免滚动 */
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98), 
    rgba(248, 250, 255, 0.95)
  );
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 0; /* 移除内边距，由滚动容器处理 */
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #333;
  overflow: hidden; /* 外层隐藏溢出 */
  z-index: 5;
  display: flex;
  flex-direction: column;
}

/* 滚动容器 - 支持横向和纵向滚动 */
.pc-details-scroll-container {
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
  padding: 20px;
  
  /* 自定义滚动条样式 */
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 190, 255, 0.3) transparent;
}

/* Webkit 滚动条样式 */
.pc-details-scroll-container::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.pc-details-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.pc-details-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(125, 190, 255, 0.3);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.pc-details-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(125, 190, 255, 0.6);
}

/* 电脑端隐藏滚动条功能 */
@media (min-width: 1200px) {
  .pc-details-scroll-container {
    overflow-x: hidden;
  }
  
  .pc-details-scroll-container::-webkit-scrollbar {
    display: none;
  }
}

.pc-card-wrapper.expanded .pc-details-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.pc-card-wrapper.expanded .pc-details-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

/* 关闭按钮 - 美化设计 */
.pc-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 18px;
  color: #666;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.pc-close-btn:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 详细内容样式 - 优化垂直布局 */
.pc-details-content {
  flex: 1;
  overflow: hidden; /* 完全移除滚动 */
  display: flex;
  flex-direction: column;
}

.pc-details-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 25px 0;
  padding-bottom: 20px;
  border-bottom: 3px solid #e8f4fd;
  flex-shrink: 0;
  position: relative;
  line-height: 1.25;
}

.pc-details-content h3::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 2px;
}

.pc-details-content .bio {
  font-size: 17px;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 28px;
  flex-shrink: 0;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc, #e8f4fd);
  border-radius: 12px;
  border-left: 4px solid #667eea;
  font-weight: 500;
}

.pc-details-content .detail-item {
  display: flex;
  margin-bottom: 18px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #ffffff, #fafbfc);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pc-details-content .detail-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.pc-details-content .detail-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
  border-color: #667eea;
}

.pc-details-content .detail-item:hover::before {
  transform: scaleY(1);
}

.pc-details-content .detail-label {
  font-weight: 700;
  color: #2c3e50;
  min-width: 90px;
  margin-right: 18px;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.pc-details-content .detail-label::before {
  content: '▸';
  margin-right: 8px;
  color: #667eea;
  font-size: 12px;
}

.pc-details-content .detail-value {
  color: #4a5568;
  flex: 1;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
}

.pc-details-content .profile-links {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.pc-details-content .profile-link {
  padding: 16px 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  flex: 1;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pc-details-content .profile-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent
  );
  transition: left 0.6s ease;
}

.pc-details-content .profile-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.pc-details-content .profile-link:hover::before {
  left: 100%;
}

/* 联系按钮样式 */
.pc-details-content .profile-contact {
  margin-top: 18px;
  text-align: center;
  flex-shrink: 0;
}

.pc-details-content .contact-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #71C4FF 0%, #60496e 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(113, 196, 255, 0.4);
  width: 100%;
  font-size: 14px;
}

.pc-details-content .contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(113, 196, 255, 0.6);
  background: linear-gradient(135deg, #8ad0ff 0%, #7a5a8a 100%);
}

.pc-details-content .contact-btn:active {
  transform: translateY(0);
}

/* 矩形布局方案 - 紧凑网格布局 */
.pc-details-panel.compact-layout {
  height: auto;
  max-height: 420px;
  padding: 18px;
}

.pc-details-panel.compact-layout .pc-details-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  overflow: visible;
}

.pc-details-panel.compact-layout .pc-details-content h3 {
  grid-column: 1 / -1;
  font-size: 18px;
  margin-bottom: 12px;
}

.pc-details-panel.compact-layout .pc-details-content .bio {
  grid-column: 1 / -1;
  font-size: 13px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.pc-details-panel.compact-layout .pc-details-content .detail-item {
  margin-bottom: 8px;
  padding: 8px 10px;
  flex-direction: column;
  gap: 4px;
}

.pc-details-panel.compact-layout .pc-details-content .detail-label {
  min-width: auto;
  margin-right: 0;
  font-size: 12px;
  font-weight: 700;
}

.pc-details-panel.compact-layout .pc-details-content .detail-value {
  font-size: 12px;
}

.pc-details-panel.compact-layout .pc-details-content .profile-links {
  grid-column: 1 / -1;
  margin-top: 12px;
  gap: 10px;
}

.pc-details-panel.compact-layout .pc-details-content .profile-link {
  padding: 8px 14px;
  font-size: 12px;
}

/* 媒体查询：根据屏幕高度和宽度调整布局 */
@media (max-height: 700px), (max-width: 1200px) {
  .pc-details-panel {
    max-height: 400px;
    padding: 18px;
  }
  
  .pc-details-panel.compact-layout {
    max-height: 360px;
    padding: 15px;
  }
}

@media (max-height: 600px) {
  .pc-details-panel {
    max-height: 350px;
    padding: 15px;
  }
  
  .pc-details-panel.compact-layout {
    max-height: 320px;
  }
}

/* 独立的信息栏卡片组件 */
.pc-info-card {
  width: 100%;
  max-width: 460px;
  margin: 80px auto 0;
  padding: 0;
  position: relative;
  z-index: 15;
  text-align: center;
}

.pc-info-card-inner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.pc-info-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(102, 126, 234, 0.3), 
    transparent
  );
}

.pc-info-card-inner:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pc-info-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pc-info-details {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.pc-info-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(102, 126, 234, 0.2);
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pc-info-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.pc-info-text {
  text-align: left;
  flex: 1;
}

.pc-info-handle {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  line-height: 1.3;
}

.pc-info-status {
  font-size: 15px;
  color: #7f8c8d;
  margin: 4px 0 0 0;
  line-height: 1.5;
}

.pc-info-contact {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.pc-info-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent
  );
  transition: left 0.6s ease;
}

.pc-info-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.pc-info-contact:hover::before {
  left: 100%;
}

.pc-info-contact:active {
  transform: translateY(0);
}

/* 背景光晕效果 */
.pc-behind {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--pc-pointer-x) var(--pc-pointer-y),
    var(--pc-behind-glow-color) 0%,
    transparent var(--pc-behind-glow-size)
  );
  filter: blur(50px) saturate(1.1);
  opacity: calc(0.8 * var(--pc-card-opacity));
  transition: opacity 200ms ease;
}

.pc-card-wrapper:hover,
.pc-card-wrapper.active {
  --pc-card-opacity: 1;
}

/* 主卡片样式 */
.pc-card {
  height: 80svh;
  max-height: 540px;
  display: grid;
  aspect-ratio: 0.718;
  border-radius: var(--pc-card-radius);
  position: relative;
  background-blend-mode: color-dodge, normal, normal, normal;
  animation: pc-glow-bg 12s linear infinite;
  box-shadow: rgba(0, 0, 0, 0.8) calc((var(--pc-pointer-from-left) * 10px) - 3px)
    calc((var(--pc-pointer-from-top) * 20px) - 6px) 20px -5px;
  transition: transform 1s ease;
  transform: translateZ(0) rotateX(0deg) rotateY(0deg);
  background: rgba(0, 0, 0, 0.9);
  backface-visibility: hidden;
  overflow: hidden;
}

.pc-card:hover,
.pc-card.active {
  transition: none;
  transform: translateZ(0) rotateX(var(--pc-rotate-y)) rotateY(var(--pc-rotate-x));
}

.pc-card-shell.entering .pc-card {
  transition: transform 180ms ease-out;
}

.pc-card-shell {
  position: relative;
  z-index: 1;
}

.pc-card * {
  display: grid;
  grid-area: 1/-1;
  border-radius: var(--pc-card-radius);
  pointer-events: none;
}

.pc-inside {
  inset: 0;
  position: absolute;
  background-image: var(--pc-inner-gradient);
  background-color: rgba(0, 0, 0, 0.9);
  transform: none;
}

/* 闪光效果 */
.pc-shine {
  mask-image: var(--pc-icon);
  mask-mode: luminance;
  mask-repeat: repeat;
  mask-size: 150%;
  mask-position: top calc(200% - (var(--pc-background-y) * 5)) left calc(100% - var(--pc-background-x));
  transition: filter 0.8s ease;
  filter: brightness(0.66) contrast(1.33) saturate(0.33) opacity(0.5);
  animation: pc-holo-bg 18s linear infinite;
  animation-play-state: running;
  mix-blend-mode: color-dodge;
}

.pc-shine,
.pc-shine::after {
  --pc-space: 5%;
  --pc-angle: -45deg;
  transform: translate3d(0, 0, 1px);
  overflow: hidden;
  z-index: 3;
  background: transparent;
  background-size: cover;
  background-position: center;
  background-image:
    repeating-linear-gradient(
      0deg,
      var(--pc-sunpillar-clr-1) calc(var(--pc-space) * 1),
      var(--pc-sunpillar-clr-2) calc(var(--pc-space) * 2),
      var(--pc-sunpillar-clr-3) calc(var(--pc-space) * 3),
      var(--pc-sunpillar-clr-4) calc(var(--pc-space) * 4),
      var(--pc-sunpillar-clr-5) calc(var(--pc-space) * 5),
      var(--pc-sunpillar-clr-6) calc(var(--pc-space) * 6),
      var(--pc-sunpillar-clr-1) calc(var(--pc-space) * 7)
    ),
    repeating-linear-gradient(
      var(--pc-angle),
      #0e152e 0%,
      hsl(180, 10%, 60%) 3.8%,
      hsl(180, 29%, 66%) 4.5%,
      hsl(180, 10%, 60%) 5.2%,
      #0e152e 10%,
      #0e152e 12%
    ),
    radial-gradient(
      farthest-corner circle at var(--pc-pointer-x) var(--pc-pointer-y),
      hsla(0, 0%, 0%, 0.1) 12%,
      hsla(0, 0%, 0%, 0.15) 20%,
      hsla(0, 0%, 0%, 0.25) 120%
    );
  background-position:
    0 var(--pc-background-y),
    var(--pc-background-x) var(--pc-background-y),
    center;
  background-blend-mode: color, hard-light;
  background-size:
    500% 500%,
    300% 300%,
    200% 200%;
  background-repeat: repeat;
}

.pc-shine::before,
.pc-shine::after {
  content: '';
  background-position: center;
  background-size: cover;
  grid-area: 1/1;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.pc-card:hover .pc-shine,
.pc-card.active .pc-shine {
  filter: brightness(0.85) contrast(1.5) saturate(0.5);
  animation-play-state: paused;
}

.pc-card:hover .pc-shine::before,
.pc-card.active .pc-shine::before,
.pc-card:hover .pc-shine::after,
.pc-card.active .pc-shine::after {
  opacity: 1;
}

.pc-shine::before {
  background-image:
    linear-gradient(
      45deg,
      var(--pc-sunpillar-4),
      var(--pc-sunpillar-5),
      var(--pc-sunpillar-6),
      var(--pc-sunpillar-1),
      var(--pc-sunpillar-2),
      var(--pc-sunpillar-3)
    ),
    radial-gradient(circle at var(--pc-pointer-x) var(--pc-pointer-y), hsl(0, 0%, 70%) 0%, hsla(0, 0%, 30%, 0.2) 90%),
    var(--pc-grain);
  background-size:
    250% 250%,
    100% 100%,
    220px 220px;
  background-position:
    var(--pc-pointer-x) var(--pc-pointer-y),
    center,
    calc(var(--pc-pointer-x) * 0.01) calc(var(--pc-pointer-y) * 0.01);
  background-blend-mode: color-dodge;
  filter: brightness(calc(2 - var(--pc-pointer-from-center))) contrast(calc(var(--pc-pointer-from-center) + 2))
    saturate(calc(0.5 + var(--pc-pointer-from-center)));
  mix-blend-mode: luminosity;
}

.pc-shine::after {
  background-position:
    0 var(--pc-background-y),
    calc(var(--pc-background-x) * 0.4) calc(var(--pc-background-y) * 0.5),
    center;
  background-size:
    200% 300%,
    700% 700%,
    100% 100%;
  mix-blend-mode: difference;
  filter: brightness(0.8) contrast(1.5);
}

.pc-glare {
  transform: translate3d(0, 0, 1.1px);
  overflow: hidden;
  background-image: radial-gradient(
    farthest-corner circle at var(--pc-pointer-x) var(--pc-pointer-y),
    hsl(248, 25%, 80%) 12%,
    hsla(207, 40%, 30%, 0.8) 90%
  );
  mix-blend-mode: overlay;
  filter: brightness(0.8) contrast(1.2);
  z-index: 4;
}

/* 头像内容区域 */
.pc-avatar-content {
  mix-blend-mode: luminosity;
  overflow: visible;
  transform: translateZ(2);
  backface-visibility: hidden;
}

.pc-avatar-content .avatar {
  width: 100%;
  position: absolute;
  left: 50%;
  transform-origin: 50% 100%;
  transform: translateX(calc(-50% + (var(--pc-pointer-from-left) - 0.5) * 6px)) translateZ(0)
    scaleY(calc(1 + (var(--pc-pointer-from-top) - 0.5) * 0.02)) scaleX(calc(1 + (var(--pc-pointer-from-left) - 0.5) * 0.01));
  bottom: -1px;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 120ms ease-out;
}

.pc-avatar-content::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  backdrop-filter: none;
  pointer-events: none;
}

/* 用户信息区域 - 独立出来不受光影影响 */
.pc-user-info {
  position: absolute;
  --pc-ui-inset: 20px;
  --pc-ui-radius-bias: 6px;
  bottom: -60px; /* 移出卡片主体 */
  left: 0;
  right: 0;
  z-index: 10; /* 提高层级确保在最上层 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95); /* 更高的不透明度确保清晰可见 */
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 18px;
  pointer-events: auto;
  margin: 0 20px;
  color: #333; /* 深色文字确保可读性 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.pc-user-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-mini-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.pc-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.pc-user-text {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.pc-handle {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1;
}

.pc-status {
  font-size: 14px;
  color: #666;
  line-height: 1;
}

.pc-contact-btn {
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.8);
  pointer-events: auto;
}

.pc-contact-btn:hover {
  border-color: rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

.pc-content:not(.pc-avatar-content) {
  max-height: 100%;
  overflow: hidden;
  text-align: center;
  position: relative;
  transform: translate3d(
    calc(var(--pc-pointer-from-left) * -6px + 3px),
    calc(var(--pc-pointer-from-top) * -6px + 3px),
    0.1px
  );
  z-index: 5;
  mix-blend-mode: luminosity;
}

.pc-details {
  width: 100%;
  position: absolute;
  top: 3em;
  display: flex;
  flex-direction: column;
}

.pc-details h3 {
  font-weight: 600;
  margin: 0;
  font-size: min(5svh, 3em);
  margin: 0;
  background-image: linear-gradient(to bottom, #fff, #6f6fbe);
  background-size: 1em 1.5em;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.pc-details p {
  font-weight: 600;
  position: relative;
  top: -12px;
  white-space: nowrap;
  font-size: 16px;
  margin: 0 auto;
  width: min-content;
  background-image: linear-gradient(to bottom, #fff, #4a4ac0);
  background-size: 1em 1.5em;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

/* 动画关键帧 */
@keyframes pc-glow-bg {
  0% {
    --pc-bgrotate: 0deg;
  }
  100% {
    --pc-bgrotate: 360deg;
  }
}

@keyframes pc-holo-bg {
  0% {
    background-position:
      0 var(--pc-background-y),
      0 0,
      center;
  }
  100% {
    background-position:
      0 var(--pc-background-y),
      90% 90%,
      center;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  /* 移动端改为垂直布局，卡片在上方，详情在下方 */
  .pc-card-wrapper {
    perspective: none;
    transform: none !important;
    max-width: 100%;
    margin: 0;
    cursor: default;
  }

  .pc-card-wrapper.expanded {
    transform: none !important;
  }

  .pc-card {
    height: 50svh;
    max-height: 350px;
  }

  .pc-details-panel {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin-top: 20px;
    border-radius: 20px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: all 0.3s ease;
  }

  /* 移动端使用垂直滚动而非横向 */
  .pc-details-scroll-container {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-height: 400px;
    padding: 20px;
  }

  /* 重新设计移动端详情内容布局 */
  .pc-details-content {
    display: block !important;
    width: 100%;
    padding: 0;
  }

  .pc-details-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.25;
  }

  .pc-details-content .bio {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 22px;
    text-align: center;
    padding: 16px;
  }

  .pc-details-content .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
  }

  .pc-details-content .detail-label {
    font-weight: 600;
    color: #666;
    font-size: 15px;
  }

  .pc-details-content .detail-value {
    text-align: right;
    color: #333;
    font-size: 15px;
    flex: 1;
    margin-left: 15px;
    line-height: 1.6;
  }

  .pc-details-content .profile-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
  }

  .pc-details-content .profile-link {
    flex: 1;
    max-width: 150px;
    padding: 14px 18px;
    text-align: center;
    font-size: 15px;
  }

  .pc-details-content .profile-contact {
    margin-top: 20px;
  }

  .pc-details-content .contact-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
  }

  /* 关闭按钮在移动端隐藏，改为点击卡片收起 */
  .pc-close-btn {
    display: none;
  }

  /* 确保紧凑布局在移动端不影响新的垂直布局 */
  .pc-details-panel.compact-layout {
    height: auto !important;
    max-height: none !important;
    padding: 0 !important;
  }

  .pc-details-panel.compact-layout .pc-details-content {
    display: block !important;
    grid-template-columns: none !important;
    gap: normal !important;
    overflow: visible !important;
  }

  .pc-details-panel.compact-layout .pc-details-content h3 {
    grid-column: auto !important;
    font-size: 20px !important;
    text-align: center !important;
  }

  .pc-details-panel.compact-layout .pc-details-content .bio {
    grid-column: auto !important;
    font-size: 14px !important;
    text-align: center !important;
  }

  .pc-details-panel.compact-layout .pc-details-content .detail-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
    margin-bottom: 0 !important;
    flex-direction: row !important;
  }

  .pc-details-panel.compact-layout .pc-details-content .profile-links {
    grid-column: auto !important;
    display: flex !important;
    justify-content: center !important;
  }

  .pc-details-panel.compact-layout .pc-details-content .profile-link {
    flex: 1 !important;
    max-width: 140px !important;
  }

  .pc-details {
    top: 2em;
  }

  .pc-details h3 {
    font-size: min(4svh, 2.5em);
  }

  .pc-details p {
    font-size: 14px;
  }

  .pc-user-info {
    --pc-ui-inset: 15px;
    padding: 10px 12px;
    bottom: -50px;
    margin: 0 15px;
  }

  .pc-mini-avatar {
    width: 28px;
    height: 28px;
  }

  .pc-user-details {
    gap: 10px;
  }

  .pc-handle {
    font-size: 13px;
  }

  .pc-status {
    font-size: 10px;
  }

  .pc-contact-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .pc-card-wrapper.expanded {
    transform: translate3d(-80px, 0, 0.1px);
  }

  .pc-details-panel {
    right: -320px;
    width: 300px;
    padding: 18px;
    max-height: 450px;
  }

  .pc-details-panel.compact-layout {
    max-height: 400px;
    padding: 15px;
  }

  .pc-details-content h3 {
    font-size: 20px;
  }

  .pc-details-content .bio {
    font-size: 14px;
  }

  .pc-details-content .detail-item {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .pc-card {
    height: 60svh;
    max-height: 380px;
  }

  .pc-details {
    top: 1.5em;
  }

  .pc-details h3 {
    font-size: min(3.5svh, 2em);
  }

  .pc-details p {
    font-size: 12px;
    top: -8px;
  }

  .pc-user-info {
    --pc-ui-inset: 12px;
    padding: 8px 10px;
    bottom: -45px;
    margin: 0 10px;
  }

  .pc-mini-avatar {
    width: 24px;
    height: 24px;
  }

  .pc-user-details {
    gap: 8px;
  }

  .pc-handle {
    font-size: 12px;
  }

  .pc-status {
    font-size: 9px;
  }

  .pc-contact-btn {
    padding: 5px 10px;
    font-size: 10px;
    border-radius: 50px;
  }

  .pc-card-wrapper.expanded {
    transform: translate3d(-60px, 0, 0.1px);
  }

  .pc-details-panel {
    right: -280px;
    width: 260px;
    padding: 15px;
    max-height: 380px;
  }

  .pc-details-panel.compact-layout {
    max-height: 350px;
    padding: 12px;
  }

  .pc-details-content h3 {
    font-size: 18px;
  }

  .pc-details-content .profile-links {
    flex-direction: column;
  }

  /* 独立信息栏响应式 */
  .pc-info-card {
    max-width: 320px;
    margin: 60px auto 0;
  }

  .pc-info-card-inner {
    padding: 16px 20px;
  }

  .pc-info-content {
    gap: 16px;
  }

  .pc-info-details {
    gap: 12px;
  }

  .pc-info-avatar {
    width: 40px;
    height: 40px;
  }

  .pc-info-handle {
    font-size: 16px;
  }

  .pc-info-status {
    font-size: 14px;
  }

  .pc-info-contact {
    padding: 10px 16px;
    font-size: 12px;
  }
}

@media (max-width: 320px) {
  .pc-card {
    height: 55svh;
    max-height: 320px;
  }

  .pc-details h3 {
    font-size: min(3svh, 1.5em);
  }

  .pc-details p {
    font-size: 11px;
  }

  .pc-user-info {
    padding: 6px 8px;
  }

  .pc-mini-avatar {
    width: 20px;
    height: 20px;
  }

  .pc-user-details {
    gap: 6px;
  }

  .pc-handle {
    font-size: 11px;
  }

  .pc-status {
    font-size: 8px;
  }

  .pc-contact-btn {
    padding: 4px 8px;
    font-size: 9px;
    border-radius: 50px;
  }

  /* 独立信息栏响应式 */
  .pc-info-card {
    max-width: 280px;
    margin: 50px auto 0;
  }

  .pc-info-card-inner {
    padding: 14px 16px;
  }

  .pc-info-content {
    gap: 12px;
  }

  .pc-info-details {
    gap: 10px;
  }

  .pc-info-avatar {
    width: 36px;
    height: 36px;
  }

  .pc-info-handle {
    font-size: 13px;
  }

  .pc-info-status {
    font-size: 11px;
  }

  .pc-info-contact {
    padding: 8px 14px;
    font-size: 11px;
  }
}