/* ========== 联系我们页面专属样式 ========== */
:root {
  /* 页面专属变量：不与全局（style.css）冲突 */
  --text-dark: #111111;
  --text-gray: #555555;
  --light-gray: #f7f7f7;
  /* 页面级覆盖（勿删）：本页边框与页眉边框依赖此值 */
  --border-color: #e8e8e8;
  --transition: 0.3s ease;
}

/* 统一内容容器 */
.content-wrap {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 70px 0;
}

.sub-title {
  display: block;
  color: var(--main-color);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-align: center;
}

.section-title {
  font-size: 32px;
  color: var(--text-dark);
  margin-bottom: 40px;
  line-height: 1.3;
  text-align: center;
  font-weight: 700;
}

.main-btn {
  display: inline-block;
  background-color: var(--main-color);
  color: #fff;
  padding: 14px 30px;
  border: none;
  border-radius: var(--btn-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.main-btn:hover {
  background: var(--main-dark);
}

/* ========== Banner 横幅（改用 <img> 承载 LCP） ========== */
.page-banner {
  position: relative;
  overflow: hidden;
  height: 36vh;
  min-height: 280px;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  color: #fff;
}

/* 黑色遮罩层，让白色标题清晰可读 */
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
  pointer-events: none;
}

/* LCP 背景图（真实 <img>，浏览器可在 HTML 中立即发现） */
.page-banner .page-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* 文字内容必须浮在遮罩之上 */
.page-banner .content-wrap {
  position: relative;
  z-index: 2;
}

.banner-title {
  font-size: 36px;
  margin-bottom: 10px;
  font-weight: 700;
}

/* 联系主体区域 */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

/* 左侧联系信息卡片化 */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--main-color);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: var(--transition);
}
.contact-info-item:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.contact-icon {
  flex-shrink: 0;
  color: var(--main-color);
  margin-top: 2px;
}
.contact-icon i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}
.contact-text h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-weight: 600;
}
.contact-text p {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* 表单容器卡片化 */
.contact-form-box {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 地图区域 */
.map-area {
  background: var(--light-gray);
  padding: 0;
}
.map-area .content-wrap {
  padding: 0 20px;
}
.map-placeholder,
.map-area iframe {
  width: 100%;
  height: 420px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background: #e9e9e9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 18px;
  border: none;
}

/* 双列布局（≥1025px）：左侧卡片等分拉伸，与右侧表单盒底部对齐；
   单列布局不应用此规则，卡片保持自然高度 */
@media (min-width: 1025px) {
  .contact-info-item {
    flex: 1 1 auto;
  }
}

/* 移动端适配 */
@media (max-width: 1024px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .section-title {
    font-size: 28px;
  }
  .banner-title {
    font-size: 30px;
  }
}
@media (max-width: 600px) {
  .section-padding {
    padding: 50px 0;
  }
  .contact-info-item {
    flex-direction: column;
    gap: 8px;
  }
  .contact-form-box {
    padding: 18px;
  }
  .map-placeholder,
  .map-area iframe {
    height: 300px;
  }
}