/* ==========================================================================
   联系我们 contact.html 专属样式
   只放本页独有的版式；颜色、圆角、阴影用 style.css 的变量。
   地图用的几种颜色在 .ct-map 上定义成本页变量。选择器统一加 .ct- 前缀。
   图片如需写在 CSS 里，路径用 ../../img/文件名.jpg。
   ========================================================================== */

/* 1. 商务/技术：两张联系卡（只有号码一处渐变） -------------------------- */
.ct-card { display: flex; flex-direction: column; overflow: hidden; padding: 36px 36px 32px; }
.ct-card__head { display: flex; align-items: flex-start; gap: 18px; }
.ct-card__title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--c-title);
}
.ct-card__desc { margin-top: 4px; font-size: 15px; line-height: 1.7; color: var(--c-muted); }
/* 「约工程师上门」链到预约诊断页：和表单里「隐私条款」链接同一种品牌色 */
.ct-card__desc a { font-weight: 600; color: var(--brand); text-underline-offset: 3px; }
@media (hover: hover) { .ct-card__desc a:hover { text-decoration: underline; } }
.ct-card__phone {
  display: block; margin-top: 28px; padding: 18px 22px;
  border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--brand-100);
  transition: border-color .25s, box-shadow .25s;
}
.ct-card__phone small { display: block; font-size: 13px; line-height: 1.5; color: var(--c-muted); }
/* 号码本身不断行；「转 2」放不下时整块换到下一行，不会竖着叠 */
.ct-card__phone strong {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin-top: 2px;
  font-family: var(--font-num); font-size: 32px; font-weight: 800; line-height: 1.2; letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.ct-card__num {
  white-space: nowrap;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ct-card__phone em { font-style: normal; font-family: var(--font-sans); font-size: 17px; font-weight: 700; color: var(--brand); white-space: nowrap; }
@media (hover: hover) { .ct-card__phone:hover { border-color: var(--brand-200); box-shadow: 0 10px 24px -12px rgba(79, 70, 229, .35); } }
.ct-card__rows { display: grid; gap: 12px; margin-top: 22px; font-size: 15px; line-height: 1.6; }
.ct-card__rows li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ct-card__rows .i { flex-shrink: 0; width: 18px; height: 18px; color: var(--brand); }
.ct-card__k { flex-shrink: 0; width: 2.6em; color: var(--c-muted); }
.ct-card__rows a { min-width: 0; font-weight: 600; color: var(--c-title); transition: color .2s; }
@media (hover: hover) { .ct-card__rows a:hover { color: var(--brand); } }
.ct-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 28px; }
.ct-card__actions .btn .i { width: 16px; height: 16px; }

/* 2. 留言与来访：接待区实景照 + 表单 + 地图 -------------------------------- */
/* 接待区照片：通栏大图，取景贴上沿（人的头在画面上 1/3）；右下角压一块白色小牌 */
.ct-visit { position: relative; margin: 28px 0 0; }
.ct-visit__media { aspect-ratio: 5 / 2; border-radius: var(--r-lg); box-shadow: 0 24px 60px -30px rgba(15, 23, 42, .4); }
.ct-visit__media > img { object-position: 50% 6%; }
.ct-visit__cap {
  position: absolute; right: 24px; bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px 14px 14px; border-radius: var(--r-card);
  background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-float);
}
.ct-visit__cap .icon-box { width: 44px; height: 44px; border-radius: 12px; }
.ct-visit__cap .icon-box .i { width: 22px; height: 22px; }
.ct-visit__cap strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--c-title); }
.ct-visit__cap small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--c-muted); }

.ct-feedback {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px; align-items: stretch;
}

/* 地图卡：上面是地图（吃掉表单多出来的高度），下面是地址。
   SVG 用 meet：viewBox 那块安全区（地名、定位都在里面）永远完整露出；
   画布比例和安全区不一样时，多出来的边上露的是往外延伸画的陆地和海，不会裁掉任何地名。 */
.ct-map {
  --ct-sea-top: #D4EAF9;
  --ct-sea-bottom: #BBDCF3;
  --ct-shallow: #E3F2FC;
  --ct-coast: #C4DDF0;
  --ct-land: #F3F4F7;
  --ct-urban: #ECEEF3;
  --ct-park: #DAEED4;
  --ct-park-edge: #C6E2BE;
  --ct-river: #BEDDF3;
  --ct-road-edge: #D2D8E3;
  --ct-minor-edge: #E2E6ED;
  --ct-road-text: #64748B;
  --ct-sea-text: #3A77A4;
  --ct-park-text: #3D8550;
  --ct-pin-a: #6D28D9;
  --ct-pin-b: #4F46E5;
  --ct-pin-c: #0EA5E9;
  display: flex; flex-direction: column; overflow: hidden;
}
.ct-map__canvas { position: relative; flex: 1 1 auto; min-height: 300px; background: var(--ct-land); }
.ct-map__svg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; width: 100%; height: 100%; }
.ct-map__badge {
  position: absolute; left: 16px; top: 16px;
  padding: 4px 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-card);
  font-size: 12px; font-weight: 600; line-height: 1.6; color: var(--c-muted);
}

/* SVG 各部分（这里的 px 是地图自己的单位，跟着地图一起缩放） */
.ct-map__shallow { fill: none; stroke: var(--ct-shallow); stroke-width: 11; stroke-linejoin: round; }
.ct-map__land { fill: var(--ct-land); stroke: var(--ct-coast); stroke-width: 1.5; stroke-linejoin: round; }
.ct-map__urban { fill: var(--ct-urban); }
.ct-map__park { fill: var(--ct-park); stroke: var(--ct-park-edge); stroke-width: 1; }
.ct-map__river { fill: none; stroke: var(--ct-river); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.ct-map__minor-edge { fill: none; stroke: var(--ct-minor-edge); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.ct-map__minor { fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.ct-map__road-edge { fill: none; stroke: var(--ct-road-edge); stroke-width: 9.5; stroke-linecap: round; stroke-linejoin: round; }
.ct-map__road { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }

/* 文字：白色描边垫底，压在路和公园上也看得清 */
.ct-map__t { paint-order: stroke; stroke: #fff; stroke-width: 3.2px; stroke-linejoin: round; }
.ct-map__district { font-size: 16px; font-weight: 700; letter-spacing: 3px; fill: #475569; }
.ct-map__road-name { font-size: 12.5px; font-weight: 600; letter-spacing: 1px; fill: var(--ct-road-text); }
.ct-map__road-name--v { letter-spacing: 0; }
.ct-map__park-name { font-size: 12.5px; font-weight: 600; letter-spacing: .5px; fill: var(--ct-park-text); }
.ct-map__poi-name { font-size: 12.5px; font-weight: 700; letter-spacing: 1px; fill: #334155; }
.ct-map__sea { font-size: 14.5px; font-weight: 600; letter-spacing: 3px; fill: var(--ct-sea-text); }
.ct-map__sea--big { font-size: 19px; letter-spacing: 9px; fill-opacity: .5; }
.ct-map__poi circle { fill: #fff; stroke: var(--brand); stroke-width: 1.6; }
.ct-map__poi path { fill: var(--brand); }
.ct-map__north circle { fill: rgba(255, 255, 255, .9); stroke: var(--c-border); stroke-width: 1; }
.ct-map__north path { fill: #64748B; }
.ct-map__north-text { font-size: 12px; font-weight: 700; fill: #64748B; }

/* 定位针和气泡 */
.ct-map__pin-shadow { fill: var(--c-title); fill-opacity: .2; }
.ct-map__tip { fill: #fff; }
.ct-map__tip-title { font-size: 14.5px; font-weight: 700; letter-spacing: 1px; fill: var(--c-title); }
.ct-map__tip-sub { font-size: 12px; font-weight: 500; fill: var(--c-muted); }
.ct-map__callout { transform-origin: 300px 175px; }
.ct-map__pulse {
  fill: var(--brand); fill-opacity: .28;
  transform-box: fill-box; transform-origin: center;
  animation: ct-pulse 2.6s var(--ease) infinite;
}
.ct-map__pulse--late { animation-delay: 1.3s; }
@keyframes ct-pulse {
  from { transform: scale(.6); opacity: 1; }
  to { transform: scale(3); opacity: 0; }
}

/* 地址信息 */
.ct-map__info { padding: 24px 28px 28px; border-top: 1px solid var(--c-border); background: #fff; }
.ct-map__rows { display: grid; gap: 14px; }
.ct-map__rows li { display: flex; align-items: center; gap: 14px; }
.ct-map__rows .icon-box { width: 42px; height: 42px; border-radius: 11px; }
.ct-map__rows .icon-box .i { width: 21px; height: 21px; }
.ct-map__rows small { display: block; font-size: 13px; line-height: 1.5; color: var(--c-muted); }
.ct-map__rows strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--c-title); }
.ct-map__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ct-map__actions .btn .i { width: 16px; height: 16px; }

/* 3. 关注我们：左边大号「加顾问微信」卡，右边 4 个平台一排 + 邮箱 / 其他关联网站 ------------- */
.ct-follow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: stretch; }

/* 主推：加顾问微信（二维码 + 微信号 + 复制按钮） */
.ct-wx {
  display: flex; align-items: center; gap: 28px; padding: 32px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border-color: var(--brand-100);
}
.ct-wx__qr.qr { flex-shrink: 0; width: 156px; height: 156px; padding: 10px; border-radius: 14px; box-shadow: 0 10px 26px -14px rgba(79, 70, 229, .45); }
.ct-wx__body { min-width: 0; }
.ct-wx__title { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--c-title); }
.ct-wx__desc { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--c-desc); }
.ct-wx__id { margin-top: 14px; }
.ct-wx__k { display: block; font-size: 13px; line-height: 1.5; color: var(--c-muted); }
.ct-wx__id strong { font-family: var(--font-num); font-size: 21px; font-weight: 700; line-height: 1.35; letter-spacing: .01em; color: var(--c-title); }
.ct-wx__id small { margin-left: 2px; font-size: 14px; color: var(--c-muted); }
.ct-wx__copy { margin-top: 16px; }
.ct-wx__copy .i { width: 16px; height: 16px; }

/* 其他 4 个平台：小一号，一排 4 个 */
.ct-more { display: grid; gap: var(--gap); align-content: space-between; }
.ct-accs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ct-acc {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 10px 16px; text-align: center;
}
.ct-acc__name {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--c-title);
}
.ct-acc__icon {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand-50); color: var(--brand);
}
.ct-acc__icon .i { width: 16px; height: 16px; }
.ct-wx__title .ct-acc__icon { width: 34px; height: 34px; border-radius: 10px; }
.ct-wx__title .ct-acc__icon .i { width: 19px; height: 19px; }
.ct-acc__qr.qr { width: 88px; height: 88px; margin-top: 12px; padding: 6px; border-radius: 10px; }
.ct-acc__value { margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--c-title); }

/* 邮箱、其他关联网站：横向小卡（左图标块，右边放大号的值） */
/* 邮箱地址比网站名长，左边那张宽一点，1280 宽时邮箱也能一行放下 */
.ct-direct { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 16px; }
.ct-dir {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 20px 22px; text-align: left;
  font: inherit; color: inherit; cursor: pointer;
}
button.ct-dir { appearance: none; -webkit-appearance: none; }
@media (hover: hover) {
  button.ct-dir:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--brand-100); }
  .ct-dir:hover .icon-box { background: var(--grad); color: #fff; }
}
.ct-dir .icon-box { transition: background-color .3s, color .3s; }
.ct-dir__body { display: flex; flex-direction: column; min-width: 0; }
.ct-dir__k { font-size: 13px; line-height: 1.5; color: var(--c-muted); }
.ct-dir__v { margin-top: 2px; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--c-title); }
.ct-dir__note { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--c-muted); }
.ct-acc-note { margin-top: 20px; text-align: right; }

/* 响应式 ---------------------------------------------------------------- */
/* <1200：内容区收窄后（1024 宽只剩 864px）左右两栏太挤，地图只剩 400 来宽、字小于 12px；
   改成表单在上、地图卡在下，地图卡左图右文，画布高度跟着右边的地址走。
   「关注我们」改成上下排：微信大卡一行，下面 4 个平台一排、邮箱和网站一排 */
@media (max-width: 1199.98px) {
  .ct-visit__media { aspect-ratio: 2 / 1; }
  .ct-feedback { grid-template-columns: minmax(0, 1fr); }
  .ct-map { flex-direction: row; }
  .ct-map__canvas { flex: 1 1 auto; min-height: 320px; }
  .ct-map__info { flex: 0 0 300px; display: flex; flex-direction: column; justify-content: center; border-top: 0; border-left: 1px solid var(--c-border); }
  .ct-map__actions { flex-direction: column; align-items: stretch; }
  .ct-map__district { font-size: 17px; }
  .ct-map__road-name, .ct-map__poi-name { font-size: 14px; }
  .ct-map__park-name { font-size: 14px; }
  .ct-map__sea { font-size: 15.5px; }
  .ct-map__north-text { font-size: 14px; }
  .ct-map__tip-sub { font-size: 14px; }
  .ct-follow { grid-template-columns: minmax(0, 1fr); }
  .ct-wx { justify-content: center; gap: 36px; padding: 28px 32px; }
  .ct-wx__body { flex: 0 1 380px; }
}
@media (max-width: 1023.98px) {
  .ct-card { padding: 30px 26px 26px; }
  .ct-card__phone strong { font-size: 26px; }
  .ct-accs { gap: 12px; }
  .ct-acc__qr.qr { width: 80px; height: 80px; }
}
@media (max-width: 899.98px) {
  .ct-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .ct-card { padding: 28px 20px 24px; }
  .ct-card__head { gap: 14px; }
  .ct-card__head .icon-box--lg { width: 48px; height: 48px; border-radius: 12px; }
  .ct-card__head .icon-box--lg .i { width: 24px; height: 24px; }
  .ct-card__title { font-size: 20px; }
  .ct-card__desc { font-size: 14px; }
  .ct-card__phone { margin-top: 22px; padding: 14px 16px; }
  .ct-card__rows { font-size: 14px; }
  .ct-card__actions { padding-top: 22px; }
  .ct-card__actions .btn { flex: 1 1 120px; }

  /* 接待区照片：手机 16:10，白色小牌挪到照片下沿、压住一半 */
  .ct-visit { margin: 20px 0 0; }
  .ct-visit__media { aspect-ratio: 16 / 10; border-radius: var(--r-card); }
  .ct-visit__cap { position: relative; right: auto; bottom: auto; margin: -26px 12px 0; padding: 12px 14px 12px 12px; gap: 10px; }
  .ct-visit__cap .icon-box { width: 38px; height: 38px; border-radius: 10px; }
  .ct-visit__cap .icon-box .i { width: 19px; height: 19px; }
  .ct-visit__cap strong { font-size: 15px; }

  .ct-feedback { gap: 20px; }
  /* 手机：地图回到上图下文，画布固定 4:3 */
  .ct-map { flex-direction: column; }
  .ct-map__canvas { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .ct-map__info { flex: none; display: block; padding: 20px 20px 22px; border-left: 0; border-top: 1px solid var(--c-border); }
  .ct-map__actions { flex-direction: row; }
  .ct-map__actions .btn { flex: 1 1 140px; }
  .ct-map__badge { left: 12px; top: 12px; }
  .ct-map__rows strong { font-size: 15px; }
  /* 手机上地图缩到约 0.74 倍，字号放大，保证地名不小于 12px */
  .ct-map__district { font-size: 19px; letter-spacing: 2px; }
  .ct-map__road-name, .ct-map__poi-name, .ct-map__park-name { font-size: 16.5px; letter-spacing: 0; }
  .ct-map__sea { font-size: 17px; letter-spacing: 2px; }
  .ct-map__sea--big { font-size: 20px; letter-spacing: 6px; }
  .ct-map__north-text { font-size: 16.5px; }
  .ct-map__callout { transform: scale(1.18); }
  .ct-map__tip-title { font-size: 15.5px; }
  .ct-map__tip-sub { font-size: 14px; }

  /* 关注我们：微信卡左码右字；4 个平台 2×2（左小码、右名字）；邮箱和网站各占一行 */
  .ct-wx { justify-content: flex-start; align-items: flex-start; gap: 16px; padding: 20px; }
  .ct-wx__qr.qr { width: 104px; height: 104px; padding: 7px; border-radius: 12px; }
  .ct-wx__body { flex: 1 1 auto; }
  .ct-wx__title { gap: 8px; font-size: 18px; }
  .ct-wx__title .ct-acc__icon { width: 28px; height: 28px; border-radius: 8px; }
  .ct-wx__title .ct-acc__icon .i { width: 16px; height: 16px; }
  .ct-wx__desc { margin-top: 6px; font-size: 14px; line-height: 1.65; }
  .ct-wx__id { margin-top: 10px; }
  .ct-wx__id strong { font-size: 18px; }
  .ct-wx__id small { font-size: 13px; }
  .ct-wx__copy { margin-top: 12px; }
  .ct-more { gap: 12px; }
  .ct-accs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ct-acc {
    display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "qr name" "qr value";
    column-gap: 12px; align-items: center; padding: 12px; text-align: left;
  }
  .ct-acc__qr.qr { grid-area: qr; width: 56px; height: 56px; margin: 0; padding: 4px; border-radius: 8px; }
  .ct-acc__name { grid-area: name; align-self: end; font-size: 15px; }
  .ct-acc__name .ct-acc__icon { display: none; }
  .ct-acc__value { grid-area: value; align-self: start; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--c-muted); }
  .ct-direct { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ct-dir { padding: 16px 18px; }
  .ct-dir__v { font-size: 16px; }
  .ct-acc-note { margin-top: 16px; text-align: left; font-size: 12px; }
}
