.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Body background color */
}

.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #E53935; /* Main brand color */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-faq__hero-content {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
  color: #333333;
}

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

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

.page-faq__btn-primary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-faq__section {
  padding: 60px 0;
}

.page-faq__section--general {
  background-color: #F5F7FA;
}

.page-faq__section--payments {
  background-color: #E53935; /* Main brand color for dark section */
  color: #ffffff;
}

.page-faq__section--security {
  background-color: #F5F7FA;
}

.page-faq__section--support {
  background-color: #E53935; /* Main brand color for dark section */
  color: #ffffff;
}

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

.page-faq__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #E53935;
}

.page-faq__section-title--white {
  color: #ffffff;
}

.page-faq__faq-list {
  margin-top: 30px;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333; /* Ensure text is dark on light background */
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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;
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

.page-faq__faq-answer p {
  margin-bottom: 10px;
}

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__cta-section {
  padding: 80px 0;
  background-color: #F5F7FA;
  text-align: center;
}

.page-faq__cta-section .page-faq__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-faq__cta-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-faq__cta-content {
  max-width: 700px;
  margin-top: 20px;
}

.page-faq__cta-title {
  font-size: 38px;
  color: #E53935;
  margin-bottom: 20px;
  font-weight: 700;
}

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

.page-faq__btn-primary--large {
  padding: 16px 35px;
  font-size: 20px;
  margin-right: 15px;
}

.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  background: #ffffff;
  color: #E53935;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: 2px solid #E53935;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

.page-faq__btn-secondary--large {
  padding: 16px 35px;
  font-size: 20px;
}

/* Ensure all images are responsive */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 25px;
  }
  .page-faq__main-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }
  .page-faq__description {
    font-size: 17px;
  }
  .page-faq__section-title {
    font-size: 32px;
  }
  .page-faq__cta-title {
    font-size: 34px;
  }
  .page-faq__btn-primary--large, .page-faq__btn-secondary--large {
    padding: 14px 30px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-faq__hero-section {
    padding-bottom: 30px;
    padding-top: 10px; /* Small top padding, body handles header offset */
  }
  .page-faq__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }
  .page-faq__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__hero-content {
    padding: 20px;
    margin: 0 15px;
    width: calc(100% - 30px);
    box-sizing: border-box;
  }
  .page-faq__main-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 15px;
  }
  .page-faq__description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  
  /* Section titles */
  .page-faq__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* FAQ items */
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
  }
  .page-faq__faq-qtext {
    font-size: 15px;
  }
  .page-faq__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
  }

  /* CTA Section */
  .page-faq__cta-section {
    padding: 50px 0;
  }
  .page-faq__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-faq__cta-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-faq__cta-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-faq__btn-primary--large,
  .page-faq__btn-secondary--large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    margin-right: 0;
    margin-bottom: 15px; /* Add space between buttons */
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faq__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* 通用图片与容器 */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-faq__container,
  .page-faq__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__section--payments,
  .page-faq__section--support {
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq__section--payments .page-faq__container,
  .page-faq__section--support .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}