/* ==========================================================
   pages/contact.css · 联系我们（获客咨询页）
   说明：所有新增选择器统一使用 .ct- / .cmap- 前缀，避免污染全局
   设计基调：留白充足、信息层级清晰、阴影克制、至少 2 个非纯白区块
   ========================================================== */

/* ---------------- 区块背景修饰（浅蓝灰 / 浅蓝渐变） ---------------- */
.section--soft { background: var(--bg-soft); }                 /* 联系方式卡片区 */
.section--mist { background: linear-gradient(180deg, var(--bg-mist) 0%, #f5f9ff 100%); } /* 地址导航区 */

/* Banner 略矮一些 */
.page-banner--contact { min-height: 260px; padding: 30px 0; }

/* ---------------- 模块二：联系方式卡片组 ---------------- */
.ct-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
.ct-card {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: all var(--dur-slow) var(--ease);
}
.ct-card:hover { transform: translateY(-8px); box-shadow: var(--sh-hover); border-bottom-color: var(--c-primary); }
.ct-card__icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--c-primary-light);
  color: var(--c-primary);
  display: grid;
  place-items: center;
}
.ct-card__icon svg { width: 30px; height: 30px; }
.ct-card__title { font-size: 17px; font-weight: 700; color: var(--t-sub); letter-spacing: 1px; }
.ct-card__main {
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.4;
  margin: 8px 0 10px;
  word-break: break-word;
}
.ct-card__main a { color: var(--c-primary); }
.ct-card__main--sm { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; }
/* 联系方式卡片内的微信二维码（轻量卡片：圆角 + 浅底 + 微妙阴影，居中） */
.ct-card__qr {
  display: flex;
  justify-content: center;
  margin: 8px 0 10px;
}
.ct-card__qr img {
  width: 150px;
  height: 150px;
  padding: 10px;
  background: var(--bg-gray);
  border-radius: var(--r-md);
  box-shadow: var(--sh-card);
}
.ct-card__desc { font-size: 13px; color: var(--t-weak); line-height: 1.7; min-height: 44px; }
.ct-card__action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
}
.ct-card__action .arrow { transition: transform var(--dur) var(--ease); }
.ct-card__action:hover .arrow { transform: translateX(4px); }

/* 复制地址按钮 */
.ct-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--c-primary);
  color: var(--c-primary);
  height: 38px;
  padding: 0 16px;
  margin-top: 12px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.ct-copy:hover { background: var(--c-primary); color: #fff; }
.ct-copy svg { width: 16px; height: 16px; }

/* ---------------- 模块三：在线咨询表单 ---------------- */
.ct-form-wrap {
  display: grid;
  grid-template-columns: 1.62fr 1fr;   /* 约 62% / 38% */
  gap: var(--sp-4);
  align-items: start;
}
.ct-form {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  padding: var(--sp-4);
}
.ct-form .form-control { height: 46px; }   /* 控件高度 46px */
.ct-form textarea.form-control { min-height: 120px; }
.ct-form .radio-pill:has(input:checked) {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  font-weight: 600;
}
.ct-form__submit { margin-top: 4px; }
.ct-form__note { margin-top: 14px; font-size: 12px; color: var(--t-weak); line-height: 1.7; }

.ct-aside {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  padding: var(--sp-4) var(--sp-3);
  text-align: center;
}
.ct-qr img {
  width: 180px; height: 180px;
  margin: 0 auto 16px;
  padding: 10px;
  border: 1px solid #eef1f6;
  border-radius: var(--r-lg);
  background: #fff;
}
.ct-qr__title { font-size: 18px; margin-bottom: 8px; }
.ct-qr__desc { font-size: 14px; color: var(--t-sub); line-height: 1.7; margin-bottom: 22px; }
.ct-aside__btn { margin-bottom: 12px; }
.ct-promise {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed #e8edf5;
}

/* ---------------- 模块四：地址导航指引（图片 + 交通） ---------------- */
.cmap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-4);
  align-items: start;
}
.cmap__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-card);
  border: 1px solid #e3edfb;
}
.cmap__img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.cmap__hint {
  position: absolute;
  right: 12px; bottom: 12px;
  background: rgba(15, 23, 42, .7);
  color: #fff;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  pointer-events: none;
}
.cmap__info {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  padding: var(--sp-4) var(--sp-3);
}
.cmap__name { font-size: 20px; margin-bottom: 8px; }
.cmap__traffic { list-style: none; margin: 0; padding: 0; }
.cmap__traffic li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed #eef1f6; }
.cmap__traffic li:last-child { border-bottom: none; }
.cmap__ic {
  flex: none; width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-primary-light);
  color: var(--c-primary);
  display: grid; place-items: center;
}
.cmap__ic svg { width: 22px; height: 22px; }
.cmap__traffic b { font-size: 16px; }
.cmap__traffic p { font-size: 14px; color: var(--t-sub); line-height: 1.7; margin-top: 2px; }
.cmap__actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.cmap__actions .btn { flex: 1; min-width: 130px; }

/* ---------------- 模块五：到访须知 ---------------- */
.ct-visit { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.ct-visit__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  padding: var(--sp-3);
  transition: all var(--dur-slow) var(--ease);
}
.ct-visit__item:hover { transform: translateY(-6px); box-shadow: var(--sh-hover); }
.ct-visit__ic {
  flex: none; width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-primary-light);
  color: var(--c-primary);
  display: grid; place-items: center;
}
.ct-visit__ic svg { width: 22px; height: 22px; }
.ct-visit__item h3 { font-size: 16px; margin-bottom: 6px; }
.ct-visit__item p { font-size: 14px; color: var(--t-sub); line-height: 1.7; }

/* ---------------- 模块六：常见问题 底部引导 ---------------- */
.ct-faq-more { margin-top: var(--sp-5); text-align: center; }
.ct-faq-more p { color: var(--t-sub); margin-bottom: 16px; }
.ct-faq-more__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------------- 图片放大 Lightbox ---------------- */
.ct-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .82);
}
.ct-lightbox.is-open { display: flex; animation: ctFade .25s var(--ease); }
@keyframes ctFade { from { opacity: 0; } to { opacity: 1; } }
.ct-lightbox img {
  max-width: 92vw; max-height: 88vh;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.ct-lightbox__close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%; border: none;
  background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; transition: background var(--dur) var(--ease);
}
.ct-lightbox__close:hover { background: rgba(255, 255, 255, .3); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1023px) {
  .ct-cards { grid-template-columns: repeat(2, 1fr); }
  .ct-form-wrap { grid-template-columns: 1fr; }
  .cmap { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .ct-card { padding: var(--sp-3) var(--sp-2); }
  .ct-card__desc { min-height: 0; }
  .ct-form { padding: var(--sp-3); }
  .ct-aside { padding: var(--sp-3); }
  .ct-cards { grid-template-columns: 1fr; }
  .cmap__img { cursor: default; }
  .ct-visit { grid-template-columns: 1fr; }
  .cmap__actions .btn { flex: 1 1 100%; }
}
