.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Aligned with shared.css body padding-top */
  padding-bottom: 40px;
  background-color: #f8f8f8;
}

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

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

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 15px;
}

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

.page-faq__description {
  font-size: 18px;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-small,
.page-faq__btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: #C30808; /* Use custom color for registration/login */
  color: #FFFF00; /* Use custom color for registration/login font */
  border: 2px solid #C30808;
}

.page-faq__btn-primary:hover {
  background: #a80707;
  border-color: #a80707;
  transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
  background: #f0f0f0;
  color: #017439;
  border-color: #017439;
  transform: translateY(-2px);
}

.page-faq__btn-small {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 6px;
  background: #017439;
  color: #ffffff;
  border: 1px solid #017439;
  margin-top: 15px;
}

.page-faq__btn-small:hover {
  background: #005a2d;
  border-color: #005a2d;
}

.page-faq__btn-large {
  padding: 16px 32px;
  font-size: 18px;
  border-radius: 10px;
  margin-top: 30px;
}

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

.page-faq__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-faq__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

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

details.page-faq__faq-item {
  margin-bottom: 0;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 5px 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;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
}

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: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-faq__faq-toggle {
  font-size: 26px;
  font-weight: bold;
  color: #017439;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
  line-height: 1.6;
}

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

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

.page-faq__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: #005a2d;
}

.page-faq__game-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.page-faq__category-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  background-color: #e6f7ed;
  color: #017439;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #017439;
}

.page-faq__category-link:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-faq__cta-bottom-section {
  background: #017439;
  padding: 80px 0;
}

.page-faq__text-center {
  text-align: center;
}

.page-faq__text-white {
  color: #ffffff;
}

.page-faq__dark-section .page-faq__section-subtitle {
  color: #f0f0f0;
}

/* General image styling for content area */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    max-width: 768px;
  }

  .page-faq__main-title {
    font-size: clamp(28px, 4.5vw, 42px);
  }

  .page-faq__description {
    font-size: 17px;
  }

  .page-faq__section-spacing {
    padding: 50px 0;
  }

  .page-faq__section-title {
    font-size: clamp(24px, 4vw, 34px);
  }

  .page-faq__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 16px 20px;
  }

  .page-faq__faq-qtext {
    font-size: 16px;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 18px;
  }

  .page-faq__cta-bottom-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-faq__hero-section {
    padding-bottom: 30px;
    padding-top: 10px; /* Ensure small top padding */
  }

  .page-faq__hero-image-wrap {
    margin-bottom: 20px;
  }

  .page-faq__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    border-radius: 0;
  }

  .page-faq__hero-content {
    padding: 0 10px;
  }

  .page-faq__main-title {
    font-size: clamp(24px, 8vw, 36px);
    margin-bottom: 15px;
  }

  .page-faq__description {
    font-size: 15px;
    margin-bottom: 25px;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-small,
  .page-faq__btn-large,
  .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__btn-large {
    margin-top: 20px;
  }

  .page-faq__section-spacing {
    padding: 40px 0;
  }

  .page-faq__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* 装饰主标题 + 长文 SEO 区 (general section titles) */
  .page-faq__section-title {
    font-size: clamp(22px, 7vw, 30px);
    margin-bottom: 15px;
  }

  .page-faq__section-subtitle {
    font-size: 14px;
    margin-bottom: 25px;
  }

  details.page-faq__faq-item {
    border-radius: 5px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
    font-size: 15px;
  }

  .page-faq__faq-qtext {
    font-size: 15px;
  }

  .page-faq__faq-toggle {
    font-size: 20px;
    margin-left: 10px;
    width: 24px;
    height: 24px;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
    font-size: 14px;
  }

  .page-faq__game-categories {
    justify-content: center;
  }

  .page-faq__category-link {
    font-size: 13px;
    padding: 7px 12px;
  }

  .page-faq__cta-bottom-section {
    padding: 50px 0;
  }

  /* 通用图片与容器 */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__hero-image-wrap, .page-faq__faq-section, .page-faq__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Handled by .page-faq__container for content */
    /* padding-right: 15px; */ /* Handled by .page-faq__container for content */
  }
}