.page-faq {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text on light body background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly set to match body */
}

.page-faq__hero-section {
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  gap: 30px;
  padding: 10px 20px 60px; /* Small top padding to avoid double header offset */
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}

.page-faq__hero-image {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default to cover for desktop */
  border-radius: 8px;
  min-height: 200px; /* Minimum size requirement */
}

.page-faq__hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Use clamp for H1 */
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

.page-faq__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Important for responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-faq__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-faq__btn-primary:hover {
  background-color: #d46c00;
  border-color: #d46c00;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-faq__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-list-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.page-faq__section-title {
  font-size: clamp(24px, 3vw, 38px);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__section-subtitle {
  font-size: 17px;
  color: #555555;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: #fdfdfd;
}
details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
  display: none;
}
details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: #f5f5f5;
  color: #26A9E0;
}
details.page-faq__faq-item[open] summary.page-faq__faq-question {
  background: #26A9E0;
  color: #FFFFFF;
  border-bottom: 1px solid #1a83b3;
}
details.page-faq__faq-item[open] summary.page-faq__faq-question .page-faq__faq-toggle {
  color: #FFFFFF;
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: inherit; /* Inherit color from summary */
}
.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease, color 0.3s ease;
}
details.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to X */
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  color: #444444;
}
details.page-faq__faq-item .page-faq__faq-answer p {
  margin-top: 15px;
  margin-bottom: 0;
}
details.page-faq__faq-item .page-faq__faq-answer p a {
  color: #26A9E0;
  text-decoration: underline;
}
details.page-faq__faq-item .page-faq__faq-answer p a:hover {
  color: #1a83b3;
}

.page-faq__cta-section {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: #26A9E0; /* Brand color as background */
  color: #FFFFFF;
  text-align: center;
  gap: 40px;
}

.page-faq__cta-content {
  flex: 1;
  min-width: 300px;
  max-width: 700px;
  text-align: left;
}

.page-faq__cta-title {
  font-size: clamp(26px, 3.5vw, 42px);
  margin-bottom: 20px;
  font-weight: 700;
  color: #FFFFFF;
}

.page-faq__cta-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-faq__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start; /* Align buttons to the left within content */
  flex-wrap: wrap;
  width: 100%;
}

.page-faq__cta-buttons .page-faq__btn-primary,
.page-faq__cta-buttons .page-faq__btn-secondary {
  border: 2px solid #FFFFFF; /* White border for contrast on blue background */
}

.page-faq__cta-buttons .page-faq__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border-color: #EA7C07;
}
.page-faq__cta-buttons .page-faq__btn-primary:hover {
  background-color: #d46c00;
  border-color: #d46c00;
}

.page-faq__cta-buttons .page-faq__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}
.page-faq__cta-buttons .page-faq__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
}

.page-faq__cta-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: center;
}

.page-faq__cta-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-height: 200px; /* Minimum size requirement */
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__faq-list-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__cta-section {
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column;
  }
  .page-faq__cta-content {
    text-align: center;
    max-width: 100%;
  }
  .page-faq__cta-buttons {
    justify-content: center;
  }
  .page-faq__cta-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-faq__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px !important;
    gap: 20px;
  }
  .page-faq__main-title {
    font-size: 28px !important;
  }
  .page-faq__description {
    font-size: 16px !important;
  }
  .page-faq__hero-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }
  .page-faq__hero-buttons .page-faq__btn-primary,
  .page-faq__hero-buttons .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  /* 通用图片与容器 */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important; /* Enforce minimum size */
  }
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__faq-list-section,
  .page-faq__cta-section,
  .page-faq__cta-content,
  .page-faq__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* FAQ Section */
  .page-faq__faq-list-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .page-faq__section-title {
    font-size: 24px !important;
    margin-bottom: 15px !important;
  }
  .page-faq__section-subtitle {
    font-size: 15px !important;
    margin-bottom: 30px !important;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px !important;
  }
  .page-faq__faq-qtext {
    font-size: 16px !important;
  }
  .page-faq__faq-toggle {
    font-size: 24px !important;
    width: 24px !important;
    margin-left: 10px !important;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 20px !important;
  }

  /* CTA Section */
  .page-faq__cta-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    gap: 30px;
  }
  .page-faq__cta-title {
    font-size: 26px !important;
    margin-bottom: 15px !important;
  }
  .page-faq__cta-description {
    font-size: 16px !important;
    margin-bottom: 25px !important;
  }
  .page-faq__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
  }
  .page-faq__cta-buttons .page-faq__btn-primary,
  .page-faq__cta-buttons .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }
}