/* Base styles for .page-faq, ensuring text contrast on dark body background */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
  padding-top: 10px; /* Small top padding, assuming body already has header offset */
}

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

.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  background: linear-gradient(180deg, #C61F1F 0%, #E53030 100%); /* Using brand colors for hero bg */
  position: relative;
  overflow: hidden;
  color: #FFF1E8;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for desktop hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.page-faq__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFF1E8;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.8;
  color: #FFF1E8;
  opacity: 0.9;
}

.page-faq__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #F3C54D; /* Gold */
  padding-top: 40px;
}

.page-faq__text-main {
  color: #FFF1E8;
}

.page-faq__content-section {
  padding: 60px 0;
  border-bottom: 1px solid #6A1E1E; /* Border */
}

.page-faq__light-bg {
  background-color: #140C0C;
  color: #FFF1E8;
}

.page-faq__dark-bg {
  background-color: #2A1212; /* Card BG */
  color: #FFF1E8;
}

.page-faq__image-text-block {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-faq__image-text-block--reversed {
  flex-direction: row-reverse;
}

.page-faq__section-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.page-faq__text-block {
  flex: 1;
  max-width: 50%;
}

.page-faq__text-block h3 {
  font-size: 1.8em;
  margin-top: 0;
  margin-bottom: 15px;
  color: #F3C54D;
}

.page-faq__text-block p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 1.05em;
}

/* FAQ Accordion Styles */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
  color: #FFF1E8;
}
details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F3C54D; /* Gold for question */
}
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: #3A1C1C; /* Slightly lighter Card BG on hover */
}
.page-faq__faq-qtext {
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: #140C0C; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF1E8;
}
details.page-faq__faq-item .page-faq__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
}

/* Buttons */
.page-faq__btn-primary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #FFC06A 0%, #E87A24 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-faq__hero-cta {
  margin-top: 20px;
}

.page-faq__section-cta {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */

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

/* @media (max-width: 1024px) for tablets */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }

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

  .page-faq__image-text-block {
    flex-direction: column;
    text-align: center;
  }

  .page-faq__image-text-block--reversed {
    flex-direction: column;
  }

  .page-faq__section-image,
  .page-faq__text-block {
    max-width: 100%;
  }

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

  .page-faq__btn-primary {
    padding: 12px 24px;
    font-size: 1em;
  }
}

/* @media (max-width: 768px) for mobile phones */
@media (max-width: 768px) {
  .page-faq {
    padding-top: 10px; /* Small top padding for mobile */
  }

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

  /* HERO 主图区域 */
  .page-faq__hero-section {
    padding: 0;
  }
  .page-faq__hero-image-wrapper {
    max-height: unset;
  }
  .page-faq__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }
  .page-faq__hero-content {
    padding: 30px 15px;
  }
  .page-faq__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-faq__hero-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-faq__hero-cta {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Section titles */
  .page-faq__section-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
    margin-bottom: 20px;
    padding-top: 30px;
  }

  /* Image text block */
  .page-faq__image-text-block {
    gap: 20px;
  }

  .page-faq__section-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-faq__text-block h3 {
    font-size: 1.5em;
  }
  .page-faq__text-block p {
    font-size: 0.95em;
  }

  /* FAQ Accordion */
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
  }
  .page-faq__faq-qtext {
    font-size: 1em;
  }
  .page-faq__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
  }
  details.page-faq__faq-item .page-faq__faq-answer p {
    font-size: 0.95em;
  }

  /* Buttons and button containers */
  .page-faq__btn-primary,
  .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__section-cta {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Ensure no horizontal scroll for content areas */
  .page-faq__content-section {
    overflow-x: hidden;
  }
  .page-faq__faq-list {
    overflow-x: hidden;
  }

  /* Generic image rules for content area */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* No products-grid or gameshow for FAQ page */
/* No article-body as it's not a blog/news page with a dedicated article body */