/* 联系我们页面样式 */

/* 横幅区域 */
.contact-banner {
  position: relative;
  margin-top: 72px;
  background: linear-gradient(135deg, #1e5ba8 0%, #2d7bce 100%);
}

.contact-banner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  opacity: 0.3;
}

.contact-banner .banner-text {
  position: absolute;
  left: 10%;
  bottom: 20%;
  color: #ffffff;
  background: rgba(10, 36, 99, 0.4);
  padding: 1.5rem 2.5rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.contact-banner .banner-text h1 {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.contact-banner .banner-text p {
  font-size: 16px;
  margin: 0;
  opacity: 0.95;
}

.contact-banner .banner-text .line {
  width: 48px;
  height: 3px;
  background: #ffc000;
  margin-bottom: 12px;
}

/* 主要内容区域 */
.contact-section {
  background-color: #f5f7fa;
  padding: 64px 0;
}

.contact-section .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 联系信息网格 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

/* 联系卡片 */
.contact-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.contact-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #2557a7 0%, #3a7bc8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.contact-icon i {
  font-size: 32px;
  color: #ffffff;
}

.contact-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #303133;
  margin: 0 0 16px 0;
}

.contact-card p {
  font-size: 15px;
  color: #606266;
  margin: 8px 0;
  line-height: 1.6;
}

.contact-card .contact-en {
  font-size: 13px;
  color: #909399;
  margin-top: 12px;
}

/* 地图区域 */
.map-section {
  margin-bottom: 64px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  color: #303133;
  text-align: center;
  margin: 0 0 32px 0;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #2557a7 0%, #3a7bc8 100%);
  border-radius: 2px;
}

.map-container {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.map-placeholder {
  width: 100%;
  height: 480px;
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f5ff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #606266;
}

.map-placeholder i {
  font-size: 64px;
  color: #2557a7;
  margin-bottom: 16px;
}

.map-placeholder p {
  font-size: 16px;
  color: #606266;
  margin: 0;
}

/* 快速链接 */
.quick-links {
  margin-bottom: 32px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.link-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #303133;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.link-card:hover {
  border-color: #2557a7;
  box-shadow: 0 4px 16px rgba(37, 87, 167, 0.15);
  transform: translateX(4px);
  color: #2557a7;
}

.link-card i {
  font-size: 24px;
  color: #2557a7;
  transition: transform 0.3s ease;
}

.link-card:hover i {
  transform: rotate(45deg);
}

.link-card span {
  font-size: 16px;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-placeholder {
    height: 400px;
  }

  .section-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .contact-banner {
    margin-top: 60px;
  }

  .contact-banner img {
    height: 220px;
  }

  .contact-banner .banner-text {
    left: 5%;
    right: 5%;
    bottom: 15%;
    padding: 1.2rem 1.8rem;
  }

  .contact-banner .banner-text h1 {
    font-size: 26px;
  }

  .contact-banner .banner-text p {
    font-size: 14px;
  }

  .contact-section {
    padding: 48px 0;
  }

  .contact-grid {
    margin-bottom: 48px;
  }

  .map-section {
    margin-bottom: 48px;
  }

  .map-placeholder {
    height: 350px;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .contact-icon {
    width: 64px;
    height: 64px;
  }

  .contact-icon i {
    font-size: 28px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 24px;
  }
}

@media (max-width: 576px) {
  .contact-banner img {
    height: 180px;
  }

  .contact-banner .banner-text {
    left: 5%;
    right: 5%;
    bottom: 10%;
    padding: 1rem 1.5rem;
  }

  .contact-banner .banner-text h1 {
    font-size: 22px;
  }

  .contact-banner .banner-text p {
    font-size: 13px;
  }

  .contact-section {
    padding: 40px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }

  .links-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .map-section {
    margin-bottom: 40px;
  }

  .map-placeholder {
    height: 300px;
  }

  .map-placeholder i {
    font-size: 48px;
  }

  .map-placeholder p {
    font-size: 14px;
    padding: 0 20px;
    text-align: center;
  }

  .contact-card {
    padding: 28px 20px;
  }

  .contact-card h3 {
    font-size: 18px;
  }

  .contact-card p {
    font-size: 14px;
  }

  .section-title {
    font-size: 20px;
  }

  .link-card {
    padding: 20px 24px;
  }

  .link-card span {
    font-size: 15px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-card,
.link-card {
  animation: fadeInUp 0.6s ease-out;
}

.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;
}

