.contacts-section {
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
  padding: 24px;
  border: 2px solid var(--accent-alpha-30);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px var(--accent-alpha-10);
}

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

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-icon {
  font-size: 32px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact-card {
  background: linear-gradient(
    145deg,
    rgba(255, 242, 236, 0.52) 0%,
    rgba(255, 255, 255, 0.28) 48%,
    rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12) 100%
  );
  border: 1px solid rgba(245, 190, 175, 0.55);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow:
    0 4px 24px var(--warm-deep-alpha-08),
    0 1px 0 rgba(255, 232, 226, 0.62) inset;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(
    145deg,
    rgba(255, 228, 232, 0.62) 0%,
    rgba(255, 255, 255, 0.32) 48%,
    rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2) 100%
  );
  border-color: rgba(232, 170, 158, 0.72);
  box-shadow:
    0 14px 36px var(--warm-deep-alpha-14),
    0 1px 0 rgba(255, 236, 240, 0.68) inset;
}

.contact-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 236, 232, 0.55);
  border: 1px solid rgba(var(--accent-2-r), var(--accent-2-g), var(--accent-2-b), 0.42);
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow:
    0 3px 14px var(--warm-deep-alpha-08),
    0 1px 0 rgba(255, 255, 255, 0.55) inset;
  position: relative;
  overflow: hidden;
}

/* 图片图标样式 */
.contact-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Emoji 图标样式 */
.contact-icon-emoji {
  font-size: 28px;
  line-height: 1;
}

.contact-info {
  flex-grow: 1;
  min-width: 0;
}

.contact-label {
  font-size: 15px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 4px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.contact-value {
  font-size: 13px;
  color: #2d3748;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.contact-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.contact-button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.28);
  background: rgba(255, 238, 232, 0.42);
  color: var(--accent-link);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.contact-button:hover {
  background: linear-gradient(
    135deg,
    rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.88),
    rgba(var(--accent-2-r), var(--accent-2-g), var(--accent-2-b), 0.82)
  );
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: scale(1.1);
}

.contact-button:active {
  transform: scale(0.95);
}

.copy-toast {
  position: absolute;
  top: -36px;
  right: 20px;
  background: rgba(184, 77, 95, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px var(--warm-deep-alpha-32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: toastSlideIn 0.3s ease-out;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .contact-card {
    padding: 14px;
    border-radius: 12px;
    gap: 12px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 22px;
    border-radius: 8px;
  }

  .contact-icon-img {
    border-radius: 8px;
  }

  .contact-icon-emoji {
    font-size: 22px;
  }

  .contact-label {
    font-size: 14px;
  }

  .contact-value {
    font-size: 12px;
  }

  .contact-actions {
    gap: 6px;
  }

  .contact-button {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .copy-toast {
    right: 50%;
    transform: translateX(50%);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .contacts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
