.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 40px 0; /* Adjusted padding-top for shared header offset */
  background: linear-gradient(135deg, #017439, #005a2e);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 400px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFF00; /* Use specific color for H1 as per brand, but ensure contrast */
}

.page-faq__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.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: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFFFF; /* Forced white for contrast on red */
  border: 2px solid #C30808;
}

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFFFFF; /* Forced white for contrast */
  border: 2px solid #FFFFFF;
}

.page-faq__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #C30808;
}

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

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

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

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

.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-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

.page-faq__faq-item[open] > .page-faq__faq-question {
  background-color: #e8e8e8;
  border-bottom: 1px solid #d0d0d0;
}

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

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

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

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  background-color: #ffffff;
}

.page-faq__faq-answer p {
  margin-bottom: 1em;
}

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

.page-faq__text-link {
  color: #017439;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-faq__text-link:hover {
  color: #005a2e;
}

.page-faq__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.page-faq__game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #333333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.page-faq__game-card-img {
  width: 100%;
  
  object-fit: cover;
  display: block;
}

.page-faq__game-card-title {
  padding: 15px;
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
  color: #017439;
}

.page-faq__policy-links {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.page-faq__cta-bottom-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #017439, #005a2e);
  color: #ffffff;
  text-align: center;
}

.page-faq__cta-bottom-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-faq__cta-bottom-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.page-faq__cta-bottom-text {
  max-width: 600px;
}

.page-faq__cta-bottom-text p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* General image and container responsiveness */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-faq__section,
.page-faq__card,
.page-faq__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-faq__hero-section {
    padding: 10px 0 30px 0 !important;
  }

  .page-faq__hero-image-wrapper {
    max-height: 250px;
    margin-bottom: 20px;
  }

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

  .page-faq__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 其他内容模块 - FAQ Section */
  .page-faq__faq-section {
    padding: 40px 15px;
  }

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

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

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

  /* 产品展示图区域 - Game Categories */
  .page-faq__game-categories {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 15px;
  }

  .page-faq__game-card-img {
    
  }

  .page-faq__game-card-title {
    padding: 10px;
    font-size: 1em;
  }

  .page-faq__policy-links {
    flex-direction: column;
    gap: 10px;
  }

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

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

  /* 按钮与按钮容器 */
  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-faq__cta-bottom-section {
    padding: 40px 15px;
  }

  .page-faq__cta-bottom-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-faq__cta-bottom-image {
    max-width: 300px;
  }

  .page-faq__cta-bottom-text {
    padding: 0;
  }

  .page-faq__cta-bottom-text p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }

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

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