.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Explicitly set for content area */
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding as per instruction */
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for hero image */
}

.page-contact__hero-content {
  padding: 40px 20px;
  max-width: 800px;
  z-index: 1;
  text-align: center;
}

.page-contact__hero-title {
  font-size: clamp(2.2em, 3.5vw, 2.8em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.page-contact__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-contact__hero-cta {
  display: inline-block;
  margin-top: 20px;
}

/* Section Titles and Descriptions */
.page-contact__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

/* Methods Section */
.page-contact__methods-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-contact__method-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
}

.page-contact__method-icon {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

.page-contact__method-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-contact__method-text {
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-contact__form-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 0 auto 40px auto;
  display: block;
  border-radius: 8px;
}

.page-contact__contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #dddddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-contact__form-submit {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  cursor: pointer;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: #f0f8ff; /* Light blue tint */
}

.page-contact__faq-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 0 auto 40px auto;
  display: block;
  border-radius: 8px;
}

.page-contact__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-contact__faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0f8ff;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

.page-contact__faq-question::-webkit-details-marker, /* Hide default marker */
.page-contact__faq-question::marker {
  display: none;
}

.page-contact__faq-item[open] .page-contact__faq-question {
  background-color: #e6f7ff;
  border-bottom: 1px solid #cceeff;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

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

.page-contact__commitment-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-contact__commitment-list li {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-contact__commitment-list li strong {
  color: #ffffff;
}

.page-contact__commitment-cta {
  display: inline-block;
  margin-top: 30px;
}

/* Button Styles */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-contact__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-contact__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-contact__btn-secondary:hover {
  background-color: #e6f7ff;
  color: #1a8cc4;
  border-color: #1a8cc4;
}

/* Dark background text color override */
.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__section-description {
  color: #ffffff;
}

/* General image styling for content areas */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

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

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

  .page-contact__hero-title {
    font-size: 2.5em;
  }

  .page-contact__section-title {
    font-size: 2em;
  }

  .page-contact__methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-contact__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-contact__faq-answer {
    padding: 12px 20px 15px;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__container {
    padding: 0 15px; /* Adjust padding for mobile */
  }

  /* HERO 主图区域 */
  .page-contact__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .page-contact__hero-image {
    max-height: 300px; /* Adjust hero image height for mobile */
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__hero-content {
    padding: 20px 0;
  }

  .page-contact__hero-title {
    font-size: clamp(1.8em, 7vw, 2.2em) !important; /* Smaller font size for mobile */
    line-height: 1.3;
  }

  .page-contact__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* 深色导语区 (Using section-description for intro) */
  .page-contact__section-title {
    font-size: 1.8em !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .page-contact__section-description {
    font-size: 1em;
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  /* 博客网格 (Not applicable for this page, but general grid adaptability) */
  .page-contact__methods-grid {
    grid-template-columns: 1fr !important; /* Single column for methods on mobile */
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

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

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

  /* 按钮与按钮容器 */
  .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-left: 15px;
    padding-right: 15px;
    text-align: center;
  }

  .page-contact__hero-cta {
    width: calc(100% - 30px) !important; /* Account for parent padding */
  }

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

  .page-contact__method-card {
    padding: 20px;
  }

  .page-contact__contact-form {
    padding: 20px;
    margin: 0 15px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px;
  }

  .page-contact__form-submit {
    padding: 12px;
    font-size: 1em;
  }

  /* FAQ 与其他模块 */
  .page-contact__faq-list {
    margin: 0 15px;
  }

  .page-contact__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-contact__faq-answer {
    padding: 12px 20px 15px;
  }

  .page-contact__commitment-list {
    padding: 0 15px;
  }

  .page-contact__commitment-list li {
    font-size: 1em;
    padding: 15px;
  }
}

@media (max-width: 549px) {
  .page-contact__methods-grid {
    grid-template-columns: 1fr;
  }
}