/* ========================================
   联系页样式 v2
   ======================================== */

/* --- 联系页主体居中 --- */
.centerBody {
  min-height: 100vh;
  padding-top: 0;
  justify-content: center;
  gap: 0;
}

/* --- 背景光晕装饰 --- */
.contact-glow-bg {
  position: fixed;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.1) 0%, rgba(25,200,255,0.05) 40%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  animation: glowPulse 5s ease-in-out infinite;
  z-index: 0;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.12); }
}

/* --- 联系卡片 --- */
.contact-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-2xl) var(--space-2xl);
  display: inline-block;
  margin-top: var(--space-lg);
  min-width: 360px;
  max-width: 460px;
  backdrop-filter: var(--blur-card);
  -webkit-backdrop-filter: var(--blur-card);
  box-shadow: var(--shadow-card), 0 0 40px rgba(99, 102, 241, 0.08);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-slow);
  animation: cardIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
  z-index: 1;

  /* 动态渐变边框（伪元素实现） */
  border: 1px solid transparent;
  background-clip: padding-box;
}

/* 动态光晕边框效果 */
.contact-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.5),
    rgba(25, 200, 255, 0.2),
    rgba(124, 58, 237, 0.4),
    rgba(25, 200, 255, 0.3)
  );
  background-size: 300% 300%;
  animation: borderGlow 6s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes borderGlow {
  0%   { background-position: 0% 50%;   opacity: 0.5; }
  50%  { background-position: 100% 50%; opacity: 1;   }
  100% { background-position: 0% 50%;   opacity: 0.5; }
}

/* 卡片顶部彩虹细线 */
.contact-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  background-size: 200% 100%;
  animation: textShimmer 3s ease-in-out infinite;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.7);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.55), 0 0 48px rgba(99, 102, 241, 0.2);
}

/* --- 图标区 --- */
.contact-icon {
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.contact-icon svg {
  filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.5)) drop-shadow(0 0 32px rgba(25, 200, 255, 0.2));
  transition: filter var(--transition-slow);
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(99,102,241,0.4)) drop-shadow(0 0 24px rgba(25,200,255,0.15)); }
  50%       { filter: drop-shadow(0 0 22px rgba(99,102,241,0.7)) drop-shadow(0 0 40px rgba(25,200,255,0.3)); }
}

.contact-card:hover .contact-icon svg {
  filter: drop-shadow(0 0 28px rgba(99, 102, 241, 0.8)) drop-shadow(0 0 48px rgba(25, 200, 255, 0.4));
}

/* --- 标题 --- */
.contact-title {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 6px;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

/* --- 描述 --- */
.contact-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* --- 联系按钮 --- */
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 44px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  background-size: 200% 100%;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-btn);
  min-height: 48px;
  min-width: 160px;
  overflow: hidden;
}

/* 按钮光泽扫光 */
.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.contact-btn:hover::before {
  left: 150%;
}

.contact-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6);
  filter: brightness(1.08);
}

.contact-btn:active {
  transform: translateY(-1px);
}

/* 图标 */
.btn-icon {
  display: flex;
  align-items: center;
}

/* --- 链接展示 --- */
.contact-link {
  margin-top: var(--space-md);
  color: var(--text-muted);
  font-size: 11px;
  word-break: break-all;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.contact-link:hover {
  opacity: 1;
}

/* ==============================
   响应式
   ============================== */
@media screen and (max-width: 950px) {
  .contact-card {
    min-width: 88%;
    max-width: 92%;
    padding: var(--space-2xl) var(--space-lg);
  }
}
