/* style/faq.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-faq {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background: #0a0a0a; /* Ensure consistency with body background */
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: #0a0a0a; /* Dark background */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-faq__hero-content {
  max-width: 900px;
  padding: 40px 20px 0;
  color: #ffffff;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for emphasis */
}

.page-faq__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

.page-faq__btn-primary {
  background: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-faq__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-faq__accordion-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-faq__dark-section {
  background-color: #0a0a0a; /* Dark background as per body */
  color: #ffffff;
}

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

.page-faq__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #26A9E0;
}

.page-faq__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for items */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

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

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #cccccc;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 2000px; /* Large enough to accommodate content */
  padding-top: 15px;
}

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

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

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

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

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-faq__read-more-link {
  display: inline-block;
  margin-top: 15px;
  color: #EA7C07;
  text-decoration: none;
  font-weight: 600;
}

.page-faq__read-more-link:hover {
  text-decoration: underline;
}

.page-faq__games-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.page-faq__game-link {
  background-color: rgba(38, 169, 224, 0.15); /* Brand color with transparency */
  color: #26A9E0;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.page-faq__game-link:hover {
  background-color: #26A9E0;
  color: #ffffff;
}


.page-faq__cta-section {
  background-color: #26A9E0; /* Brand primary color */
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

.page-faq__cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}


/* --- Responsive Styles --- */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-bottom: 40px;
  }

  .page-faq__hero-content {
    padding-top: 20px;
  }

  .page-faq__main-title {
    font-size: 2.5rem;
  }

  .page-faq__hero-description {
    font-size: 1rem;
  }

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

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

  .page-faq__accordion-section {
    padding: 40px 0;
  }

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

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

  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

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

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__hero-image-wrapper,
  .page-faq__container,
  .page-faq__faq-item,
  .page-faq__cta-section,
  .page-faq__accordion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Specific elements that might contain images/videos/buttons */
  .page-faq__content-area,
  .page-faq__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-faq__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Fixed header spacing for video section (if present) */
  .page-faq__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Ensure video wrapper is responsive (if present) */
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 2rem;
  }
  .page-faq__section-title {
    font-size: 1.6rem;
  }
  .page-faq__cta-title {
    font-size: 1.6rem;
  }
}

/* Ensure contrast for different backgrounds */
.page-faq__dark-bg {
  color: #ffffff; /* Deep dark background */
}
.page-faq__light-bg {
  color: #333333; /* Light background */
}
.page-faq__medium-bg {
  color: #000000; /* Medium background */
}