/* ============================================================
   Vers Contact Page — 联系我们 /contact
   Brand: #ed1b24 · #c9a962 · cream #faf8f4
   ============================================================ */

:root {
  --vers-contact-cream: #faf8f4;
  --vers-contact-cream-deep: #f3efe8;
  --vers-contact-warm: #fff9f0;
}

/* ---- Light header on contact banner ---- */
.main-page-wrapper:has(.vers-page-banner--contact) .vers-header:not(.fixed) {
  background: linear-gradient(180deg, rgba(250, 248, 244, 0.96) 0%, rgba(250, 248, 244, 0.72) 75%, transparent 100%);
}

.main-page-wrapper:has(.vers-page-banner--contact) .vers-header:not(.fixed) .vers-info-row {
  border-bottom-color: rgba(201, 169, 98, 0.22);
}

/* ============================================================
   Banner — warm connect variant
   ============================================================ */
.vers-page-banner--contact::before {
  background:
    radial-gradient(ellipse 75% 60% at 20% 30%, rgba(201, 169, 98, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse 55% 50% at 88% 55%, rgba(237, 27, 36, 0.09) 0%, transparent 52%),
    radial-gradient(ellipse 40% 35% at 50% 85%, rgba(201, 169, 98, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.85) 0%, var(--vers-contact-cream) 75%);
}

.vers-page-banner--contact .vers-banner-rays {
  background:
    radial-gradient(ellipse 60% 50% at 25% 15%, rgba(201, 169, 98, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 75% 25%, rgba(237, 27, 36, 0.08) 0%, transparent 48%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.6) 0%, transparent 45%);
}

.vers-page-banner--contact .vers-page-banner-accent {
  opacity: 0.42;
  background-image:
    radial-gradient(circle at center, rgba(201, 169, 98, 0.14) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(201, 169, 98, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(201, 169, 98, 0.05) 1px, transparent 1px);
  background-size: 48px 48px, 64px 64px, 64px 64px;
}

.vers-page-banner--contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 60%, rgba(201, 169, 98, 0.06) 0%, transparent 8%),
    radial-gradient(circle at 70% 40%, rgba(201, 169, 98, 0.05) 0%, transparent 6%),
    radial-gradient(circle at 50% 70%, rgba(237, 27, 36, 0.04) 0%, transparent 5%);
  animation: vers-contact-pulse 10s ease-in-out infinite;
}

@keyframes vers-contact-pulse {
  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* ============================================================
   Contact Section
   ============================================================ */
.vers-contact-section {
  padding: 88px 0 0;
  background: #fff;
}

/* ============================================================
   Contact Info Cards
   ============================================================ */
.vers-contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 72px;
}

.vers-contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 44px 32px 40px;
  background: var(--vers-contact-cream);
  border: 1px solid rgba(201, 169, 98, 0.32);
  border-radius: 20px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}

.vers-contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--vers-brand), var(--vers-gold));
  border-radius: 0 0 2px 2px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.vers-contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 169, 98, 0.55);
  box-shadow:
    0 20px 48px rgba(14, 16, 20, 0.08),
    0 0 0 1px rgba(201, 169, 98, 0.12);
}

.vers-contact-card:hover::before {
  opacity: 1;
}

.vers-contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(201, 169, 98, 0.35);
  color: var(--vers-gold);
  font-size: 28px;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.vers-contact-card:hover .vers-contact-card-icon {
  background: var(--vers-brand);
  border-color: var(--vers-gold);
  color: #fff;
  transform: scale(1.06);
}

.vers-contact-card-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--vers-text);
  letter-spacing: 0.04em;
}

.vers-contact-card-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--vers-muted);
}

.vers-contact-card-body a {
  display: inline-block;
  color: var(--vers-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.22s ease;
  margin: 2px 0;
}

.vers-contact-card-body a:hover {
  color: var(--vers-brand);
}

.vers-contact-card-body .vers-contact-web {
  font-size: 18px;
  font-weight: 700;
  color: var(--vers-brand);
  letter-spacing: 0.02em;
}

.vers-contact-card-body .vers-contact-web:hover {
  color: var(--vers-gold);
}

/* ============================================================
   Contact Forms
   ============================================================ */
.vers-contact-form {
  position: relative;
  margin-bottom: 56px;
  padding: 48px 48px 44px;
  background: var(--vers-contact-cream);
  border: 1px solid rgba(201, 169, 98, 0.22);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(14, 16, 20, 0.04);
}

.vers-contact-form:last-of-type {
  margin-bottom: 0;
}

.vers-contact-form-head {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(201, 169, 98, 0.25);
}

.vers-contact-form-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--vers-brand) 0%, #c4141c 100%);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(237, 27, 36, 0.25);
}

.vers-contact-form-icon--repair {
  background: linear-gradient(135deg, var(--vers-gold) 0%, #b8943f 100%);
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.3);
}

.vers-contact-form-title-wrap {
  flex: 1;
  min-width: 0;
}

.vers-contact-form-tag {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vers-gold);
}

.vers-contact-form-title {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  color: var(--vers-text);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.vers-contact-form-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--vers-muted);
}

.vers-contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 24px;
}

.vers-contact-form-grid .vers-contact-field--full {
  grid-column: 1 / -1;
}

.vers-contact-field {
  margin-bottom: 24px;
}

.vers-contact-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vers-text);
  letter-spacing: 0.03em;
}

.vers-contact-field label .vers-required {
  color: var(--vers-brand);
  margin-left: 2px;
}

.vers-contact-field input,
.vers-contact-field textarea,
.vers-contact-field select {
  width: 100%;
  max-width: 100%;
  font-size: 16px;
  font-family: inherit;
  color: var(--vers-text);
  background: #fff;
  border: 1px solid rgba(201, 169, 98, 0.28);
  border-radius: 12px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(14, 16, 20, 0.03);
}

.vers-contact-field input {
  height: 52px;
  padding: 0 18px;
}

.vers-contact-field textarea {
  min-height: 140px;
  padding: 14px 18px;
  resize: vertical;
}

.vers-contact-field select {
  height: 52px;
  padding: 0 18px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a962' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}

.vers-contact-field input:focus,
.vers-contact-field textarea:focus,
.vers-contact-field select:focus {
  border-color: var(--vers-gold);
  box-shadow:
    inset 0 1px 2px rgba(14, 16, 20, 0.03),
    0 0 0 3px rgba(201, 169, 98, 0.15);
}

.vers-contact-field input::placeholder,
.vers-contact-field textarea::placeholder {
  color: rgba(25, 53, 45, 0.35);
}

.vers-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(135deg, var(--vers-brand) 0%, #c4141c 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 8px 28px rgba(237, 27, 36, 0.28);
}

.vers-contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(237, 27, 36, 0.35);
}

.vers-contact-submit:active {
  transform: translateY(0);
}

.vers-contact-submit--gold {
  background: linear-gradient(135deg, var(--vers-gold) 0%, #b8943f 100%);
  box-shadow: 0 8px 28px rgba(201, 169, 98, 0.32);
}

.vers-contact-submit--gold:hover {
  box-shadow: 0 12px 36px rgba(201, 169, 98, 0.42);
}

.vers-contact-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   Map Section
   ============================================================ */
.vers-contact-map-section {
  padding: 80px 0 0;
  background: var(--vers-contact-cream);
}

.vers-contact-map-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px 100px;
}

.vers-contact-map-head {
  text-align: center;
  margin-bottom: 40px;
}

.vers-contact-map-head .vers-section-title {
  margin: 0 0 12px;
}

.vers-contact-map-head .vers-section-title::after {
  margin: 14px auto 0;
}

.vers-contact-map-head p {
  margin: 0;
  font-size: 16px;
  color: var(--vers-muted);
  letter-spacing: 0.04em;
}

.vers-contact-map-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(201, 169, 98, 0.28);
  box-shadow:
    0 24px 64px rgba(14, 16, 20, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  background: #fff;
}

.vers-contact-map-frame .my-map,
.vers-contact-map-frame #wrap {
  margin: 0;
  width: 100%;
  height: 480px;
}

.vers-contact-map-frame .amap-container {
  height: 100%;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
  .vers-contact-section {
    padding: 64px 0 0;
  }

  .vers-contact-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 56px;
  }

  .vers-contact-form {
    padding: 36px 28px 32px;
    border-radius: 20px;
  }

  .vers-contact-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .vers-contact-map-wrap {
    padding-bottom: 72px;
  }

  .vers-contact-map-frame .my-map,
  .vers-contact-map-frame #wrap {
    height: 400px;
  }
}

@media (max-width: 575px) {
  .vers-contact-section {
    padding: 48px 0 0;
  }

  .vers-contact-card {
    padding: 32px 24px 28px;
    border-radius: 16px;
  }

  .vers-contact-card-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin-bottom: 18px;
  }

  .vers-contact-form {
    padding: 28px 20px 24px;
    margin-bottom: 40px;
    border-radius: 16px;
  }

  .vers-contact-form-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
  }

  .vers-contact-map-section {
    padding: 56px 0 0;
  }

  .vers-contact-map-frame {
    border-radius: 16px;
  }

  .vers-contact-map-frame .my-map,
  .vers-contact-map-frame #wrap {
    height: 320px;
  }
}
