.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--bg-color, #1a1a2e);
}

.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 40px 20px; /* Small top padding, no var(--header-offset) */
  background-color: #017439; /* Brand primary color for hero background */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-faq__hero-content {
  max-width: 800px;
  z-index: 2;
  margin-bottom: 20px;
}

.page-faq__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
}

.page-faq__title {
  font-size: clamp(2.2em, 4vw, 3em);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFFF00; /* Custom font color for title */
}

.page-faq__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-faq__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFFFF; /* Ensures WCAG AA contrast with #C30808 */
  border: 2px solid #C30808;
}

.page-faq__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

.page-faq__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-faq__faq-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background for FAQ section */
  color: #333333;
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-faq__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  list-style: none;
  position: relative;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-item summary:hover {
  background-color: #e5e5e5;
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: '−';
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

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

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

.page-faq__image-in-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__cta-section {
  text-align: center;
  padding: 40px;
  margin-top: 50px;
  background-color: #017439; /* Dark background for CTA */
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__cta-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom font color for CTA title */
}

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none; /* Hidden by default, shown on mobile */
}

.page-faq__mobile-btn-register,
.page-faq__mobile-btn-login {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  margin: 0 5px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFFFF; /* Ensures WCAG AA contrast with #C30808 */
}

.page-faq__mobile-btn-register:hover,
.page-faq__mobile-btn-login:hover {
  background-color: #a00606;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-faq__hero-content {
    max-width: 700px;
  }

  .page-faq__title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

  .page-faq__section-title {
    font-size: 2.2em;
  }

  .page-faq__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  .page-faq__cta-section {
    padding: 30px;
  }

  .page-faq__cta-title {
    font-size: 1.8em;
  }
}

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

  /* HERO 主图区域 */
  .page-faq__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-faq__hero-content {
    margin-bottom: 15px !important;
  }

  .page-faq__title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
    margin-bottom: 10px !important;
  }

  .page-faq__description {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }

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

  .page-faq__container,
  .page-faq__section,
  .page-faq__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-faq__faq-section {
    padding: 40px 0 !important; /* Padding handled by container now */
  }

  .page-faq__section-title {
    font-size: 2em !important;
    margin-bottom: 15px !important;
  }

  .page-faq__section-description {
    font-size: 1em !important;
    margin-bottom: 30px !important;
  }

  .page-faq__faq-item summary {
    padding: 15px !important;
    font-size: 1em !important;
  }

  .page-faq__faq-answer {
    padding: 15px !important;
    font-size: 0.95em !important;
  }

  .page-faq__cta-section {
    padding: 30px 20px !important;
    margin-top: 30px !important;
  }

  .page-faq__cta-title {
    font-size: 1.6em !important;
  }

  .page-faq__cta-description {
    font-size: 1em !important;
  }

  /* 按钮与按钮容器 */
  .page-faq__button-group {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 移动端浮动按钮 */
  .page-faq__mobile-cta {
    display: flex !important;
  }

  .page-faq__mobile-btn-register,
  .page-faq__mobile-btn-login {
    font-size: 1em !important;
    padding: 10px 0 !important;
  }
}