/* ============================================================
   Contact Us page (page-contact.php)
   对照 MINEWSEMI-公司介绍-联系我们页面.jpg 设计稿：
   青色面包屑条 + 全宽建筑主图 + Contact Us（左信息卡列 / 右地图+地址）
   + Get In Touch 表单（浅灰输入框 + 验证码 + 深蓝胶囊按钮）
   ============================================================ */
.contact-page-v2 { color: #2b3a4a; background: #fff; font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif; }
.contact-page-v2 .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Breadcrumb bar ---------- */
.ct-crumb { background: #7fc4d4; color: #fff; font-size: 13px; }
.ct-crumb .container { display: flex; align-items: center; gap: 8px; padding: 9px 0; flex-wrap: wrap; }
.ct-crumb a { color: #fff; text-decoration: none; }
.ct-crumb a:hover { text-decoration: underline; }
.ct-crumb span { opacity: .85; }

/* ---------- Hero ---------- */
.ct-hero { position: relative; min-height: 340px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: flex-end; padding: 40px 6vw 40px 0; }
/* 未上传主图时的品牌渐变占位（避免拿带文字的旧 banner 叠字造成重影） */
.ct-hero--ph { background-image: linear-gradient(118deg, #17325c 0%, #2b6f92 52%, #7fc4d4 100%); justify-content: center; padding: 40px 24px; }
.ct-hero-3d { font-size: clamp(40px, 8vw, 92px); font-weight: 800; letter-spacing: 2px; color: #eef8fb; text-shadow: 0 6px 18px rgba(10, 20, 60, .35); }

/* ---------- Section shell ---------- */
.ct-section { position: relative; padding: 72px 0 40px; }
.ct-section + .ct-section { padding-top: 20px; }
/* 设计稿：内容区左缘一团淡青光晕 */
.ct-section--glow::before {
    content: ''; position: absolute; left: -220px; top: 90px; width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(127, 196, 212, .38) 0%, rgba(127, 196, 212, 0) 68%);
    pointer-events: none; z-index: 0;
}
.ct-section > .container { position: relative; z-index: 1; }

/* ---------- Section heading ----------
   两侧「电路走线」装饰不在本文件定义：已把 .ct-heading 并入主题 style.css
   里 .sec-deco / .section-title / .co-title / .sh-title 的分组选择器，
   全站单点维护；此处只保留本页排版（字号/颜色/下边距）。 */
.ct-heading { margin: 0 0 48px; font-size: 34px; font-weight: 800; color: #17325c; line-height: 1.2; white-space: nowrap; }

/* ---------- Two-column: cards / map ---------- */
/* 两列底部对齐：stretch 让右列等高，多出的高度全部给地图，
   Company Address 卡片的底边与左列最后一张卡片底边齐平（同设计稿）。 */
.ct-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 28px; align-items: stretch; }
.ct-cards { display: flex; flex-direction: column; gap: 22px; }
.ct-right { display: flex; flex-direction: column; }
.ct-card { background: #f5f7fa; border-radius: 12px; padding: 24px 28px; display: flex; gap: 18px; align-items: flex-start; }
.ct-card-icon { flex: 0 0 34px; width: 34px; text-align: center; font-size: 26px; line-height: 1.25; color: #2f4a6a; }
.ct-card-body { min-width: 0; }
.ct-card h4 { margin: 0 0 12px; font-size: 17px; font-weight: 700; color: #17325c; line-height: 1.4; }
.ct-card .ct-line { display: block; margin: 0; font-size: 14px; line-height: 2.1; color: #5a6b7b; word-break: break-word; }
.ct-card .ct-line b { font-weight: 400; color: #5a6b7b; }
.ct-store-link { color: #5a6b7b; text-decoration: underline; }
.ct-store-link:hover { color: #2aa9c4; }

/* Stay connected socials */
.ct-social { display: flex; gap: 30px; flex-wrap: wrap; }
.ct-social-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.ct-social-item i { font-size: 26px; line-height: 1; color: #2aa9c4; transition: .2s; }
.ct-social-item span { font-size: 12px; color: #5a6b7b; }
.ct-social-item:hover i { color: #17325c; }
.ct-social-item:hover span { color: #2aa9c4; }

/* Right column: map + address */
.ct-map { position: relative; flex: 1 1 auto; height: auto; min-height: 400px; border-radius: 12px; overflow: hidden; background: #e9eff2; box-shadow: 0 6px 18px rgba(20, 40, 90, .06); }
.ct-map iframe, .ct-map img { position: relative; z-index: 1; background: transparent; }
.ct-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.ct-map img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 地图加载不了（如 Google 被墙）时透出的兜底层：iframe 不绘制时即可看到 */
.ct-map-fallback {
    position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 26px;
    background: #eef5f8; color: #5a6b7b; font-size: 14px; line-height: 1.8;
}
.ct-map-fallback > i { font-size: 30px; color: #2aa9c4; }
.ct-map-fallback a { display: inline-flex; align-items: center; gap: 8px; background: #17325c; color: #fff; padding: 10px 24px; border-radius: 24px; font-size: 13px; text-decoration: none; }
.ct-map-fallback a i { font-size: 13px; color: #fff; }
.ct-map-fallback a:hover { background: #0f2544; color: #fff; }
.ct-addr { margin-top: 22px; background: #f5f7fa; border-radius: 12px; padding: 24px 28px; display: flex; gap: 18px; align-items: flex-start; }
.ct-addr h4 { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: #17325c; }
.ct-addr p { margin: 0; font-size: 14px; line-height: 1.95; color: #5a6b7b; }

/* ---------- Get In Touch form ---------- */
.ct-form-wrap { max-width: 1140px; margin: 0 auto; }
.ct-msg { display: none; padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.ct-msg.success { display: block; background: #e7f7ee; color: #1f7a44; border: 1px solid #b7e4c7; }
.ct-msg.error { display: block; background: #fdecec; color: #b23b3b; border: 1px solid #f3c2c2; }
.ct-form .ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.ct-form input,
.ct-form textarea {
    width: 100%; box-sizing: border-box; padding: 16px 18px; border: 1px solid transparent;
    border-radius: 8px; background: #f2f4f7; font-size: 14px; color: #2b3a4a; font-family: inherit;
}
.ct-form input::placeholder, .ct-form textarea::placeholder { color: #a9b4bd; }
.ct-form input:focus, .ct-form textarea:focus { outline: none; border-color: #2aa9c4; background: #fff; }
.ct-form textarea { min-height: 230px; margin-bottom: 24px; resize: vertical; }
.ct-code-row { display: flex; align-items: center; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.ct-code-row input { width: 170px; height: 52px; padding: 0 18px; }
.ct-code-box {
    min-width: 118px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
    /* 右侧多留 8px 抵消 letter-spacing 的尾随间距，保证字面视觉居中 */
    padding: 0 30px 0 22px; background: #f2f4f7; border-radius: 8px;
    color: #9fb0bb; letter-spacing: 8px; font-size: 19px; font-weight: 600; cursor: pointer; user-select: none;
}
.ct-submit-row { text-align: center; }
.ct-submit {
    background: #17325c; color: #fff; border: none; padding: 13px 46px; border-radius: 26px;
    font-size: 15px; cursor: pointer; transition: .2s;
}
.ct-submit:hover { background: #0f2544; }
.ct-submit:disabled { opacity: .65; cursor: default; }
.ct-note { text-align: center; font-size: 12px; color: #b6c0c8; margin: 16px 0 0; }

/* ---------- WooCommerce layout hardening（与 getin-form 同样的坑：
   woocommerce-layout.css 会给 form .form-row 加 clearfix 伪元素，
   若主题/插件把我们的行容器当 .form-row 处理会打乱两列栅格） ---------- */
.ct-form .ct-row::before,
.ct-form .ct-row::after { content: none !important; display: none !important; }
.ct-form .ct-row { padding: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .ct-grid { grid-template-columns: 1fr; align-items: start; }
    .ct-map { min-height: 320px; }
    .ct-heading { font-size: 27px; }
}
@media (max-width: 640px) {
    .ct-hero { min-height: 220px; justify-content: center; padding: 30px 20px; text-align: center; }
    .ct-section { padding: 48px 0 24px; }
    .ct-heading { font-size: 23px; white-space: normal; margin-bottom: 32px; }
    .ct-form .ct-row { grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
    .ct-form textarea { min-height: 160px; }
    .ct-card, .ct-addr { padding: 20px; gap: 14px; }
}
