/* Base styles for .page-contact */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-contact__section {
  padding: 60px 0;
  text-align: center;
}

.page-contact__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__section-description {
  font-size: 18px;
  color: #1F2D3D;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as body handles header offset */
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 450px; /* Ensure hero section has a minimum height */
}

.page-contact__hero-image-container {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-contact__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  background: #FFFFFF; /* Card BG for light background */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Overlap with image slightly */
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.page-contact__main-title {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  color: #1F2D3D;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-contact__intro-text {
  font-size: 18px;
  color: #1F2D3D;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-contact__btn-secondary {
  background: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  margin-left: 15px;
}

.page-contact__btn-secondary:hover {
  background: #2F6BFF;
  color: #FFFFFF;
}

/* Contact Info Section */
.page-contact__contact-info-section {
  background-color: #F4F7FB; /* Background */
}

.page-contact__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__info-card {
  background: #FFFFFF; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__info-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__info-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 10px;
}

.page-contact__info-card-text {
  font-size: 16px;
  color: #1F2D3D;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__info-link {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  margin-top: auto;
  display: block;
  padding: 10px 0;
}

.page-contact__info-link:hover {
  text-decoration: underline;
}

.page-contact__note {
  font-size: 14px;
  color: #555;
  margin-top: 10px;
}

.page-contact__social-links {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

.page-contact__social-link {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
}

.page-contact__social-link:hover {
  text-decoration: underline;
}

/* Contact Form Section */
.page-contact__contact-form-section {
  background: #2F6BFF; /* Main color for dark background */
  color: #ffffff; /* White text for dark background */
}

.page-contact__contact-form-section .page-contact__section-title,
.page-contact__contact-form-section .page-contact__section-description {
  color: #ffffff;
}

.page-contact__form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark bg */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-contact__form-group {
  margin-bottom: 20px;
}

.page-contact__form-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #1F2D3D; /* Text Main */
  font-size: 16px;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #777;
}

.page-contact__form-textarea {
  resize: vertical;
}

.page-contact__submit-button {
  width: auto;
  padding: 15px 40px;
  margin-top: 20px;
}

.page-contact__form-note {
  font-size: 14px;
  color: #D6E2FF;
  margin-top: 20px;
  text-align: center;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #F4F7FB; /* Background */
}

.page-contact__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-contact__faq-item {
  background: #FFFFFF; /* Card BG */
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #D6E2FF;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #1F2D3D;
  cursor: pointer;
  list-style: none;
}

.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

.page-contact__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #2F6BFF;
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: #1F2D3D;
}

.page-contact__faq-answer p {
  margin-bottom: 15px;
}

.page-contact__faq-answer .page-contact__btn-secondary {
  margin-left: 0;
  padding: 10px 20px;
  font-size: 16px;
}

/* Why Contact Section */
.page-contact__why-contact-section {
  background: #2F6BFF; /* Main color for dark background */
  color: #ffffff;
}

.page-contact__why-contact-section .page-contact__section-title,
.page-contact__why-contact-section .page-contact__section-description {
  color: #ffffff;
}

.page-contact__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__benefit-card {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark bg */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__benefit-icon {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__benefit-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-contact__benefit-text {
  font-size: 16px;
  color: #D6E2FF;
  flex-grow: 1;
}

/* Final CTA Section */
.page-contact__final-cta-section {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
}

.page-contact__cta-inner {
  background: #FFFFFF; /* Card BG */
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  margin: 0 auto;
}

.page-contact__cta-inner .page-contact__section-title {
  margin-bottom: 15px;
}

.page-contact__cta-inner .page-contact__section-description {
  margin-bottom: 40px;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* General image responsiveness */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__container {
    padding: 20px 30px;
  }

  .page-contact__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }

  .page-contact__main-title {
    font-size: clamp(28px, 3.8vw, 45px);
  }

  .page-contact__section-title {
    font-size: clamp(24px, 3.2vw, 38px);
  }

  .page-contact__info-grid,
  .page-contact__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-contact__faq-question {
    padding: 18px 20px;
    font-size: 17px;
  }

  .page-contact__faq-answer {
    padding: 0 20px 18px 20px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-contact__hero-section {
    padding-top: 10px !important; /* Small top padding as body handles header offset */
    min-height: 350px;
  }

  .page-contact__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
    max-width: calc(100% - 30px); /* Account for padding */
  }

  .page-contact__main-title {
    font-size: clamp(26px, 7vw, 38px);
    letter-spacing: -0.5px;
  }

  .page-contact__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* 深色导语区 (Using section-description as general intro) */
  .page-contact__section-description {
    font-size: 16px;
    padding: 0 15px;
    margin-bottom: 30px;
  }

  /* 博客网格 - Not directly applicable here, but general grid adaptation */
  .page-contact__info-grid,
  .page-contact__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  /* 通用图片与容器 */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__section {
    padding: 40px 0;
  }

  /* 按钮与按钮容器 */
  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 16px;
    margin-left: 0 !important;
  }

  .page-contact__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  /* FAQ 与其他模块 */
  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-contact__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 15px;
  }

  .page-contact__form {
    padding: 30px 20px;
  }

  .page-contact__section-title {
    font-size: clamp(22px, 6vw, 32px);
  }

  .page-contact__info-card,
  .page-contact__benefit-card {
    padding: 25px;
  }

  .page-contact__info-icon,
  .page-contact__benefit-icon {
    max-width: 150px;
  }

  .page-contact__final-cta-section {
    padding: 50px 0;
  }

  .page-contact__cta-inner {
    padding: 30px 15px;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: clamp(24px, 8vw, 32px);
  }

  .page-contact__section-title {
    font-size: clamp(20px, 7vw, 28px);
  }

  .page-contact__faq-question {
    font-size: 15px;
    padding: 12px 15px;
  }

  .page-contact__faq-answer {
    font-size: 14px;
    padding: 0 15px 12px 15px;
  }

  .page-contact__form {
    padding: 20px 15px;
  }
}