/* ============================================================
   联系页样式 v1 (2026-11-17) —— 深蓝品牌调性
   ============================================================ */
.ct-page{ font-family:inherit; color:#1a2b4a; }
.ct-wrap{ max-width:var(--b2-width,1260px); margin:0 auto; padding:0 20px; }

/* Hero */
.ct-hero{ position:relative; padding:82px 0 92px; color:#fff; overflow:hidden; background:#00306e; }
.ct-hero-bg{ position:absolute; inset:0; opacity:.18;
  background-image:radial-gradient(circle at 78% 22%,#7fb0ee 0,transparent 45%),radial-gradient(circle at 12% 88%,#4a8fd8 0,transparent 42%); }
.ct-hero::after{ content:""; position:absolute; inset:0;
  background:linear-gradient(110deg,rgba(0,30,80,.92),rgba(0,64,152,.74) 60%,rgba(10,82,184,.55)); }
.ct-hero .ct-wrap{ position:relative; z-index:2; }
.ct-kicker{ display:inline-block; font-size:13px; font-weight:800; letter-spacing:1.5px; color:#9fc4f5;
  border-left:3px solid #e2231a; padding-left:12px; margin-bottom:20px; }
.ct-hero h1{ font-size:48px; font-weight:800; margin:0 0 18px; letter-spacing:-.5px; }
.ct-lead{ font-size:17px; line-height:1.75; color:#d3e3fa; max-width:760px; margin:0; }

/* 联系卡 */
.ct-cards{ padding:56px 0 0; background:#f6f8fc; }
.ct-cards-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.ct-card{ background:#fff; border:1px solid #e6ecf5; border-radius:13px; padding:26px 20px;
  box-shadow:0 4px 16px rgba(0,40,98,.06); text-decoration:none; color:inherit;
  display:flex; flex-direction:column; gap:6px; transition:.2s; }
a.ct-card:hover{ transform:translateY(-4px); box-shadow:0 12px 28px rgba(0,64,152,.14); border-color:#c5d8f0; }
.ct-card-ico{ width:42px; height:42px; border-radius:10px; background:#eaf2fd; color:#004098;
  font-size:21px; display:flex; align-items:center; justify-content:center; margin-bottom:8px; }
.ct-card-t{ font-size:12px; font-weight:800; color:#8899b0; letter-spacing:.5px; text-transform:uppercase; }
.ct-card-v{ font-size:16px; font-weight:700; color:#1a2b4a; line-height:1.45; word-break:break-word; }
.ct-card-addr{ font-size:13.5px; font-weight:500; }
.ct-card-s{ font-size:12px; color:#9aa9bd; margin-top:auto; padding-top:6px; }
.ct-card-links{ display:flex; flex-direction:column; gap:5px; margin:4px 0; }
.ct-card-links a{ font-size:14px; font-weight:700; color:#004098; text-decoration:none; }
.ct-card-links a:hover{ text-decoration:underline; }

/* 表单区 */
.ct-main{ padding:52px 0 76px; background:#f6f8fc; }
.ct-main-grid{ display:grid; grid-template-columns:1fr 300px; gap:32px; align-items:start; }
.ct-form-box{ background:#fff; border:1px solid #e6ecf5; border-radius:14px; padding:32px 34px;
  box-shadow:0 4px 18px rgba(0,40,98,.06); }
.ct-form-box h2{ font-size:26px; margin:0 0 6px; color:#1a2b4a; }
.ct-form-sub{ font-size:14px; color:#8899b0; margin:0 0 24px; }
.ct-form{ display:flex; flex-direction:column; gap:16px; }
.ct-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.ct-form label{ display:flex; flex-direction:column; gap:7px; }
.ct-form label>span{ font-size:12.5px; font-weight:700; color:#556; }
.ct-form input,.ct-form textarea{ font-family:inherit; font-size:14px; color:#1a2b4a;
  border:1px solid #dce4f0; border-radius:8px; padding:12px 14px; background:#fbfcfe;
  transition:.2s; width:100%; }
.ct-form input:focus,.ct-form textarea:focus{ outline:none; border-color:#004098; background:#fff;
  box-shadow:0 0 0 3px rgba(0,64,152,.08); }
.ct-form textarea{ resize:vertical; }
.ct-submit{ align-self:flex-start; font-family:inherit; font-size:15px; font-weight:800; color:#fff;
  background:#e2231a; border:0; border-radius:9px; padding:14px 30px; cursor:pointer; transition:.2s; }
.ct-submit:hover{ background:#c81e16; transform:translateY(-2px); }

/* 侧栏 */
.ct-why{ background:#fff; border:1px solid #e6ecf5; border-radius:13px; padding:24px 22px;
  box-shadow:0 4px 16px rgba(0,40,98,.06); margin-bottom:18px; }
.ct-why h3{ font-size:17px; margin:0 0 16px; color:#004098; }
.ct-why ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.ct-why li{ font-size:13px; line-height:1.55; color:#556; display:flex; gap:9px; align-items:flex-start; }
.ct-check{ flex:0 0 18px; width:18px; height:18px; border-radius:50%; background:#e8f7f0; color:#1a9e6b;
  font-size:11px; display:flex; align-items:center; justify-content:center; margin-top:1px; }
.ct-qr{ background:#fff; border:1px solid #e6ecf5; border-radius:13px; padding:20px; text-align:center;
  box-shadow:0 4px 16px rgba(0,40,98,.06); margin-bottom:18px; }
.ct-qr img{ width:130px; height:130px; object-fit:contain; border-radius:6px; }
.ct-qr span{ display:block; font-size:12px; color:#8899b0; margin-top:10px; }
.ct-side-contact{ background:linear-gradient(135deg,#0a3b8f,#004098); border-radius:13px; padding:22px;
  display:flex; flex-direction:column; gap:10px; }
.ct-side-contact a{ font-size:14px; font-weight:700; color:#fff; text-decoration:none; word-break:break-all; }
.ct-side-contact a:hover{ text-decoration:underline; }

/* CTA */
.ct-cta{ background:linear-gradient(120deg,#002a66,#004098 60%,#0a52b8); color:#fff;
  padding:72px 0; text-align:center; position:relative; overflow:hidden; }
.ct-cta::before{ content:""; position:absolute; left:0; right:0; top:0; height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.42),transparent); }
.ct-cta h2{ font-size:34px; margin:0 0 14px; font-weight:800; }
.ct-cta p{ font-size:16px; color:#cddff7; max-width:660px; margin:0 auto 28px; line-height:1.7; }
.ct-cta-btn{ display:inline-block; background:#e2231a; color:#fff; text-decoration:none;
  padding:15px 34px; border-radius:9px; font-weight:800; font-size:16px; transition:.2s; }
.ct-cta-btn:hover{ background:#c81e16; transform:translateY(-2px); }

@media (max-width:1020px){
  .ct-cards-grid{ grid-template-columns:repeat(2,1fr); }
  .ct-main-grid{ grid-template-columns:1fr; }
  .ct-side{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
  .ct-why,.ct-qr,.ct-side-contact{ margin-bottom:0; }
}
@media (max-width:700px){
  .ct-hero{ padding:64px 0 72px; }
  .ct-hero h1{ font-size:32px; }
  .ct-cards-grid{ grid-template-columns:1fr; }
  .ct-row{ grid-template-columns:1fr; }
  .ct-side{ grid-template-columns:1fr; }
  .ct-form-box{ padding:26px 20px; }
  .ct-cta h2{ font-size:26px; }
}

/* CTA与footer白条 */
body.page-template-page-contact-php .site-content,
body.page-template-page-contact-php #content.site-content{ padding-bottom:0 !important; }
.ct-cta{ background-image:
  linear-gradient(90deg,transparent 0%,rgba(255,255,255,.42) 50%,transparent 100%),
  linear-gradient(120deg,#002a66,#004098 60%,#0a52b8);
  background-size:100% 1px,100% 100%;
  background-position:0 100%,0 0;
  background-repeat:no-repeat;
}

/* v2 联系页修正 */
.ct-card-ico.ct-ico-svg svg{ width:22px; height:22px; display:block; }
/* 表单重叠修复：label/input 约束宽度 */
.ct-form label{ min-width:0; width:100%; }
.ct-row{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.ct-form input,.ct-form textarea{ min-width:0; width:100%; box-sizing:border-box; }

/* v3: 微信/WhatsApp图标配色 */
.ct-ico-wechat{ background:#e8f7ee; color:#07c160; }
.ct-ico-wa{ background:#e6f7ee; color:#25d366; }

/* v3: 公众号卡片重新设计 */
.ct-qr{ padding:0; overflow:hidden; border-radius:13px; }
.ct-qr-head{ background:linear-gradient(135deg,#0a3b8f,#004098); color:#fff; padding:20px 20px 22px; text-align:center; position:relative; }
.ct-qr-head::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent); }
.ct-qr-badge{ display:inline-block; font-size:10px; font-weight:800; letter-spacing:1px; color:#9fc4f5;
  border:1px solid rgba(255,255,255,.25); border-radius:12px; padding:3px 10px; margin-bottom:10px; }
.ct-qr-head h4{ font-size:17px; margin:0 0 6px; color:#fff; text-align:center; }
.ct-qr-head p{ font-size:11.5px; color:#bcd6f6; margin:0; text-align:center; }
.ct-qr-body{ padding:22px 20px 20px; text-align:center; background:#fff; }
.ct-qr-frame{ display:inline-block; padding:10px; background:#fff; border:1px solid #e6ecf5; border-radius:10px;
  box-shadow:0 4px 14px rgba(0,40,98,.08); }
.ct-qr-frame img{ width:140px; height:140px; object-fit:contain; display:block; }
.ct-qr-tip{ display:block; font-size:11.5px; color:#8899b0; margin-top:14px; }


/* v4: 公众号卡片改微信绿 */
.ct-qr-head{ background:linear-gradient(135deg,#1aad19,#07c160) !important; }
.ct-qr-badge{ color:#e8f8ed !important; border-color:rgba(255,255,255,.4) !important; }
.ct-qr-head p{ color:#e8f8ed !important; }
.ct-qr-head::after{ background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent) !important; }

/* ============================================================
   v5: biger-leads 表单样式（匹配联系页深蓝主题）
   ============================================================ */
.ct-form-box .biger-leads-form{
  max-width:100%; margin:0; font-family:inherit;
}
.ct-form-box .biger-leads-grid{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px 20px;
}
.ct-form-box .biger-leads-field{ margin-bottom:0; }
.ct-form-box .biger-leads-label{
  display:block; font-size:12.5px; font-weight:700; color:#55647a;
  margin-bottom:8px;
}
.ct-form-box .biger-leads-req{ color:#e2231a; }
.ct-form-box .biger-leads-input{
  width:100%; padding:12px 14px; font-family:inherit; font-size:14px;
  color:#1a2b4a; background:#f8fafd; border:1px solid #dce4ef;
  border-radius:9px; box-sizing:border-box;
  transition:border-color .2s, background .2s, box-shadow .2s;
}
.ct-form-box .biger-leads-input::placeholder{ color:#a8b5c6; }
.ct-form-box .biger-leads-input:focus{
  outline:none; background:#fff; border-color:#004098;
  box-shadow:0 0 0 3px rgba(0,64,152,.10);
}
.ct-form-box textarea.biger-leads-input{ min-height:110px; resize:vertical; line-height:1.6; }
.ct-form-box select.biger-leads-input{ cursor:pointer; }
.ct-form-box .biger-leads-desc{ font-size:12px; color:#8899b0; margin:6px 0 0; }
.ct-form-box .biger-leads-field--consent .biger-leads-opt,
.ct-form-box .biger-leads-field[data-type="consent"] label{
  display:flex; align-items:flex-start; gap:8px; font-size:12.5px;
  color:#66788f; line-height:1.6; cursor:pointer;
}
.ct-form-box .biger-leads-submit{
  display:inline-flex; align-items:center; justify-content:center;
  font-family:inherit; font-size:15px; font-weight:800; color:#fff;
  background:linear-gradient(135deg,#e2231a,#c81d15);
  border:0; border-radius:9px; padding:14px 38px; cursor:pointer;
  box-shadow:0 8px 22px rgba(226,35,26,.26);
  transition:transform .2s, box-shadow .2s;
}
.ct-form-box .biger-leads-submit:hover{
  transform:translateY(-2px); box-shadow:0 12px 28px rgba(226,35,26,.34);
}
.ct-form-box .biger-leads-notice{
  padding:12px 16px; border-radius:9px; font-size:13.5px; font-weight:600;
  margin-bottom:18px; background:#e8f7ee; color:#0a7d3c;
  border:1px solid #bfe8d0;
}
/* ============================================================
   v6: 去掉字段嵌套边框（minimal皮肤 + 强制清理）
   ============================================================ */
/* 字段外层：彻底清除任何卡片式边框/背景/阴影/padding，避免层层嵌套 */
.ct-form-box .biger-leads-field,
.ct-form-box .biger-leads-skin--minimal .biger-leads-field,
.ct-form-box .biger-leads-skin--card .biger-leads-field{
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  margin-bottom:0;
}
/* 输入框：覆盖minimal的下划线，恢复浅底圆角 */
.ct-form-box .biger-leads-input,
.ct-form-box .biger-leads-skin--minimal .biger-leads-input{
  border:1px solid #dce4ef !important;
  border-bottom:1px solid #dce4ef !important;
  border-radius:9px !important;
  background:#f8fafd !important;
  padding:12px 14px !important;
}
.ct-form-box .biger-leads-input:focus,
.ct-form-box .biger-leads-skin--minimal .biger-leads-input:focus{
  border-color:#004098 !important;
  background:#fff !important;
  box-shadow:0 0 0 3px rgba(0,64,152,.10) !important;
}
/* 隐私同意勾选区也去掉可能的边框 */
.ct-form-box .biger-leads-field--consent{
  border:0 !important; background:transparent !important;
  box-shadow:none !important; padding:0 !important;
}
/* 提交结果提示（模板读取 bl_status 输出） */
.ct-form-msg{
  padding:13px 16px; border-radius:9px; font-size:13.5px; font-weight:600;
  margin:0 0 20px; line-height:1.6;
}
.ct-form-msg.ok{ background:#e8f7ee; color:#0a7d3c; border:1px solid #bfe8d0; }
.ct-form-msg.err{ background:#fdecec; color:#b3201a; border:1px solid #f6c9c6; }
@media (max-width:640px){
  .ct-form-box .biger-leads-grid{ grid-template-columns:1fr; gap:16px; }
  .ct-form-box .biger-leads-submit{ width:100%; }
}
