/* ============================================================
   联系我们页 contact.php —— 跟随全站主题变量（bluegold / apple_tech）
   仅用 var(--*) + 中性 fallback，避免写死颜色；PHP8.4 友好。
   ============================================================ */
/* v20261008p/q：联系方式与地图拆成两个独立 section，不再共享同一容器。
   ★ 必须用 ID 选择器：主题层 `.theme-apple_tech .sec{padding:128px 0}`（两级选择器、后加载）
     会压掉单类规则——间距会被主题放大成 128+128=256px（v20261008q 实测踩坑）。
   节奏：cinfo 底 0 / map-sec 顶 56 → 两块之间 56px 明确分隔（原同容器时仅 26px），
   既「各自独立成块」又不像 256px 那样彼此甩开。 */
/* v20261008t：联系方式(#cinfoSec) 上移到「想找我们做什么」(#ctExtra) 之前，
   顺序 = 联系方式 → 想找我们做什么 → 地图。间距全部用 ID 选择器接管
   （主题层 .theme-apple_tech .sec{padding:128px 0} 会压单类，第三次踩坑验证）。 */
#cinfoSec { padding: 40px 0 56px; }   /* 承接页头、下方留 56px 接「想找我们做什么」 */
#ctExtra  { padding: 0 0 20px; }       /* 顶部由 #cinfoSec 底部 56px 提供分隔，底部 20px 接地图区 */
#mapSec   { padding: 56px 0 26px; }
.map-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.map-box {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line, #e6e9ef);
  background: var(--bg-soft, #f4f6fa);
  min-height: 380px;   /* v20261008k：具体高度由后台「地图管理 → 前台地图高度」内联指定（量程 260–1000） */
  box-shadow: 0 12px 30px rgba(20,30,50,.08);
}
#szMapCanvas {
  width: 100%; height: 100%; min-height: 380px;
  background: var(--bg-soft, #f4f6fa);
  transition: opacity .5s ease;
}
.sz-pin { display: block; width: 28px; height: 38px; }
.sz-pin i {
  display: block; width: 28px; height: 28px;
  border-radius: 50% 50% 50% 0;
  background: var(--gold, #4da3ff);
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* ---------- 加载骨架 ---------- */
.map-skeleton {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--ink2, #5a6675); font-size: 14px;
  background: linear-gradient(110deg, var(--bg-soft, #eef1f6) 30%, #e3e8f0 50%, var(--bg-soft, #eef1f6) 70%);
  background-size: 220% 100%;
  animation: fbShimmer 1.3s linear infinite;
}
.map-skeleton .sp {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line, #cdd5e0); border-top-color: var(--gold, #4da3ff);
  animation: fbSpin .8s linear infinite;
}
@keyframes fbShimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
@keyframes fbSpin { to { transform: rotate(360deg); } }

/* ---------- 兜底 SVG 位置卡（断网/瓦片失败时显示，绝不灰屏） ---------- */
.map-fallback { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; }
/* v20261008j：display:flex 会覆盖 [hidden] 的 UA display:none，导致降级卡初始就可见，须显式压回 */
.map-fallback[hidden] { display: none !important; }
.map-fallback .fb-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fb-bg    { fill: #e9eef6; }
.fb-road  { stroke: #fff; stroke-width: 11; opacity: .95; }
.fb-block { fill: #dde6f1; }
.fb-pin   { fill: var(--gold, #4da3ff); }
.fb-pin-in { fill: #fff; }
.fb-tx {
  position: relative; z-index: 2; margin-top: auto;
  padding: 16px 18px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px); border-top: 1px solid var(--line, #e6e9ef);
}
.fb-tx b { display: block; color: var(--ink, #1a2230); font-size: 16px; margin-bottom: 4px; }
.fb-tx p { margin: 0 0 4px; color: var(--ink, #1a2230); font-size: 14px; }
.fb-hint { color: var(--ink2, #5a6675); font-size: 12px; }

/* ---------- 重新定位按钮 ---------- */
.map-locate {
  position: absolute; right: 12px; bottom: 12px; z-index: 6;
  width: 38px; height: 38px; border-radius: 10px; border: none; cursor: pointer;
  background: #fff; color: var(--gold, #4da3ff);
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.map-locate .ci-svg { width: 19px; height: 19px; display: block; }
.map-locate:hover { background: var(--gold, #4da3ff); color: #fff; }

/* ---------- 导航按钮行 ---------- */
.map-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.mbtn {
  flex: 1 1 auto; text-align: center; padding: 11px 14px; border-radius: 11px;
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid var(--line, #e6e9ef); background: #fff; color: var(--ink, #1a2230);
  transition: all .2s ease;
}
.mbtn:hover { border-color: var(--gold, #4da3ff); color: var(--gold, #4da3ff); }
.mbtn.amap  { border-color: color-mix(in srgb, var(--gold, #4da3ff) 50%, transparent); }
.mbtn.copy  { background: color-mix(in srgb, var(--gold, #4da3ff) 10%, #fff); }

/* ---------- 信息卡（v20261008t：改「主题卡片风格」） ---------- */
/* 跟随当前启用主题（theme-apple_tech 等）的设计语言：
   · 每张信息卡 = 独立卡片（软底 --bg-soft + 1px 主题描边 --line + 18px 圆角 + 轻投影），
     与全站 .pcard / .ct-block 同款质感；
   · 图标徽标走主题主色 --gold（橙），hover 整卡微抬升 + 主题描边高亮，
     与页面其余橙系强调（ct-num / ct-chip / 地图按钮）一致。
   全部用 var(--*) 驱动，切换主题即自动跟随「当前选用的风格」。 */
.cinfo {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.cinfo li {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 18px;
  background: var(--bg-soft, #f4f6fa);
  border: 1px solid var(--line, rgba(0,0,0,.10));
  border-radius: 18px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cinfo li:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(20,30,50,.10);
  border-color: color-mix(in srgb, var(--gold, #ff6a00) 45%, var(--line, rgba(0,0,0,.10)));
}
.ci-ic {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--gold, #ff6a00) 13%, transparent);
  color: var(--gold, #ff6a00);
  transition: background .22s ease, color .22s ease;
}
.cinfo li:hover .ci-ic { background: var(--gold, #ff6a00); color: #fff; }
.ci-svg { width: 22px; height: 22px; display: block; }
.ci-tx { min-width: 0; flex: 1 1 auto; }
.cinfo b {
  display: block; font-size: 12.5px; letter-spacing: .04em; font-weight: 500;
  color: var(--muted, #6e6e73); margin-bottom: 3px;
}
.cinfo p { margin: 0; color: var(--ink, #0a0a0c); font-size: 15.5px; line-height: 1.5; }
.cinfo a { color: var(--ink, #0a0a0c); text-decoration: none; }
.cinfo a:hover { color: var(--gold, #ff6a00); }
/* 二维码独立成格、放大（124px 可直接扫码）；占位块同步放大 */
.ci-qr-cell { justify-content: center; padding: 18px; }
.cinfo .qr { width: 124px; height: 124px; border-radius: 12px; border: 1px solid var(--line, rgba(0,0,0,.10)); display: block; background: #fff; }
/* 二维码未上传时的占位块（不同主题下都要可读） */
.cinfo .qr-empty {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; font-size: 11px; line-height: 1.5; color: var(--muted, #6e6e73);
  background: repeating-linear-gradient(45deg, #f4f6f4, #f4f6f4 8px, #eef1ef 8px, #eef1ef 16px);
  box-sizing: border-box; padding: 5px; border-radius: 10px;
}
.cinfo .qr-empty small { display: block; }

/* v20261008k：地图高度后台可设到 1000px，但小屏要收敛（内联高度需 !important 覆盖） */
@media (max-width: 980px) {
  .map-box { height: 460px !important; }
}
@media (max-width: 860px) {
  .map-box, #szMapCanvas { min-height: 360px; }
  #cinfoSec { padding: 28px 0 40px; }
  #mapSec   { padding: 36px 0 44px; }
  /* v20261008t：小屏单列卡片，保留卡片质感（去网格竖/横线，仅留间距） */
  .cinfo { grid-template-columns: 1fr; gap: 12px; }
  .cinfo li { padding: 16px 14px; }
}
@media (max-width: 640px) {
  .map-box { height: 340px !important; }
  .map-box, #szMapCanvas { min-height: 300px; }
  .cinfo li { padding: 14px 12px; gap: 11px; }
  .ci-ic { width: 38px; height: 38px; border-radius: 11px; }
  .ci-svg { width: 19px; height: 19px; }
  .cinfo p { font-size: 14.5px; }
  .cinfo .qr { width: 110px; height: 110px; }
}

/* ---------- 业务咨询范围 / 合作流程 / 服务承诺 ---------- */
.ct-extra { padding: 6px 0 56px; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.ct-chip {
  padding: 9px 17px; border-radius: 999px; font-size: 14px; font-weight: 600;
  text-decoration: none; color: var(--ink, #1a2230);
  border: 1px solid var(--line, #e6e9ef); background: #fff;
  transition: all .2s ease;
}
.ct-chip:hover {
  border-color: var(--gold, #4da3ff); color: var(--gold, #4da3ff);
  background: color-mix(in srgb, var(--gold, #4da3ff) 8%, #fff);
}

.ct-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: stretch; }
.ct-block {
  padding: 26px 26px; border-radius: 18px;
  border: 1px solid var(--line, #e6e9ef); background: var(--bg-soft, #f4f6fa);
}
.ct-block .ab-side-k { margin-bottom: 18px; }

.ct-steps { list-style: none; margin: 0; padding: 0; }
.ct-steps li {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px dashed var(--line, #e6e9ef);
}
.ct-steps li:last-child { border-bottom: none; padding-bottom: 0; }
.ct-num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff;
  background: var(--gold, #4da3ff);
}
.ct-steps b { display: block; font-size: 15px; color: var(--ink, #1a2230); margin-bottom: 3px; }
.ct-steps p { margin: 0; font-size: 13.5px; color: var(--ink2, #5a6675); line-height: 1.6; }

.ct-promises { list-style: none; margin: 0; padding: 0; }
.ct-promises li {
  display: flex; gap: 14px; padding: 13px 0;
  border-bottom: 1px dashed var(--line, #e6e9ef);
}
.ct-promises li:last-child { border-bottom: none; padding-bottom: 0; }
/* v20261008m：图标同信息卡统一为线性 SVG（原来是 ⏱ ☆ 🔒 ☕，其中锁是彩色 emoji，很违和） */
.ct-promises li > span {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ink, #0C1411) 6%, transparent);
  color: var(--ink, #0C1411);
}
.ct-promises li > span .ci-svg { width: 16px; height: 16px; display: block; }
.ct-promises li:hover > span {
  background: color-mix(in srgb, var(--gold, #C6A15B) 16%, transparent);
  color: var(--gold, #C6A15B);
}
.ct-promises b { display: block; font-size: 14.5px; color: var(--ink, #1a2230); margin-bottom: 3px; }
.ct-promises p { margin: 0; font-size: 13px; color: var(--ink2, #5a6675); line-height: 1.6; }

@media (max-width: 860px) {
  .ct-split { grid-template-columns: 1fr; gap: 20px; }
}
