/* FFC 联系我们 V0.1 - page-scoped styles only.
   Does not modify homepage, factory-strength page, OEM page, quality page, news page, about page, navigation, footer, Rank Math, database, or plugins. */
.ffc-contact-v01 {
  --contact-bg: #06101c;
  --contact-bg-deep: #02070d;
  --contact-panel: rgba(8, 22, 36, 0.88);
  --contact-panel-strong: rgba(12, 28, 44, 0.94);
  --contact-line: rgba(124, 175, 244, 0.2);
  --contact-line-soft: rgba(255, 255, 255, 0.08);
  --contact-blue: #126ee8;
  --contact-blue-bright: #2f8cff;
  --contact-text: #f1f6ff;
  --contact-muted: rgba(219, 230, 244, 0.74);
  --contact-dim: rgba(166, 182, 205, 0.64);
  --contact-max: 1180px;
  --contact-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255,255,255,.03) inset;
  color: var(--contact-text);
  background:
    radial-gradient(circle at 78% 0%, rgba(18, 110, 232, 0.15), transparent 30%),
    radial-gradient(circle at 8% 18%, rgba(18, 110, 232, 0.10), transparent 28%),
    linear-gradient(180deg, var(--contact-bg) 0%, var(--contact-bg-deep) 100%);
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}
body:has(.ffc-contact-v01) { margin: 0 !important; padding: 0 !important; background: #06101c !important; }
body:has(.ffc-contact-v01) .wp-site-blocks { margin: 0 !important; padding: 0 !important; gap: 0 !important; background: #06101c !important; }
body:has(.ffc-contact-v01) main,
body:has(.ffc-contact-v01) .entry-content,
body:has(.ffc-contact-v01) .wp-block-post-content,
body:has(.ffc-contact-v01) .wp-block-group,
body:has(.ffc-contact-v01) .is-layout-constrained { background: transparent !important; }
body:has(.ffc-contact-v01) .wp-site-blocks > *, body:has(.ffc-contact-v01) .wp-site-blocks > * + * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.ffc-contact-v01 *, .ffc-contact-v01 *::before, .ffc-contact-v01 *::after { box-sizing: border-box; }
.ffc-contact-v01 a { color: inherit; text-decoration: none; }
.ffc-contact-main { margin: 0 !important; padding: 0 !important; overflow: hidden; }
.ffc-contact-hero { position: relative; min-height: 430px; overflow: hidden; background: #03101d; border-bottom: 1px solid var(--contact-line); }
.ffc-contact-hero__bg { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(2, 9, 17, 0.96) 0%, rgba(2, 9, 17, 0.88) 42%, rgba(2, 9, 17, 0.60) 72%, rgba(2, 9, 17, 0.50) 100%), linear-gradient(180deg, rgba(2, 9, 17, 0.10) 0%, rgba(2, 9, 17, 0.34) 58%, rgba(6, 16, 28, 0.96) 100%), url('../img/oem-packaging-boxes.jpg'); background-size: cover; background-position: center center; filter: saturate(0.84) contrast(1.04) brightness(0.56); transform: scale(1.015); }
.ffc-contact-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 28% 8%, rgba(47, 140, 255, 0.16), transparent 22%), repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 74px); opacity: 0.40; pointer-events: none; }
.ffc-contact-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 118px; background: linear-gradient(180deg, rgba(6, 16, 28, 0) 0%, rgba(6, 16, 28, 0.96) 100%); pointer-events: none; }
.ffc-contact-hero__inner, .ffc-contact-panel, .ffc-contact-help, .ffc-contact-cta { width: min(calc(100% - 68px), var(--contact-max)); margin-left: auto; margin-right: auto; }
.ffc-contact-hero__inner { position: relative; z-index: 2; padding: 70px 0 112px; }
.ffc-contact-kicker, .ffc-contact-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--contact-blue-bright); font-size: 14px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.ffc-contact-kicker::before, .ffc-contact-eyebrow::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--contact-blue-bright); box-shadow: 0 0 14px rgba(47, 140, 255, 0.8); flex: 0 0 auto; }
.ffc-contact-kicker em { font-style: normal; color: rgba(220, 231, 246, 0.62); font-weight: 700; }
.ffc-contact-hero h1 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(48px, 6vw, 84px); line-height: 1.02; font-weight: 850; letter-spacing: -0.055em; text-shadow: 0 18px 36px rgba(0, 0, 0, 0.42); }
.ffc-contact-hero__lead { width: min(100%, 900px); margin: 26px 0 0; color: rgba(255, 255, 255, 0.90); font-size: clamp(17px, 1.55vw, 21px); line-height: 1.84; font-weight: 520; letter-spacing: -0.015em; }
.ffc-contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.ffc-contact-btn, .ffc-contact-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; padding: 0 22px; font-size: 14px; font-weight: 800; cursor: pointer; transition: transform .28s cubic-bezier(.34,1.56,.64,1), border-color .28s cubic-bezier(.4,0,.2,1), background .28s cubic-bezier(.4,0,.2,1), box-shadow .28s cubic-bezier(.4,0,.2,1); }
.ffc-contact-btn:hover, .ffc-contact-submit:hover { transform: translateY(-2px); }
.ffc-contact-btn--primary, .ffc-contact-submit { color: #06101c; border: 0; background: linear-gradient(135deg, #7fb2ff 0%, var(--contact-blue-bright) 62%, #126ee8 100%); box-shadow: 0 18px 44px rgba(47, 140, 255, 0.30); }
.ffc-contact-btn--ghost { color: var(--contact-text); border: 1px solid rgba(232, 237, 246, 0.26); background: rgba(255, 255, 255, 0.045); }
.ffc-contact-btn--ghost:hover { border-color: rgba(47, 140, 255, 0.70); box-shadow: 0 16px 38px rgba(47, 140, 255, 0.16); }
.ffc-contact-panel { position: relative; z-index: 4; margin-top: -62px; }
.ffc-contact-grid { display: grid; grid-template-columns: minmax(310px, 0.42fr) minmax(0, 0.58fr); gap: 22px; align-items: stretch; }
.ffc-contact-info, .ffc-contact-form-card, .ffc-contact-help, .ffc-contact-cta { border: 1px solid var(--contact-line); background: linear-gradient(145deg, rgba(47, 140, 255, 0.07), transparent 48%), linear-gradient(180deg, var(--contact-panel), rgba(5, 17, 29, 0.90)); box-shadow: var(--contact-shadow); backdrop-filter: blur(16px); }
.ffc-contact-info, .ffc-contact-form-card { border-radius: 26px; padding: clamp(24px, 3.6vw, 38px); }
.ffc-contact-info h2, .ffc-contact-form-card h2, .ffc-contact-section-head h2, .ffc-contact-cta h2 { margin: 0; color: #fff; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; font-weight: 850; letter-spacing: -0.045em; }
.ffc-contact-info__list { display: grid; gap: 14px; margin: 28px 0 0; }
.ffc-contact-info__list div { padding: 17px 18px; border-radius: 18px; border: 1px solid var(--contact-line-soft); background: rgba(255, 255, 255, 0.035); }
.ffc-contact-info__list dt { color: var(--contact-dim); font-size: 13px; line-height: 1.4; }
.ffc-contact-info__list dd { margin: 8px 0 0; color: #f3f8ff; font-size: 17px; line-height: 1.58; font-weight: 720; }
.ffc-contact-info__list a:hover { color: #d8eaff; }
.ffc-contact-form-card__desc, .ffc-contact-cta p { margin: 16px 0 0; color: var(--contact-muted); font-size: 16px; line-height: 1.78; }

.ffc-contact-form-slot {
  margin-top: 24px;
  color: var(--contact-text);
  background: transparent !important;
}

.ffc-contact-form-slot > * {
  margin-block-start: 0;
}

.ffc-contact-form-slot > * + * {
  margin-block-start: 16px;
}

.ffc-contact-form-slot form,
.ffc-contact-form-slot .wpcf7,
.ffc-contact-form-slot .wpforms-container,
.ffc-contact-form-slot .gform_wrapper,
.ffc-contact-form-slot .nf-form-cont {
  margin: 0;
  max-width: 100%;
  color: var(--contact-text);
  background: transparent !important;
}

.ffc-contact-form-slot label,
.ffc-contact-form-slot .wpforms-field-label,
.ffc-contact-form-slot .gfield_label,
.ffc-contact-form-slot .nf-field-label label {
  color: rgba(238, 246, 255, 0.84) !important;
  font-size: 14px;
  font-weight: 760;
}

.ffc-contact-form-slot input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.ffc-contact-form-slot textarea,
.ffc-contact-form-slot select,
.ffc-contact-form-slot .wpforms-field input,
.ffc-contact-form-slot .wpforms-field textarea,
.ffc-contact-form-slot .gform_wrapper input,
.ffc-contact-form-slot .gform_wrapper textarea,
.ffc-contact-form-slot .nf-form-cont input,
.ffc-contact-form-slot .nf-form-cont textarea {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid rgba(124, 175, 244, 0.20) !important;
  border-radius: 16px !important;
  outline: 0 !important;
  background: rgba(3, 12, 22, 0.78) !important;
  color: #f4f8ff !important;
  padding: 14px 15px !important;
  font: inherit !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
}

.ffc-contact-form-slot textarea {
  min-height: 150px;
  resize: vertical;
}

.ffc-contact-form-slot input::placeholder,
.ffc-contact-form-slot textarea::placeholder {
  color: rgba(207, 221, 239, 0.42) !important;
}

.ffc-contact-form-slot input:not([type="submit"]):not([type="button"]):focus,
.ffc-contact-form-slot textarea:focus,
.ffc-contact-form-slot select:focus {
  border-color: rgba(47, 140, 255, 0.72) !important;
  background: rgba(4, 16, 29, 0.92) !important;
  box-shadow: 0 0 0 4px rgba(47, 140, 255, 0.12) !important;
}

.ffc-contact-form-slot input[type="submit"],
.ffc-contact-form-slot button[type="submit"],
.ffc-contact-form-slot .wpforms-submit,
.ffc-contact-form-slot .gform_button,
.ffc-contact-form-slot .nf-form-cont input[type="button"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0 22px !important;
  color: #06101c !important;
  background: linear-gradient(135deg, #7fb2ff 0%, var(--contact-blue-bright) 62%, #126ee8 100%) !important;
  box-shadow: 0 18px 44px rgba(47, 140, 255, 0.30) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  cursor: pointer;
}

.ffc-contact-form-slot .wpcf7-response-output,
.ffc-contact-form-slot .wpforms-confirmation-container,
.ffc-contact-form-slot .gform_confirmation_message,
.ffc-contact-form-slot .nf-response-msg {
  margin: 18px 0 0 !important;
  border-radius: 16px !important;
  border-color: rgba(124, 175, 244, 0.28) !important;
  background: rgba(3, 12, 22, 0.66) !important;
  color: rgba(238, 246, 255, 0.88) !important;
  padding: 14px 16px !important;
}
.ffc-contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.ffc-contact-field { min-width: 0; }
.ffc-contact-field--full { grid-column: 1 / -1; }
.ffc-contact-field label { display: block; margin: 0 0 9px; color: rgba(238, 246, 255, 0.84); font-size: 14px; font-weight: 760; }
.ffc-contact-field label span { color: var(--contact-blue-bright); }
.ffc-contact-field input, .ffc-contact-field textarea { width: 100%; max-width: 100%; border: 1px solid rgba(124, 175, 244, 0.20); border-radius: 16px; outline: 0; background: rgba(3, 12, 22, 0.78); color: #f4f8ff; padding: 14px 15px; font: inherit; font-size: 15px; line-height: 1.5; transition: border-color .22s cubic-bezier(.4,0,.2,1), box-shadow .22s cubic-bezier(.4,0,.2,1), background .22s cubic-bezier(.4,0,.2,1); }
.ffc-contact-field textarea { resize: vertical; min-height: 150px; }
.ffc-contact-field input::placeholder, .ffc-contact-field textarea::placeholder { color: rgba(207, 221, 239, 0.42); }
.ffc-contact-field input:focus, .ffc-contact-field textarea:focus { border-color: rgba(47, 140, 255, 0.72); background: rgba(4, 16, 29, 0.92); box-shadow: 0 0 0 4px rgba(47, 140, 255, 0.12); }
.ffc-contact-submit { grid-column: 1 / -1; width: fit-content; margin-top: 4px; }
.ffc-contact-help { margin-top: clamp(54px, 7vw, 86px); border-radius: 30px; padding: clamp(26px, 4vw, 42px); }
.ffc-contact-section-head { max-width: 720px; margin-bottom: 22px; }
.ffc-contact-help__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ffc-contact-help__grid article { min-height: 108px; display: flex; align-items: center; border: 1px solid var(--contact-line-soft); border-radius: 20px; background: rgba(255, 255, 255, 0.035); color: rgba(238, 246, 255, 0.88); font-size: 16px; line-height: 1.7; font-weight: 720; padding: 20px; }
.ffc-contact-cta { margin-top: clamp(54px, 7vw, 86px); margin-bottom: clamp(64px, 8vw, 110px); border-radius: 30px; padding: clamp(28px, 4.4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: linear-gradient(135deg, rgba(47, 140, 255, 0.16), rgba(255, 255, 255, 0.02) 42%, rgba(47, 140, 255, 0.08)), var(--contact-panel-strong); }
.ffc-contact-cta .ffc-contact-actions { margin-top: 0; justify-content: flex-end; }
@media (max-width: 980px) { .ffc-contact-grid, .ffc-contact-cta { grid-template-columns: 1fr; } .ffc-contact-help__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ffc-contact-cta .ffc-contact-actions { justify-content: flex-start; } }
@media (max-width: 640px) { .ffc-contact-hero__inner, .ffc-contact-panel, .ffc-contact-help, .ffc-contact-cta { width: min(calc(100% - 28px), var(--contact-max)); } .ffc-contact-hero { min-height: auto; } .ffc-contact-hero__inner { padding: 76px 0 88px; } .ffc-contact-actions, .ffc-contact-btn, .ffc-contact-submit { width: 100%; } .ffc-contact-form, .ffc-contact-help__grid { grid-template-columns: 1fr; } .ffc-contact-info, .ffc-contact-form-card, .ffc-contact-help, .ffc-contact-cta { border-radius: 22px; } .ffc-contact-info__list dd { font-size: 16px; word-break: break-word; } }

/* Contact V0.2 cleanup: keep the existing visual system, remove duplicated contact column, and make the form area single-column. */
.ffc-contact-grid--single {
  display: block;
  width: min(100%, 920px);
  margin-left: auto;
  margin-right: auto;
}

.ffc-contact-grid--single .ffc-contact-form-card {
  width: 100%;
}

.ffc-contact-grid--single .ffc-contact-form-slot > .wp-block-heading,
.ffc-contact-grid--single .ffc-contact-form-slot > h1,
.ffc-contact-grid--single .ffc-contact-form-slot > h2,
.ffc-contact-grid--single .ffc-contact-form-slot > h3 {
  display: none !important;
}

.ffc-contact-grid--single .ffc-contact-form-slot > p:not(:has(form)) {
  display: none !important;
}

.ffc-contact-cta .ffc-contact-actions {
  gap: 12px;
}

@media (max-width: 640px) {
  .ffc-contact-grid--single {
    width: 100%;
  }

  .ffc-contact-cta .ffc-contact-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ffc-contact-cta .ffc-contact-actions .ffc-contact-btn {
    width: 100%;
  }
}
