/* ============================================================
   Contact Us — 全部样式作用域在 .page-contact 下
   与 home.css 保持一致：global-tokens.css 提供色彩令牌。
   ============================================================ */

/* ---- Reset & Base ---- */
.page-contact,
.page-contact * {
  box-sizing: border-box;
}
.page-contact {
  font-family: 'Open Sans', 'Cabin', system-ui, sans-serif;
  color: var(--brand-text);
  background: var(--brand-paper);
  line-height: 1.65;
}
.page-contact a {
  color: var(--brand-red);
  text-decoration: none;
}
.page-contact a:hover {
  text-decoration: underline;
}
.page-contact .contact-card-value a {
  color: rgba(255,255,255,.9);
}
.page-contact img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---- Layout container ---- */
.contact-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* ============================================================
   Hero
   ============================================================ */
.contact-hero {
  position: relative;
  min-height: clamp(280px, 40vh, 480px);
  display: flex;
  align-items: center;
  background-image: var(--contact-hero-bg);
  background-size: cover;
  background-position: center;
  background-color: var(--brand-dark-1);
}
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(17, 24, 39, 0.82) 0%,
    rgba(17, 24, 39, 0.50) 60%,
    rgba(17, 24, 39, 0.30) 100%
  );
}
.contact-hero .contact-container {
  position: relative;
  z-index: 1;
  max-width: none;
  margin-inline: 0;
  padding: clamp(48px, 6vw, 80px) max(24px, calc((100vw - 1240px) / 2));
}
@supports (min-height: 100dvh) {
  .contact-hero {
    min-height: clamp(280px, 40dvh, 480px);
  }
}
.contact-hero-content {
  max-width: 720px;
  text-align: left;
}
.contact-eyebrow {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 2px;
  background: var(--brand-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.contact-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 16px;
}
.contact-hero .contact-lead {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,.88);
  margin: 0;
  max-width: 580px;
}

/* ============================================================
   Info Cards Strip
   ============================================================ */
.contact-cards-wrap {
  background: var(--brand-dark-3);
  padding-block: 0;
}
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
}
.contact-card {
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 32px);
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-card:last-child {
  border-right: none;
}
.contact-card-icon {
  color: var(--brand-red-bright);
  margin-bottom: 4px;
  line-height: 1;
  width: 28px;
  height: 28px;
}
.contact-card-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.contact-card-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.contact-card-value {
  font-size: 14px;
  color: rgba(255,255,255,.9);
  line-height: 1.6;
  margin: 0;
}
a.contact-card-value:hover {
  color: var(--brand-red-bright);
  text-decoration: none;
}

/* ============================================================
   Main Section: kicker / h2 / grid
   ============================================================ */
.contact-section {
  padding-block: clamp(72px, 8vw, 112px);
}
.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

/* Left column */
.contact-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 12px;
}
.contact-main-left h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: var(--brand-ink);
  line-height: 1.2;
  margin: 0 0 16px;
}
.contact-section p {
  font-size: 15px;
  color: var(--brand-text);
  margin: 0 0 20px;
}

/* Decorative line pack (matches home.css) */
.contact-line-pack {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
}
.contact-line-pack span {
  height: 3px;
  border-radius: 2px;
  background: var(--brand-red);
  display: block;
}
.contact-line-pack span:nth-child(1) { width: 60px; }
.contact-line-pack span:nth-child(2) { width: 12px; opacity: .5; }
.contact-line-pack span:nth-child(3) { width: 8px;  opacity: .3; }
.contact-line-pack span:nth-child(4) { width: 4px;  opacity: .15; }

/* Points list */
.contact-points {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-points li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--brand-text);
}
.contact-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-red);
}

/* ============================================================
   Form Box (right column)
   ============================================================ */
.contact-form-wrap {
  position: sticky;
  top: 32px;
}
.contact-form-box {
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 40px);
}
.contact-form-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-ink);
  margin: 0 0 24px;
}
.contact-form-note {
  font-size: 13px;
  color: var(--brand-muted);
  margin: 16px 0 0;
  text-align: center;
}

/* ---- Fallback form layout ---- */
.contact-fallback-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- Notification banners ---- */
.contact-notice {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.contact-notice--success {
  border: 1px solid #4CAF50;
  background: #e8f5e9;
  color: #2e7d32;
}
.contact-notice--error {
  border: 1px solid var(--brand-red);
  background: #fdf2f2;
  color: #b91c1c;
}
.cf-row {
  display: grid;
  gap: 16px;
}
.cf-row--2 {
  grid-template-columns: 1fr 1fr;
}
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cf-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-ink);
}
.cf-field label span {
  color: var(--brand-red);
}
.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--brand-line-strong);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: var(--brand-ink);
  background: var(--brand-paper);
  transition: border-color .2s;
  resize: vertical;
}
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-bg);
}
.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: var(--brand-muted);
}

/* ---- CTA Button ---- */
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  background: var(--brand-red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: .03em;
  transition: background .2s, transform .15s;
  width: 100%;
}
.contact-btn:hover {
  background: var(--brand-red-dark);
  transform: translateY(-1px);
}

/* ============================================================
   Map
   ============================================================ */
.contact-map-wrap {
  width: 100%;
  height: clamp(280px, 40vw, 480px);
  overflow: hidden;
  background: var(--brand-soft);
}
.contact-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================
   Responsive
   ============================================================ */

/* ---- ≤ 980px: 单栏网格 ---- */
@media (max-width: 980px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-form-wrap {
    position: static;
  }
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-card:nth-child(2) {
    border-right: none;
  }
  .contact-card:nth-child(3) {
    border-top: 1px solid rgba(255,255,255,.08);
    border-right: 1px solid rgba(255,255,255,.08);
  }
  .contact-card:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,.08);
    border-right: none;
  }
}

/* ---- ≤ 640px ---- */
@media (max-width: 640px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .contact-card:last-child {
    border-bottom: none;
  }
  .contact-card:nth-child(2),
  .contact-card:nth-child(3),
  .contact-card:nth-child(4) {
    border-right: none;
    border-top: none;
  }
  .cf-row--2 {
    grid-template-columns: 1fr;
  }
}

/* ---- ≤ 480px ---- */
@media (max-width: 480px) {
  .contact-hero h1 {
    font-size: 26px;
  }
  .contact-form-box {
    padding: 20px 16px;
  }
}
