/* =============================================================
 * contact.css —— 联系我们页专属样式
 * 说明：
 *   1. Banner 与必要元素页一致（9 SVG 文字图 + 背景图）。
 *   2. 标题区：中文"联系我们" + 英文"CONTACT US" + 分隔线。
 *   3. 内容区：左侧高德地图 + 右侧联系信息卡片。
 *   4. 整体配色与全站一致：主色 #BE000A、衬线字体 Noto Serif SC。
 * ============================================================= */

/* ---------- 1. 整页容器 ---------- */
.page-contact {
  width: 100%;
  background: #fff;
  position: relative;
}

/* =============================================================
 * 区块一：Banner（与必要元素页相同）
 * ============================================================= */
.contact-banner {
  position: relative;
  width: 100%;
  height: 550px;
  background: url('../image/banner-bg.png') center/cover no-repeat;
  overflow: hidden;
}

/* 9 个 SVG 文字图 */
.contact-banner .banner-words {
  position: absolute;
  left: 50%;
  top: 32%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 57px;                        /* 组间距 */
}
.contact-banner .word-group {
  display: flex;
  align-items: center;
  gap: 10px;                        /* 组内字间距 */
}
.contact-banner .word-item {
  height: 120px;
  max-width: 120px;
  width: auto;
  display: block;
}

/* =============================================================
 * 区块二：标题 + 地图 + 联系信息
 * ============================================================= */
.contact-main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px 100px;
}

/* ---------- 标题区 ---------- */
.contact-title-block {
  text-align: center;
  margin-bottom: 60px;
}
.contact-title-cn {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 900;                 /* Black */
  color: #000;
  margin: 0;
  line-height: 1.2;
    letter-spacing: 3px;
}
.contact-title-en {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-accent);       /* 红色强调色 #B81C22 */
  letter-spacing: 6px;
  margin: 8px 0 0;
}
.contact-title-line {
  display: block;
  width: 72px;
  height: 3px;
  border-radius: 12px;
  background: var(--color-accent);
  margin: 24px auto 0;
}

/* ---------- 内容区：左地图 + 右信息 ---------- */
.contact-content {
  display: flex;
  align-items: stretch;
  gap: 40px;
}

/* 左侧：地图容器 */
.contact-map-wrap {
  flex: 1 1 55%;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}
.contact-map {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

/* 右侧：联系信息 */
.contact-info {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  padding: 20px 0;
}

/* 单条信息 */
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.info-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.info-item:hover .info-icon {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(190, 0, 10, .35);
}
.info-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}
.info-label {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-gray);
}
.info-value {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #000;
  line-height: 1.5;
}
.info-value:hover {
  color: var(--color-accent);
}

/* ---------- 地图自定义标记 ---------- */
.contact-marker .marker-pin {
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  background: var(--color-primary);
  transform: rotate(-45deg);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
/* Leaflet 弹窗样式微调 */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}
.leaflet-popup-content {
  margin: 12px 16px;
}

/* =============================================================
 * 入场动效
 * ============================================================= */
.wow { visibility: hidden; }

/* =============================================================
 * 响应式
 * ============================================================= */
@media (max-width: 1200px) {
  .contact-banner { height: 700px; }
  .contact-banner .banner-words { top: 230px; gap: 40px; }
  .contact-banner .word-item { height: 90px; }

  .contact-main { padding: 60px 24px 80px; }
  .contact-title-cn { font-size: 40px; }
}

@media (max-width: 768px) {
  .contact-banner { height: 300px; }
  .contact-banner .banner-words { top: 70px; gap: 18px; flex-direction: column; }
  .contact-banner .word-group { gap: 4px; }
  .contact-banner .word-item { height: 42px; max-width: 50px; }

  .contact-main { padding: 40px 16px 60px; }
  .contact-title-block { margin-bottom: 36px; }
  .contact-title-cn { font-size: 30px; }
  .contact-title-en { font-size: 16px; letter-spacing: 4px; }
  .contact-title-line { width: 56px; margin-top: 18px; }

  /* 移动端改为上下堆叠：地图在上、信息在下 */
  .contact-content {
    flex-direction: column;
    gap: 28px;
  }
  .contact-map-wrap { flex: none; min-height: 280px; }
  .contact-map-wrap, .contact-map { height: 280px; min-height: 280px; }
  .contact-info { flex: none; gap: 22px; padding: 0; }
  .info-item { gap: 14px; }
  .info-icon { width: 44px; height: 44px; font-size: 18px; }
  .info-text { gap: 4px; }
  .info-label { font-size: 13px; }
  .info-value { font-size: 16px; line-height: 1.45; }
}

@media (max-width: 480px) {
  .contact-banner { height: 250px; }
  .contact-banner .banner-words { top: 52px; gap: 8px; flex-direction: column; }
  .contact-banner .word-group { gap: 3px; }
  .contact-banner .word-item { height: 34px; max-width: 42px; }

  .contact-main { padding: 32px 14px 48px; }
  .contact-title-cn { font-size: 26px; }
  .contact-title-en { font-size: 14px; letter-spacing: 3px; }
  .contact-map-wrap, .contact-map { height: 240px; min-height: 240px; }
  .info-icon { width: 40px; height: 40px; font-size: 16px; }
  .info-value { font-size: 15px; }
}

@media (max-width: 768px) {
  .contact-banner { height: 250px !important; }
  .contact-banner .banner-words { top: 52px !important; left: 50% !important; right: auto !important; flex-direction: column !important; gap: 8px !important; transform: translateX(-50%) !important; }
  .contact-banner .word-group { gap: 3px !important; }
  .contact-banner .word-item { width: auto !important; height: 34px !important; max-width: 42px !important; }
  .contact-map-wrap, .contact-map { height: 240px !important; min-height: 240px !important; }
}
