/* 联系我们页面专用样式 */

/* 联系页面主横幅调整 */
.contact-hero {
  min-height: 60vh;
  padding: 120px 0 60px;
}

.contact-hero .hero-content {
  display: block;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  background-image: url("../images/cq.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-attachment: local;
  padding: 40px 20px;
}

.contact-hero .hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 6px rgba(255, 255, 255, 1),
    0 0 15px rgba(255, 255, 255, 0.9), -2px -2px 6px rgba(255, 255, 255, 0.8);
}

.contact-hero .hero-text p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  color: #2c3e50;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 1),
    0 0 12px rgba(255, 255, 255, 0.8), -1px -1px 4px rgba(255, 255, 255, 0.7);
}

/* 联系信息区样式 */
.contact-section {
  padding: 80px 0;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.contact-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border: 2px solid transparent;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 107, 107, 0.3);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.contact-details {
  flex: 1;
}

.contact-details h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.contact-details p {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
}

.contact-details a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #ff6b6b;
}

.whatsapp-qr img {
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.whatsapp-qr img:hover {
  border-color: #ff6b6b;
  transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-hero .hero-text h1 {
    font-size: 2.5rem;
  }

  .contact-hero .hero-text p {
    font-size: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-card {
    padding: 20px;
    gap: 15px;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .contact-details h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 100px 0 40px;
  }

  .contact-hero .hero-text h1 {
    font-size: 2rem;
  }

  .contact-section {
    padding: 60px 0;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .contact-icon {
    margin: 0 auto;
  }
}

/* 卡片加载动画 */
.contact-card {
  opacity: 0;
  animation: fadeInCard 0.6s ease forwards;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 为不同的卡片添加延迟动画 */
.contact-card:nth-child(1) {
  animation-delay: 0.1s;
}
.contact-card:nth-child(2) {
  animation-delay: 0.2s;
}
.contact-card:nth-child(3) {
  animation-delay: 0.3s;
}
.contact-card:nth-child(4) {
  animation-delay: 0.4s;
}
.contact-card:nth-child(5) {
  animation-delay: 0.5s;
}
.contact-card:nth-child(6) {
  animation-delay: 0.6s;
}
.contact-card:nth-child(7) {
  animation-delay: 0.7s;
}
