*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg-primary);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.75;
}

/* ==========================================
   Section Label
   ========================================== */
.SectionLabel {
  display: none;
}

/* ==========================================
   BrandHero -- Contact (layout variants only, spacing from shared CSS)
   ========================================== */


.BrandHero--contact .BrandHero__layout {
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  gap: clamp(32px, 3vw, 56px);
}

.BrandHero--contact .BrandHero__text {
  max-width: min(100%, 840px);
}

.BrandHero--contact .BrandHero__subtitle {
  font-size: var(--text-body);
  max-width: min(100%, 760px);
}

.BrandHero--contact .BrandHero__visual svg {
  width: 100%;
  max-width: 560px;
  height: auto;
}

/* Process visual animation */
.process-visual-node {
  transition: transform 0.3s ease;
}
.process-visual-connector {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawConnector 2s ease-out forwards;
}
@keyframes drawConnector {
  to { stroke-dashoffset: 0; }
}

/* ==========================================
   Contact Main Section
   ========================================== */
.contact-section {
  padding: var(--space-12) 0 var(--space-16);
  position: relative;
  z-index: 4;
}

.contact-container {
  max-width: var(--container-main);
  margin: 0 auto;
  padding: 0 var(--container-padding-inline);
}

.contact-grid {
  display: grid;
  grid-template-columns: 38% 62%;
  gap: var(--space-10);
}

/* ==========================================
   Left: Info Cards (38%)
   ========================================== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.info-card {
  background: var(--color-bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-default);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.info-card:hover {
  box-shadow: var(--shadow-md);
}

.info-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.info-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card__icon--blue {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.info-card__icon--cyan {
  background: var(--color-brand-future-cyan-light);
  color: var(--color-brand-future-cyan);
}

.info-card__icon--purple {
  background: var(--color-brand-accent-purple-light);
  color: var(--color-brand-accent-purple);
}

.info-card__icon--tech {
  background: var(--color-brand-tech-blue-light);
  color: var(--color-brand-tech-blue);
}

.info-card__icon svg {
  width: 18px;
  height: 18px;
}

.info-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: #1F2329;
  margin: 0;
  line-height: 1.3;
}

.info-card__body {
  font-size: 15px;
  color: #64748B;
  line-height: 1.7;
}

.info-card__body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-card__body li {
  position: relative;
  padding-left: var(--space-4);
  margin-bottom: var(--space-2);
}

.info-card__body li:last-child {
  margin-bottom: 0;
}

.info-card__body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.info-card__body p {
  font-size: 15px;
  color: #64748B;
  margin: 0;
}

.info-card__body a {
  color: var(--color-primary);
  text-decoration: underline;
}

.info-card__body a:hover {
  color: var(--color-primary-hover);
}

/* Process steps within info card */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.process-step {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1F2329;
  margin: 0 0 2px 0;
}

.step-content p {
  font-size: 14px;
  color: #64748B;
  margin: 0;
  line-height: 1.6;
}

/* Contact time highlight */
.contact-time-highlight {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 10px;
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

/* ==========================================
   Right: Form Card (62%)
   ========================================== */
.contact-form-card {
  background: var(--color-bg-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-default);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.contact-form-card__title {
  font-size: 28px;
  font-weight: 600;
  color: #1F2329;
  margin-bottom: var(--space-2);
}

.contact-form-card__desc {
  font-size: 15px;
  color: #64748B;
  margin-bottom: var(--space-8);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1F2329;
  margin-bottom: var(--space-2);
}

.form-group label .required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-group .input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #1F2329;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group .input:hover {
  border-color: var(--color-border-hover);
}

.form-group .input:focus {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-group .input::placeholder {
  color: #94A3B8;
}

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238C95A3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea.input {
  height: auto;
  min-height: 100px;
  padding: 12px 16px;
  resize: vertical;
  line-height: 1.6;
}

/* Error states */
.error-message {
  display: none;
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-2);
}

.error-message.visible {
  display: block;
}

.form-group.has-error .input {
  border-color: var(--color-error);
}

.form-group.has-error .input:focus {
  box-shadow: 0 0 0 3px var(--color-error-light);
}

/* Privacy consent */
.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  margin-bottom: var(--space-5);
}

.privacy-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.privacy-consent__label {
  font-size: 14px;
  color: #64748B;
  line-height: 1.5;
}

.privacy-consent__label a {
  color: var(--color-primary);
  text-decoration: underline;
}

.privacy-consent__label a:hover {
  color: var(--color-primary-hover);
}

/* Submit button */
.form-actions {
  margin-top: var(--space-2);
}

.btn-submit {
  width: 100%;
  height: 48px;
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-brand-tech-blue) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-brand-tech-blue) 0%, var(--color-brand-accent-purple) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-submit:hover:not(:disabled)::before {
  opacity: 1;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 61, 255, 0.35);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-submit .btn-text {
  position: relative;
  z-index: 1;
}

.btn-submit .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
  position: relative;
  z-index: 1;
}

.btn-submit.is-loading .spinner {
  display: block;
}

.btn-submit.is-loading .btn-text {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Global error */
.form-global-error {
  display: none;
  padding: var(--space-3) var(--space-4);
  background: var(--color-error-light);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-top: var(--space-4);
}

.form-global-error.visible {
  display: block;
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-12) var(--space-8);
}

.form-success.is-visible {
  display: block;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-6);
  background: var(--color-success-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 36px;
  height: 36px;
  color: var(--color-success);
}

.form-success h3 {
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.form-success p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.lead-id {
  display: inline-block;
  background: var(--color-bg-secondary);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-6);
}

.next-steps {
  text-align: left;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 400px;
  margin: 0 auto;
}

.next-steps h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.next-steps ol {
  padding-left: var(--space-5);
  margin: 0;
}

.next-steps li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

.next-steps li:last-child {
  margin-bottom: 0;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
  position: relative;
  padding: var(--space-16) 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0A1F5C 0%, #0A3DFF 50%, #7B61FF 100%);
}

.cta-container {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--container-padding-inline);
  text-align: center;
}

.cta-card {
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.cta-card__title {
  font-size: var(--text-section-title);
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.cta-card__desc {
  font-size: var(--text-lead);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-8);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.cta-card__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

.btn--white-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  background: #FFFFFF;
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn--white-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  color: var(--color-primary-hover);
}

.btn--outline-white-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn--outline-white-lg:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
  color: #FFFFFF;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
  /* BrandHero responsive handled by shared CSS */

  .BrandHero--contact .BrandHero__layout {
    grid-template-columns: 1fr;
  }

  .BrandHero--contact .BrandHero__visual {
    display: none;
  }

  .BrandHero--contact .BrandHero__text {
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .contact-info {
    order: 2;
  }

  .contact-form-card {
    order: 1;
  }
}

@media (max-width: 768px) {
  /* BrandHero responsive handled by shared CSS */

  .contact-section {
    padding: var(--space-10) 0;
  }

  .contact-form-card {
    padding: var(--space-6);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .info-card {
    padding: var(--space-5);
  }

  .cta-card__actions {
    flex-direction: column;
  }

  .btn--white-lg,
  .btn--outline-white-lg {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* BrandHero responsive handled by shared CSS */

  .contact-form-card {
    padding: var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Global Layout
   ========================================================================== */

:root {
  --xlx-page-inset: 24px; /* <=390：左右各 12px */
  --xlx-page-gutter: 12px;
  --container-wide: calc(100vw - var(--xlx-page-inset));
  --container-main: calc(100vw - var(--xlx-page-inset));
  --container-content: calc(100vw - var(--xlx-page-inset));
  --container-padding-inline: 0px;
}

@media (min-width: 391px) {
  :root {
    --xlx-page-inset: 28px;
    --xlx-page-gutter: 14px;
  }
}

@media (min-width: 431px) {
  :root {
    --xlx-page-inset: 32px;
    --xlx-page-gutter: 16px;
  }
}

@media (min-width: 768px) {
  :root {
    --xlx-page-inset: 48px;
    --xlx-page-gutter: 24px;
  }
}

@media (min-width: 1024px) {
  :root {
    --xlx-page-inset: 72px;
    --xlx-page-gutter: 36px;
  }
}

@media (min-width: 1280px) {
  :root {
    --xlx-page-inset: 96px;
    --xlx-page-gutter: 48px;
  }
}

@media (min-width: 1440px) {
  :root {
    --xlx-page-inset: 144px;
    --xlx-page-gutter: 72px;
  }
}

@media (min-width: 1600px) {
  :root {
    --xlx-page-inset: 220px;
    --xlx-page-gutter: 110px;
  }
}

@media (min-width: 1920px) {
  :root {
    --xlx-page-inset: 360px;
    --xlx-page-gutter: 180px;
  }
}

/* 主背景继续全宽；这里只控制内部内容版心 */
.container,
.site-container,
.SiteHeader__inner {
  max-width: var(--container-main);
}

/* 防止网格/双栏子项因长文本撑破版心 */
.container > *,
.site-container > *,
.SiteHeader__inner > * {
  min-width: 0;
}


/* CTA */
.cta-card__actions .btn {
  transition: background-color .2s ease, border-color .2s ease, color .2s ease,
              box-shadow .2s ease, transform .2s ease;
}
.cta-card__actions .btn:hover {
  background: rgba(255,255,255,.14);
  color: #FFFFFF;
  border-color: rgba(255,255,255,.55);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.cta-card__actions .btn:focus-visible {
  outline: 2px solid rgba(255,255,255,.90);
  outline-offset: 3px;
}
.cta-card__actions .btn:active { transform: translateY(0); }
