/* 联系我们页面特定样式 */
.contact-hero {
  background-color: var(--primary-color);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  overflow: hidden;
}

.contact-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/pattern.png');
  opacity: 0.1;
  z-index: 1;
}

.contact-hero .container {
  position: relative;
  z-index: 2;
}

.contact-hero .hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-hero .hero-title {
  font-size: 3.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-hero .hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 300;
  opacity: 0.9;
}

.contact-hero .hero-description {
  margin-bottom: 30px;
}

.contact-hero .hero-description p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 10px;
  line-height: 1.6;
  opacity: 0.85;
}

.contact-hero .hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.contact-hero .btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.contact-hero .btn-primary {
  background-color: white;
  color: var(--primary-color);
  border: none;
}

.contact-hero .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-hero .btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.contact-hero .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* 新的布局样式 - 地图左侧，联系信息右侧 */
.contact-section {
  padding: 60px 0;
}

/* 新的弹性布局容器 */
.contact-flex-layout {
  display: flex;
  gap: 30px;
  min-height: 700px;
}

/* 地图容器样式 - 左侧 */
.map-container {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  height: 100%;
  min-height: 700px;
}

/* 联系内容区域 - 右侧 */
.contact-content {
  flex-direction: column;
  width: 430px;
  gap: 30px;
}

.contact-info-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 40px;
  flex: 0 0 auto;
}

.contact-title {
  position: relative;
  margin-bottom: 20px;
  font-size: 2rem;
  color: var(--text-color);
}

.contact-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.contact-description {
  color: #909399;
  font-size: 14px;
  margin-bottom: 10px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(22, 93, 255, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-text h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--text-color);
}

.contact-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
}

.contact-social {
  margin-top: 40px;
}

.contact-social h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f5f7fa;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s;
}

.social-icons a:hover {
  background-color: #e7eeff;
  transform: translateY(-3px);
}

.contact-form-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 40px;
  flex: 1 1 auto;
}

.form-group {
  display: flex;
  align-items: baseline;
  width: 100%;
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-right: 8px;
  font-weight: 500;
  width: 40px;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 8px 15px;
  border: 1px solid #e0e6ed;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
  outline: none;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 500;
}

/* 确保百度地图容器正确显示 */
#baiduMap {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  z-index: 1 !important; /* 确保地图在页面堆叠顺序中可见 */
  background-color: #f5f5f5 !important; /* 在地图加载前显示背景色 */
}

/* 地图加载中提示样式 */
.map-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(245, 245, 245, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.map-loading i {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.map-loading p {
  font-size: 16px;
  color: var(--text-color);
}

/* 静态备用地图样式 */
.static-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  overflow: hidden;
  border-radius: 10px;
}

.static-map img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.static-map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.static-map-overlay p {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-color);
}

.static-map-overlay .btn {
  font-size: 14px;
}

/* 表单提交成功样式 */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success i {
  font-size: 60px;
  color: #4caf50;
  margin-bottom: 20px;
}

.form-success h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-color);
}

.form-success p {
  font-size: 16px;
  color: var(--text-light);
}

/* 响应式样式 */
@media (max-width: 992px) {
  .contact-flex-layout {
    flex-direction: column;
    min-height: auto;
  }

  .map-container {
    width: 100%;
    min-height: 450px;
    height: 450px;
  }

  .contact-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 100px 0 40px;
  }

  .contact-hero h1 {
    font-size: 2rem !important;
  }

  .contact-title {
    font-size: 1.5rem;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 25px;
  }

  .map-container {
    min-height: 300px;
    height: 300px;
  }

  .contact-flex-layout {
    flex-direction: column;
    gap: 20px;
    min-height: auto;
  }

  .contact-content {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 65px 0 15px;
  }

  .contact-section {
    padding: 10px 0;
  }

  .contact-hero h1 {
    font-size: 1.6rem !important;
  }

  .contact-hero p {
    font-size: 0.9rem;
  }

  .contact-title {
    font-size: 1.3rem;
  }

  .map-container {
    min-height: 280px;
    height: 220px;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 15px;
  }

  .form-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-group label {
    width: 100%;
    margin-bottom: 5px;
    font-size: 14px;
  }

  .form-control {
    padding: 6px 10px;
    font-size: 14px;
  }

  textarea.form-control {
    min-height: 100px;
  }

  .submit-btn {
    padding: 8px;
    font-size: 14px;
  }

  .social-icons a {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .form-success {
    padding: 20px 10px;
  }

  .form-success i {
    font-size: 40px;
    margin-bottom: 15px;
  }

  .form-success h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .form-success p {
    font-size: 14px;
  }
}

.contact-info {
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-item i {
  font-size: 20px;
  color: #007bff;
  margin-right: 15px;
  margin-top: 3px;
}

.info-content {
  flex: 1;
}

.info-content h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.info-content p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

.contact-social {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.contact-social h3 {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: #333;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #007bff;
  color: #fff;
  transform: translateY(-3px);
}

.social-icons i {
  font-size: 18px;
}
