/* =========================================================
   联系我们 · 页面样式（复用 style.css 的设计令牌）

   尺寸依据原站参考图实测（1277×833 画布，1:1 还原）：
     顶部大图 光伏电站实景，center 72% 取景
     大图下沿 → 中文标题墨迹 105px（按反馈拉开）
     中文标题 32px/700/#000        英文标题 32px/700/品牌青
     双行标题间距 21px             标题墨迹 → 卡片顶 221.6px
     卡片 669×437 / 286×437        卡片间距 38px
     左卡内地图 619×393            左卡内边距 24px / 21px
     小标题 13px/700/#000          正文 12px/#333
     分隔线 1px #e0e0de            图标 20~28px 青绿线性
   ========================================================= */

/* ---------- 1. 顶部大图 ---------- */
.contact-banner {
  position: relative;
  height: clamp(260px, 30vw, 400px);
  overflow: hidden;
}
.contact-banner__media {
  position: absolute; inset: 0;
  overflow: hidden;
}
/* 原图 1920×960（2:1），按 center 72% 竖向取景，使地平线落在版位上方 1/4 处 */
.contact-banner__img {
  position: absolute; inset: 0;
  background: #9fb6c4 url("../img/contact-banner.jpg") center 72% / cover no-repeat;
  animation: contactDrift 26s ease-in-out infinite alternate;
}
@keyframes contactDrift {
  from { transform: scale(1.01); }
  to   { transform: scale(1.03); }
}

/* ---------- 2. 标题区 ---------- */
/* 大图下沿 → 标题墨迹 105px（与顶部大图拉开距离） */
.contact-head {
  padding: 100px 0 15px;
  text-align: center;
}
.contact-head__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  color: #000;
}
.contact-head__en {
  margin: 12px 0 0;
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.1;
  color: var(--teal);
}

/* ---------- 3. 留白带（参考图中标题与卡片之间的净空） ---------- */
/* 标题墨迹 → 卡片顶 221.6px（原 353.6，净空收紧约 40%） */
.contact-gap { height: 100px; }

/* ---------- 4. 卡片区 ---------- */
.contact-body { padding: 26px 0 96px; }

.contact-grid {
  max-width: 993px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 669px 286px;
  gap: 38px;
  align-items: stretch;
}

.contact-card {
  background: #fff;
  border: 1px solid #efefef;
  box-shadow: 0 2px 12px rgba(20, 32, 31, .05);
}

/* 左卡：离线地图 */
.contact-card--map { padding: 21px 24px; }

.contact-map { margin: 0; }
.contact-map img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 619 / 393;
  object-fit: cover;
  background: #65abd0;
}

/* 右卡：联系方式 */
.contact-card--info {
  padding: 21px 20px 21px 19px;
  border-radius: 4px;
}

.contact-block__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  line-height: 1.6;
}
.contact-block__rule {
  height: 1px;
  margin: 5px 0 13px;
  background: #e0e0de;
}

.contact-block + .contact-block { margin-top: 18px; }

.contact-row {
  display: flex;
  align-items: center;
}
.contact-row + .contact-row { margin-top: 16px; }

.contact-ico {
  flex: 0 0 32px;
  width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
.contact-ico svg { display: block; }

.contact-row__colon {
  flex: 0 0 auto;
  margin: 0 8px 0 11px;
  font-size: 12px;
  color: #9aa5a3;
  line-height: 1;
}

.contact-row__value {
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  word-break: break-all;
}
a.contact-row__value { transition: color .25s var(--ease); }
a.contact-row__value:hover { color: var(--teal); }

/* ---------- 5. 响应式 ---------- */
@media (max-width: 1080px) {
  .contact-grid {
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }
  .contact-card--map { padding: 16px; }
}

@media (max-width: 860px) {
  .contact-banner { height: 260px; }
  .contact-gap { height: 72px; }
  .contact-body { padding: 20px 0 64px; }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .contact-card--info { padding: 24px 20px 28px; }
}

@media (max-width: 560px) {
  .contact-banner { height: 200px; }
  .contact-head { padding: 48px 0 12px; }
  .contact-head__title { font-size: 26px; }
  .contact-head__en { font-size: 26px; margin-top: 8px; }
  .contact-row + .contact-row { margin-top: 12px; }
}

/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
  .contact-banner__img { animation: none; }
  .contact-card { box-shadow: 0 2px 12px rgba(20, 32, 31, .05); }
}
