:root {
  --ct-red: #0879c9;
  --ct-red-dark: #0669b0;
  --ct-ink: #172231;
  --ct-navy: #18354d;
  --ct-muted: #687483;
  --ct-line: #d9e0e5;
  --ct-soft: #eef2f4;
  --ct-white: #fff;
}

.contact-site { overflow: hidden; background: var(--ct-white); color: var(--ct-ink); }
.contact-site *, .contact-site *::before, .contact-site *::after { box-sizing: border-box; }
.ct-container { width: calc(100% - 64px); max-width: 1320px; margin: 0 auto; }
.ct-page { font-family: "Microsoft YaHei", Arial, sans-serif; }

.ct-hero { position: relative; height: 640px; margin-top: 100rem; overflow: hidden; background: var(--ct-navy); }
.ct-hero > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; animation: ct-banner-wave 2s alternate; }
@keyframes ct-banner-wave {
  0% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.ct-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,25,39,.78), rgba(9,25,39,.34) 46%, rgba(9,25,39,.05) 78%); }
.ct-hero-copy { position: absolute; top: 50%; right: 0; left: 0; transform: translateY(-50%); color: #fff; }
.ct-hero-copy p, .ct-heading > p, .ct-message-intro > p { margin: 0 0 14px; color: var(--ct-red); font: 700 13px/1.4 Arial, sans-serif; }
.ct-hero-copy p { color: #0879c9; opacity: 1; }
/* 顶部大图文字出现效果：与新闻中心 .inbanner-news 完全一致（2026-11-09 客户要求）——
   英文小标立即显示，主标题 2s、副标 3s 依次 fadeInUp2 从下方 70px 淡入上浮；
   fadeInUp2 关键帧定义在 style-2.2.css（本页已引用） */
.ct-hero-copy h1 { margin: 0 0 20px; font-size: clamp(44px, 5vw, 68px); line-height: 1; font-weight: 600; letter-spacing: 0; -webkit-animation: fadeInUp2 2s alternate; animation: fadeInUp2 2s alternate; }
.ct-hero-copy span { display: block; max-width: 580px; font-size: 18px; line-height: 1.8; -webkit-animation: fadeInUp2 3s alternate; animation: fadeInUp2 3s alternate; }

.ct-section-nav { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid var(--ct-line); background: rgba(255,255,255,.96); }
.ct-section-nav .ct-container { display: flex; min-height: 68px; align-items: stretch; justify-content: center; gap: 48px; }
.ct-section-nav a { position: relative; display: flex; min-width: 112px; align-items: center; justify-content: center; color: #4f5b66; font-size: 15px; }
.ct-section-nav a::after { content: ""; position: absolute; right: 12px; bottom: -1px; left: 12px; height: 2px; background: var(--ct-red); transform: scaleX(0); transition: transform .2s ease; }
.ct-section-nav a:hover, .ct-section-nav a:focus-visible, .ct-section-nav a.active { color: var(--ct-red); }
.ct-section-nav a:hover::after, .ct-section-nav a:focus-visible::after, .ct-section-nav a.active::after { transform: scaleX(1); }

.ct-contact { padding: 96px 0 112px; scroll-margin-top: 68px; }
.ct-heading { max-width: 720px; margin-bottom: 50px; }
.ct-heading h2, .ct-message-intro h2 { margin: 0 0 18px; font-size: clamp(30px, 3vw, 42px); line-height: 1.2; font-weight: 600; letter-spacing: 0; }
.ct-heading > span, .ct-message-intro > span { color: var(--ct-muted); font-size: 16px; line-height: 1.8; }
.ct-contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr); min-height: 470px; border-top: 3px solid var(--ct-red); background: var(--ct-soft); }
.ct-company { display: flex; padding: clamp(42px, 5vw, 68px); flex-direction: column; justify-content: center; }
.ct-company h3 { margin: 0 0 22px; font-size: 25px; line-height: 1.4; font-weight: 600; }
.ct-company-intro { width: 100%; max-width: none; margin: 0 0 36px; color: var(--ct-muted); font-size: 15px; line-height: 1.9; text-align: justify; text-align-last: left; }
.ct-details { margin: 0; }
.ct-details > div { display: grid; width: 100%; grid-template-columns: 96px minmax(0, 1fr); padding: 18px 0; align-items: start; border-top: 1px solid rgba(23,34,49,.12); }
.ct-details dt { color: #7b858e; font-size: 13px; }
.ct-details dd { margin: 0; color: var(--ct-ink); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.ct-details a { color: inherit; }
.ct-details a:hover { color: var(--ct-red); }
.ct-actions { display: flex; margin-top: 36px; align-items: center; gap: 28px; }
/* 「填写留言」与表单「提交留言」统一：同尺寸、同白字加粗；并修正点击后 a:visited(#666) 把按钮文字变灰的问题 */
.ct-primary-action,
.ct-primary-action:link,
.ct-primary-action:visited { display: inline-flex; width: 150px; height: 50px; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; background: #0879c9; }
.ct-primary-action:hover, .ct-primary-action:focus-visible { color: #fff; background: #0669b0; }
.ct-text-action { color: var(--ct-ink); font-weight: 600; }
.ct-text-action span { color: var(--ct-red); }

.ct-map { position: relative; height: 470px; overflow: hidden; color: var(--ct-ink); background: #dce5ea; }
#dituContent { position: absolute; inset: 0; z-index: 1; width: 100%; height: 470px; }
.ct-map-loading { margin: 0; padding-top: 220px; color: var(--ct-muted); text-align: center; }
.ct-map-fallback,
.ct-map-error { display: flex; min-height: 470px; margin: 0; padding: 32px; align-items: center; justify-content: center; flex-direction: column; gap: 10px; background: var(--ct-soft); text-align: center; }
.ct-map-error strong { color: var(--ct-ink); font-size: 18px; }
.ct-map-error span { max-width: 420px; color: var(--ct-muted); font-size: 14px; line-height: 1.7; }
.ct-map-info { min-width: 220px; padding: 4px 2px; text-align: center; }
.ct-map-info strong,
.ct-map-info span { display: block; }
.ct-map-info strong { margin-bottom: 8px; color: var(--ct-ink); font-size: 16px; line-height: 1.4; }
.ct-map-info span { color: var(--ct-muted); font-size: 13px; line-height: 1.6; }
.ct-map .tdt-infowindow-content { margin: 12px 14px; }

.ct-message { padding: 112px 0; scroll-margin-top: 68px; color: #fff; background: var(--ct-navy); }
.ct-message-layout { display: grid; grid-template-columns: minmax(300px,.72fr) minmax(0,1.28fr); gap: clamp(56px, 8vw, 112px); align-items: start; }
.ct-message-intro > p { color: #0879c9; }
.ct-message-intro > span { color: rgba(255,255,255,.68); }
.ct-message-intro ol { margin: 48px 0 0; padding: 0; list-style: none; }
.ct-message-intro li { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 18px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.15); }
.ct-message-intro li b { color: #0879c9; font: 700 13px/1.5 Arial, sans-serif; }
.ct-message-intro li strong, .ct-message-intro li small { display: block; }
.ct-message-intro li strong { margin-bottom: 6px; font-size: 15px; }
.ct-message-intro li small { color: rgba(255,255,255,.54); font-size: 13px; }
.ct-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; padding: clamp(32px, 4vw, 52px); color: var(--ct-ink); background: #fff; }
.ct-field { position: relative; min-width: 0; }
.ct-field-wide { grid-column: 1 / -1; }
.ct-field label { display: block; margin-bottom: 10px; color: #394550; font-size: 13px; font-weight: 600; }
.ct-field label span { color: var(--ct-red); }
.ct-field input, .ct-field textarea { display: block; width: 100%; border: 1px solid #ccd5dc; border-radius: 0; outline: 0; background: #f8fafb; font: inherit; font-size: 14px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.ct-field input { height: 48px; padding: 0 15px; }
.ct-field textarea { min-height: 150px; padding: 14px 15px 32px; resize: vertical; line-height: 1.7; }
.ct-field input:focus, .ct-field textarea:focus { border-color: var(--ct-red); background: #fff; box-shadow: 0 0 0 3px rgba(8,121,201,.08); }
.ct-field.is-invalid input, .ct-field.is-invalid textarea { border-color: var(--ct-red); }
.ct-field > small { position: absolute; right: 12px; bottom: 10px; color: #87919a; font-size: 11px; }
.ct-captcha > div { display: grid; grid-template-columns: minmax(0,1fr) 116px; gap: 10px; }
.ct-captcha button { height: 48px; padding: 0; overflow: hidden; border: 1px solid #ccd5dc; background: #fff; cursor: pointer; }
.ct-captcha button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ct-field-error { margin: 7px 0 0; color: var(--ct-red); font-size: 12px; }
.ct-form-footer { grid-column: 1 / -1; display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 24px; }
.ct-form-footer p { margin: 0; color: #3f7454; font-size: 13px; line-height: 1.5; }
.ct-form-footer p.is-error { color: var(--ct-red); }
.ct-form-footer button { width: 150px; height: 50px; flex: 0 0 auto; border: 0; border-radius: 0; color: #fff; background: var(--ct-red); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .2s; }
.ct-form-footer button:hover, .ct-form-footer button:focus-visible { background: var(--ct-red-dark); outline: 0; }
.ct-form-footer button:disabled { opacity: .58; cursor: wait; }

@media (max-width: 1024px) {
  .ct-hero { height: 320px; margin-top: 60px; }
  .ct-contact-layout { grid-template-columns: 1fr; }
  .ct-map, #dituContent { height: 420px; }
  .ct-map-fallback, .ct-map-error { min-height: 420px; }
  .ct-message-layout { grid-template-columns: 1fr; }
  .ct-message-intro { max-width: 680px; }
}

@media (max-width: 767px) {
  .ct-container { width: calc(100% - 32px); }
  .ct-hero { height: 320px; }
  .ct-hero > img { object-position: 54% center; }
  .ct-hero-copy h1 { font-size: 42px; }
  .ct-hero-copy span { max-width: 86%; font-size: 15px; }
  .ct-section-nav .ct-container { width: 100%; min-height: 56px; gap: 0; }
  .ct-section-nav a { width: 50%; min-width: 0; }
  .ct-contact, .ct-message { padding: 68px 0; }
  .ct-heading { margin-bottom: 34px; }
  .ct-contact-layout { min-height: 0; }
  .ct-company { padding: 34px 24px; }
  .ct-details > div { grid-template-columns: 78px minmax(0,1fr); }
  .ct-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .ct-map, #dituContent { height: 360px; }
  .ct-map-fallback, .ct-map-error { min-height: 360px; }
  .ct-message-layout { gap: 40px; }
  .ct-form { grid-template-columns: 1fr; gap: 20px; padding: 28px 20px; }
  .ct-field-wide, .ct-form-footer { grid-column: auto; }
  .ct-form-footer { align-items: stretch; flex-direction: column; }
  .ct-form-footer button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-hero > img, .ct-hero-copy h1, .ct-hero-copy span { animation: none; }
  .ct-page *, .ct-page *::before, .ct-page *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* ===== 联系页顶部大图全屏高（2026-11-02 用户要求「内页大图都设置成全屏」）===== */
.ct-hero { height: calc(100vh - 100px) !important; min-height: 320px; }
@media (max-width: 1200px) {
  .ct-hero { height: calc(100vh - 60px) !important; min-height: 300px; }
}

/* ===== 2026-11-27 手机端适配：顶部大图完整显示（不再被裁） =====
   宽幅图(约2.47:1)在窄屏用 cover+固定320px会被裁，改为图片按原比例完整显示(contain)，
   文案缩小居中叠加 */
@media (max-width: 767px) {
  .ct-hero {
    height: auto !important;
    min-height: 0 !important;
  }
  .ct-hero > img {
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    animation: none !important;
    transform: none !important;
  }
  .ct-hero-shade { background: rgba(6, 26, 48, .5) !important; }
  .ct-hero-copy {
    top: 50% !important;
    padding: 0 16px !important;
    transform: translateY(-50%) !important;
    text-align: center !important;
  }
  .ct-hero-copy p { margin-bottom: 4px !important; font-size: 11px !important; letter-spacing: 2px !important; }
  .ct-hero-copy h1 { margin-bottom: 6px !important; font-size: 28px !important; }
  .ct-hero-copy span { max-width: 100% !important; font-size: 13px !important; line-height: 1.5 !important; }
}
