/* ========================================
   聯繫頁面 - 電競霓虹風格
   ======================================== */

:root {
  --neon-cyan: #00d4ff;
  --neon-purple: #ff00ff;
  --neon-green: #00ff88;
  --gold: #ffd700;
  --white: #ffffff;
  --light-gray: #b0b0c0;
  --deep-blue: #0a0a1a;
  --dark-blue: #0d0d20;
  --mid-blue: #1a1a3a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  background: var(--deep-blue);
  color: var(--white);
  min-height: 100vh;
  overflow: hidden;
}

.contact-wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 255, 136, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, #080812 0%, #0a0a1a 50%, #0d0d20 100%);
  position: relative;
  padding: 20px;
}

/* 网格背景 */
.contact-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* 扫描线 */
.contact-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.02) 3px,
    rgba(0, 0, 0, 0.02) 4px
  );
  pointer-events: none;
  z-index: 100;
}

/* 返回链接 */
.back-link {
  position: absolute;
  top: 20px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--neon-cyan);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  padding: 10px 18px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 25px;
  z-index: 10;
}

.back-link:hover {
  color: var(--white);
  background: rgba(0, 212, 255, 0.3);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  transform: translateX(-5px);
}

/* 容器 */
.contact-container {
  width: 100%;
  max-width: 480px;
  animation: fadeInUp 0.6s ease;
  position: relative;
  z-index: 1;
}

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

/* 卡片 */
.contact-card {
  background: linear-gradient(180deg, 
    rgba(26, 26, 58, 0.9), 
    rgba(13, 13, 32, 0.95)
  );
  border: 2px solid rgba(0, 212, 255, 0.4);
  border-radius: 24px;
  padding: 45px 35px;
  backdrop-filter: blur(15px);
  box-shadow: 
    0 0 50px rgba(0, 212, 255, 0.2),
    0 0 100px rgba(255, 0, 255, 0.1),
    0 25px 80px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 212, 255, 0.1), 
    transparent
  );
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 微信图标区 */
.wechat-section {
  text-align: center;
  margin-bottom: 30px;
}

.wechat-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, #07c160, #00a851);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 40px rgba(7, 193, 96, 0.5),
    0 0 80px rgba(7, 193, 96, 0.2);
  animation: iconPulse 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.wechat-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  animation: iconShine 3s ease-in-out infinite;
}

@keyframes iconShine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(7, 193, 96, 0.5); }
  50% { box-shadow: 0 0 60px rgba(7, 193, 96, 0.7); }
}

.wechat-icon svg {
  position: relative;
  z-index: 1;
}

.wechat-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
  letter-spacing: 3px;
}

.wechat-desc {
  font-size: 14px;
  color: var(--light-gray);
  line-height: 1.6;
}

/* 二维码区域 */
.qrcode-section {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.qrcode-placeholder {
  padding: 35px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.qrcode-placeholder::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 20px;
  z-index: -1;
}

.qrcode-hint {
  margin-top: 18px;
  font-size: 12px;
  color: #666;
}

/* 链接设置 */
.link-section {
  margin-bottom: 30px;
}

.link-label {
  display: block;
  font-size: 14px;
  color: var(--neon-cyan);
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: 1px;
}

.link-input-wrapper {
  display: flex;
  gap: 12px;
}

.link-input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 10px;
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
}

.link-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.link-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.save-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  border: none;
  border-radius: 10px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.save-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.5);
}

.link-hint {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* 添加按钮 */
.action-section {
  margin-bottom: 30px;
}

.add-wechat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 18px 30px;
  background: linear-gradient(135deg, #07c160, #05a050);
  border: 2px solid var(--neon-green);
  border-radius: 14px;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 
    0 0 30px rgba(7, 193, 96, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.add-wechat-btn::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.5s ease;
}

.add-wechat-btn:hover::before {
  left: 100%;
}

.add-wechat-btn:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 0 50px rgba(7, 193, 96, 0.6),
    0 15px 40px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

/* 品牌底部 */
.brand-footer {
  text-align: center;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.brand-footer span {
  font-size: 13px;
  color: var(--neon-cyan);
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* 响应式 */
@media (max-width: 520px) {
  .contact-card {
    padding: 35px 22px;
  }
  
  .wechat-icon {
    width: 90px;
    height: 90px;
  }
  
  .wechat-icon svg {
    width: 60px;
    height: 60px;
  }
  
  .wechat-title {
    font-size: 22px;
  }
  
  .wechat-desc {
    font-size: 13px;
  }
  
  .link-input-wrapper {
    flex-direction: column;
  }
  
  .save-btn {
    width: 100%;
  }
  
  .add-wechat-btn {
    font-size: 16px;
    padding: 16px 22px;
  }
  
  .back-link {
    top: 15px;
    left: 15px;
    font-size: 12px;
    padding: 8px 14px;
  }
  
  .qrcode-placeholder {
    padding: 25px;
  }
}
