/* ============================================================
   contact.html 联系我们页 独立样式文件
   存放位置：css 文件夹
   说明：本文件仅包含联系我们页主体内容样式
   ============================================================ */
body {
  background-color: #fff;
}
.ct_main {
  width: 100%;
  margin: 0 auto;
  padding-top: 96px;
}

/* 禁止横向滚动：球体/弧线层超出容器左右部分不产生横向滚动条 */
html,
body {
  overflow-x: hidden;
}

/* ---------- 顶部标题 ---------- */
.ct_top_box {
  text-align: center;
}
.ct_top_title {
  letter-spacing: 2px;
  color: var(--text-title1-color);
  font-size: 48px;
  margin-bottom: 36px;
}
.ct_top_phone {
  margin-bottom: 16px;
}
.ct_top_phone .iconfont {
  font-size: 32px;
  color: var(--text-active-color);
}
.ct_top_email {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-active-color);
  letter-spacing: 1px;
}

/* ---------- 联系信息 ---------- */
.ct_info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 44px;
  margin-bottom: 0;
}
.ct_info_item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #44556a;
}
.ct_info_icon {
  flex: none;
  color: #1053a0;
}
.ct_info_text {
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- 地图区域 ---------- */
.ct_map {
  position: relative;
  height: calc(80px + 35vw);
}

/* 地球裁剪层：裁切下半圆，弹框可溢出容器上方 */
.ct_globe_wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 16px;
  z-index: 0;
}

/* 地球背景：135%容器宽，球顶固定80px，缓慢旋转 */
.ct_globe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: none;
  margin: 0 0 0 -50%;
  border-radius: 50%;
  animation: ct_globe_spin 60s linear infinite;
  will-change: transform;
}
@keyframes ct_globe_spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 球面弧线层：弧线横跨球面；高度只占弧线实际区域（≈34.4vw），
   整体收在 .ct_map 容器内，不延伸到 footer */
.ct_globe_box {
  position: absolute;
  left: 50%;
  top: 12%;
  width: 120%;
  height: 33vw;
  /* margin: 0 0 0 -60%; */
  transform: translateX(-50%);
  margin-top: 8%;
  z-index: 1;
  pointer-events: none; /* 透明区域不拦截点击/不占交互 */
}

/* 弧度虚线 */
.ct_arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.ct_arc_line {
  stroke-width: 1.4px;
  stroke-dasharray: 0 3;
  stroke-linecap: round;
}

/* ---------- 定位点 ---------- */
.ct_point_box {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto; /* 点在透明层上仍可交互 */
}
.ct_point_xg {
  left: 26%;
  top: 40%;
}
.ct_point_sz {
  left: 38%;
  top: 21%;
}
.ct_point_xm {
  left: 50%;
  top: 14%;
}
.ct_point_sh {
  left: 62%;
  top: 21%;
}
.ct_point_cd {
  left: 74%;
  top: 40%;
}

/* 标签（点上方，不参与布局） */
.ct_point_tag {
  position: absolute;
  bottom: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    opacity 0.2s,
    visibility 0.2s;
}
.ct_point_tag_name {
  font-size: 12px;
  font-weight: 600;
  color: #444;
}
.ct_point_tag_city {
  color: #333333;
  font-size: 16px;
  font-weight: bold;
}

/* 圆点 */
.ct_point_dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-active-color);
  box-shadow:
    0 0 0 8px rgba(16, 83, 160, 0.35),
    0 4px 10px rgba(16, 83, 160, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.ct_point_box:hover .ct_point_dot {
  transform: scale(1.15);
}
.ct_point_dot_inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

/* 点击 / 悬停信息卡：显示在点上方 */
.ct_point_info_box {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  /* min-width: 300px; */
  background: #ffffff;
  border: 1px solid #d9e7f5;
  border-radius: 12px;
  padding: 24px 28px;
  padding-left: 20px;
  box-shadow: 0 12px 28px var(--com-shadow-color);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    transform 0.25s,
    visibility 0.25s;
  z-index: 5;
  text-align: left;
}
/* .ct_point_info_box::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-right: 1px solid #d9e7f5;
  border-bottom: 1px solid #d9e7f5;
} */
.ct_point_info_title {
  font-size: 15px;
  font-weight: 600;
  color: #1053a0;
  margin-bottom: 10px;
}
.ct_point_info_row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  line-height: 1.9;
  white-space: nowrap;
}
.ct_point_info_row .iconfont {
  color: var(--text-active-color);
}
.ct_point_box:hover .ct_point_info_box,
.ct_point_box.open .ct_point_info_box {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-55%);
  border: 1px solid #0b3d91;
}
/* ---------- 在线留言按钮（锚点容器 + 按钮 + 提交成功提示） ---------- */
.ct_msg_anchor {
  position: absolute;
  left: 50%;
  bottom: 25%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ct_msg_btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  color: #1053a0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}
.ct_msg_btn:hover {
  color: #0b3d91;
}
.ct_msg_btn_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 12px;
  box-sizing: content-box;
  background: #ffffff;
  border-radius: 50%;
  color: #1053a0;
  box-shadow: 0 6px 16px rgba(16, 83, 160, 0.22);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.ct_msg_btn_icon .iconfont {
  font-size: 24px;
}
.ct_msg_btn:hover .ct_msg_btn_icon {
  box-shadow: 0 8px 22px rgba(16, 83, 160, 0.32);
  transform: scale(1.06);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  /* 窄屏下深圳/成都标签向内对齐，避免超出页面边缘 */
  .ct_point_sz .ct_point_tag {
    left: auto;
    transform: translateX(0);
  }
  .ct_point_cd .ct_point_tag {
    left: auto;
    transform: translateX(0);
  }
  .ct_point_info_box {
    width: 220px;
  }
}
@media (max-width: 640px) {
  .ct_top_box {
    height: 300px;
  }
  .ct_globe {
    top: 50%;
  }
  .ct_point_box:hover .ct_point_info_box,
  .ct_point_box.open .ct_point_info_box {
    transform: translateX(-50%) translateY(-34%);
  }
  .ct_main {
    padding: 90px 0 0px;
  }
  .ct_top_title {
    font-size: 28px;
  }
  .ct_top_email {
    font-size: 17px;
  }
  .ct_info {
    flex-direction: column;
    gap: 12px;
  }
  /* 地图：手机上五个点位仅相距 40 多像素，分组名会和相邻城市重叠，只保留城市名 */
  .ct_map {
    /* 点位按百分比定位，容器太矮时顶层标签会走出地图、盖到底部内容上 */
    height: calc(40px + 76vw);
  }
  .ct_globe_box {
    top: 28%;
  }
  .ct_point_tag_name {
    display: none;
  }
  .ct_point_tag {
    bottom: calc(100% + 12px);
    padding: 2px 6px;
  }
  .ct_point_tag_city {
    font-size: 13px;
  }
  /* 两端点位的卡片会溢出屏幕，向内侧推回 */
  .ct_point_xg .ct_point_info_box {
    margin-left: 90px;
  }
  .ct_point_cd .ct_point_info_box {
    margin-left: -90px;
  }
  .ct_point_info_box {
    width: 240px;
    padding: 14px 16px;
  }
  /* 地址是长串文本，手机上必须允许换行，否则会把卡片撑出屏幕 */
  .ct_point_info_row {
    white-space: normal;
    align-items: flex-start;
    line-height: 1.6;
  }
  .ct_point_dot {
    width: 20px;
    height: 20px;
  }
  .ct_msg_btn {
    font-size: 12px;
  }
  .ct_msg_btn_icon {
    width: 18px;
    height: 18px;
    padding: 8px;
  }
}
