/* =========================================================
   联系我们 - contact.css
   设计稿基准宽度：1920px（1:1 复刻字体、间距、色值）
   占位符规范：
   - .ph-img  图片占位（后期替换）：虚线边框 + 居中文字
   - .ph-bg   背景占位（后期替换 background-image）：色块 + 右下角标签
   品牌蓝：#00AFFF（按钮）
   ========================================================= */

.ct-page {
  --ct-blue: #00AFFF;
  --ct-dark: #333333;
  --ct-text: #666666;
  --ct-line-gray: #B8C4CF;
  --ct-border: #ECEDEE;   /* 表单外框 */
  --ct-line: #EEF0F1;     /* 表单行间分隔线 */
  --ct-bg-block: #DFE5EA;
  --ct-bg-block-2: #D2DAE2;
}

/* ---------- 通用占位符：图片 ---------- */
.ct-page .ph-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(135deg, #E8EDF2 0%, #D3DBE3 100%); */
  /* border: 2px dashed var(--ct-line-gray); */
  border-radius: 4px;
  overflow: hidden;
  min-height: 60px;
  
}
.ct-page .ph-img::before {

  display: block;
  padding: 0 12px;
  text-align: center;
  color: #7A8A99;
  font-size: var(--fs-caption);
  line-height: 1.6;
  letter-spacing: 0.5px;
  word-break: break-all;
  z-index: 1;
}

/* ---------- 通用占位符：背景 ---------- */
.ct-page .ph-bg {
  position: relative;
  background: linear-gradient(135deg, var(--ct-bg-block) 0%, var(--ct-bg-block-2) 100%);
}
.ct-page .ph-bg::after {

  position: absolute;
  right: 8px;
  bottom: 6px;
  padding: 2px 8px;
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: #8A97A3;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #C9D3DC;
  border-radius: 3px;
  white-space: nowrap;
  z-index: 3;
}

/* =========================================================
   1. HERO（设计稿：高 960px / 1920，白字文案居左）
   ========================================================= */
.ct-hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}
/* 背景图层：蓝天下的美的玻璃幕墙大楼 */
.ct-hero .ct-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #B8D8F5 0%, #7FAFDC 45%, #5E96C8 100%);
}
.ct-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1920px;
  margin: 0 auto;
  padding: clamp(180px, 21vw, 400px) clamp(24px, 4.8vw, 92px) 0 0;
  padding-left: 5%;
}
.ct-hero-title {
  margin: 0 0 clamp(20px, 1.6vw, 30px);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
  color: #fff;
}
.ct-hero-desc {
  margin: 0;
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

/* =========================================================
   2. 主体：左信息 / 右表单（设计稿：白底，内容宽约1500px）
   ========================================================= */
.ct-body {
  background: #fff;
}
.ct-body-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: clamp(60px, 7.3vw, 140px) 0 clamp(80px, 9.4vw, 180px);

  padding-left: 5%; padding-right: 5%;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
  gap: clamp(40px, 9vw, 173px);
  align-items: start;
}

/* ---------- 左侧：企业信息 ---------- */
.ct-info-title {
  margin: 0 0 clamp(24px, 2.4vw, 46px);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1px;
  color: #3F3F3F;
}
.ct-info-line {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--ct-text);
}
.ct-follow-title {
  margin: clamp(40px, 3.9vw, 76px) 0 clamp(20px, 2.1vw, 40px);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ct-dark);
}
/* 关注我们：一行 3 个二维码，第 4 个换行 */
.ct-qrcodes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(16px, 4.7vw, 90px);
  row-gap: clamp(18px, 2.9vw, 56px);
  max-width: 640px;
}
.ct-qrcode {
  width: 100%;
  text-align: center;
}
.ct-qrcode .ph-img {
  aspect-ratio: 1 / 1;
  min-height: 0;
}
/* 覆盖 .ph-img 的 height:100%（需前缀提升特异性，否则 aspect-ratio 被 height:100% 压过） */
.ct-page .ct-qrcode .ph-img {
  height: auto;
}
.ct-qrcode-label {
  display: block;
  margin-top: clamp(6px, 0.55vw, 10px);
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: var(--ct-text);
}

/* ---------- 右侧：表单（外框卡片 + 行间分隔线 + 左侧图标） ---------- */
.ct-form-wrap {
  width: 100%;
  min-width: 0;
}
.ct-form {
  background: #fff;
  border: 1px solid var(--ct-border);
  border-radius: 8px;
}
.ct-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.3vw, 24px);
  min-height: clamp(52px, 4.7vw, 90px);
  padding: 0 clamp(28px, 5.2vw, 100px);
}
/* 行间分隔线：两端缩进，与设计稿一致 */
.ct-field + .ct-field::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(20px, 4.2vw, 81px);
  right: clamp(20px, 4.2vw, 81px);
  height: 1px;
  background: var(--ct-line);
}
.ct-field-icon {
  flex: 0 0 auto;
  width: clamp(16px, 1.05vw, 20px);
  height: clamp(16px, 1.05vw, 20px);
  color: var(--ct-text);
  transition: color 0.25s ease;
}
.ct-field:focus-within .ct-field-icon {
  color: var(--ct-blue);
}
.ct-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: clamp(52px, 4.7vw, 90px);
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: var(--fs-body);
  color: var(--ct-dark);
  outline: none;
  box-shadow: none;
}
.ct-input::placeholder {
  color: #A5B0BD;
}
.ct-input:focus {
  border-color: transparent;
  box-shadow: none;
}
/* 需求描述行：顶部对齐 + 文本域 */
.ct-field-area {
  align-items: flex-start;
  min-height: clamp(130px, 10.7vw, 205px);
  padding-top: clamp(26px, 2.4vw, 46px);
}
.ct-field-area .ct-input {
  height: auto;
  min-height: 0;
  line-height: 1.7;
  resize: vertical;
}
.ct-submit-btn {
  display: block;
  width: clamp(140px, 10.4vw, 200px);
  height: clamp(46px, 3.1vw, 60px);
  margin: clamp(8px, 0.7vw, 13px) auto clamp(34px, 4.1vw, 79px);
  border: none;
  border-radius: var(--btn-radius);
  background: var(--ct-blue);
  color: #fff;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.ct-submit-btn:hover {
  background: #0099E0;
  transform: translateY(-2px);
}

/* ---------- 验证码字段 ---------- */
.ct-field-captcha {
  gap: clamp(10px, 0.9vw, 16px);
}
.ct-field-captcha .ct-input {
  flex: 1;
  min-width: 0;
}
.ct-field-captcha img {
  flex: 0 0 auto;
  width: 100px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  object-fit: cover;
}

/* =========================================================
   响应式
   ========================================================= */

/* ---------- 平板（≤1199px） ---------- */
@media (max-width: 1199.98px) {
  .ct-body-inner {
    padding-left: clamp(20px, 6vw, 60px);
    padding-right: clamp(20px, 6vw, 60px);
    gap: 60px;
  }
}

/* ---------- 平板（≤991px） ---------- */
@media (max-width: 991.98px) {
  .ct-body-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-left: clamp(20px, 8vw, 80px);
    padding-right: clamp(20px, 8vw, 80px);
  }
  .ct-form-wrap {
    max-width: 100%;
  }
}

/* ---------- 手机（≤767px） ---------- */
@media (max-width: 767.98px) {
  .ct-hero {
    height: 100vh;
    min-height: 100vh;
    padding: 120px 0 80px;
  }
  .ct-hero-content {
    padding: 0 10%;
    text-align: left;
  }
  .ct-body-inner {
    padding: 50px 10% 80px;
    gap: 40px;
  }
  .ct-qrcodes {
    column-gap: 12px;
    row-gap: 18px;
  }
  .ct-field {
    padding: 0 24px;
  }
}

/* ---------- HERO 特异性修复（与 news.css / service.css 同款） ----------
   components.css 通用规则 div[class*="-hero"]:has(> img.hero-bg)
   误命中 .ct-hero-bg 本身（类名含 -hero 且直接子元素为 img.hero-bg），
   以更高特异性把 position:absolute 压回 relative，背景层占满整屏留在文档流，
   把 .ct-hero-content 挤出首屏视口并被 overflow:hidden 裁掉。
   用三段类 + !important 恢复设计层叠。 */
.ct-page .ct-hero .ct-hero-bg {
  position: absolute !important;
  inset: 0;
  z-index: 0;
}
.ct-page .ct-hero .ct-hero-content {
  position: relative;
  z-index: 2;
}
