.page-faq__hero-section {
  background-color: #017439;
  color: #ffffff;
  padding: var(--header-offset, 120px) 0 80px 0; /* Fallback for header offset */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

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

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FFFF00; /* Custom color for H1 based on '注册和登录字体' */
}

.page-faq__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #C30808; /* Custom color for '注册' */
  color: #FFFF00; /* Custom color for '注册和登录字体' */
  border: 2px solid #C30808;
}

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom color for '注册和登录字体' */
  border: 2px solid #FFFF00;
}

.page-faq__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808; /* Inverse color on hover */
}

.page-faq__content-area {
  background-color: #FFFFFF;
  color: #333333;
  padding: 60px 0;
}

.page-faq__section-title {
  font-size: 2.2em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-faq__image-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

.page-faq__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: justify;
}

.page-faq__faq-list {
  margin-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.page-faq__faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  transition: color 0.3s ease;
}

.page-faq__faq-question:hover {
  color: #017439;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  text-align: justify;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 15px 20px 15px;
}

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

.page-faq__faq-answer .page-faq__text-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: 5px;
}

.page-faq__faq-answer .page-faq__text-link:hover {
  text-decoration: underline;
  color: #005f2e;
}

.page-faq__conclusion {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.page-faq__cta-buttons--bottom {
  margin-top: 30px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.8em;
  }

  .page-faq__hero-description {
    font-size: 1.1em;
  }

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

  .page-faq__faq-question {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-faq__hero-section {
    padding-top: 0; /* shared.css handles body padding-top */
    padding-bottom: 60px;
    min-height: auto;
  }

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

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

  /* 按钮与按钮容器 */
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq 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;
  }

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

  /* 其他内容模块 */
  .page-faq__content-area {
    padding: 40px 0;
  }

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

  .page-faq__text-block {
    font-size: 1em !important;
    line-height: 1.6;
  }

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

  .page-faq__faq-answer {
    padding: 0 10px;
  }

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 10px 10px 15px 10px;
  }

  .page-faq__conclusion {
    margin-top: 40px;
    padding-top: 20px;
  }

  .page-faq__cta-buttons--bottom {
    margin-top: 20px;
  }
}