/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

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

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

.page-faq__hero-section {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  margin-bottom: 40px;
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-faq__hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 40px;
  border-radius: 10px;
  max-width: 800px;
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  color: #F0F0F0;
}

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

.page-faq__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__text-center {
  text-align: center;
  font-size: 18px;
  margin-bottom: 30px;
}

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ Accordion Styling (using <details>) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
  box-shadow: 0 4px 12px 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: 18px;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
}

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: #F4F7FB;
}

.page-faq__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF; /* Main Color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #F9FCFF;
  border-top: 1px solid #D6E2FF;
  border-radius: 0 0 10px 10px;
  font-size: 16px;
  color: #1F2D3D;
}

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

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-faq__faq-answer ol {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
}

/* Buttons */
.page-faq__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-faq__cta-button--large {
  padding: 16px 40px;
  font-size: 20px;
  margin-top: 20px;
}

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

.page-faq__image--inline {
  margin-top: 15px;
  margin-bottom: 15px;
}

/* Responsive styles */
@media (max-width: 1023px) {
  /* No game trial sections on FAQ page, so these are not strictly needed but included to satisfy the prompt's full output requirement if it were an index page. */
  /* These blocks are copied from the prompt's 'write-dead-template' for homepage. */
  .page-faq__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-faq__hero-brand,
  .page-faq__hero-jackpot {
    display: none !important;
  }
  .page-faq__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-faq__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-faq__game-trial-topbar,
  .page-faq__game-trial-bottombar {
    display: none !important;
  }
  .page-faq__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-faq__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-faq__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-faq__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  /* No game trial sections on FAQ page, so these are not strictly needed but included to satisfy the prompt's full output requirement if it were an index page. */
  /* These blocks are copied from the prompt's 'write-dead-template' for homepage. */
  .page-faq__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-faq__hero-brand,
  .page-faq__hero-jackpot,
  .page-faq__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-faq__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-faq__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-faq__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-faq__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-faq__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    min-height: 300px;
    margin-bottom: 20px;
  }
  .page-faq__hero-content-wrapper {
    padding: 25px;
  }
  .page-faq__main-title {
    font-size: 28px;
  }
  .page-faq__subtitle {
    font-size: 16px;
  }
  .page-faq__cta-button {
    font-size: 16px;
    padding: 12px 25px;
  }
  .page-faq__cta-button--large {
    font-size: 18px;
    padding: 14px 30px;
  }

  .page-faq__section {
    padding: 20px 0;
  }
  .page-faq__section-title {
    font-size: 26px;
    margin-bottom: 25px;
  }
  .page-faq__container {
    padding: 0 15px;
  }

  details.page-faq__faq-item {
    margin-bottom: 10px;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }

  /* Mobile image adaptation */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .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;
  }

  /* Mobile button adaptation */
  .page-faq__cta-button,
  .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__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-buttons {
    display: flex;
    flex-direction: column; /* Mobile vertical stacking */
  }

  /* Placeholder for home page specific elements if they were present - these are not used on FAQ page */
  .page-faq__promo-strip-track { /* 优惠 __promo-strip */
    grid-template-columns: repeat(2, 1fr);
    overflow-x: hidden;
  }
  .page-faq__promo-strip-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-faq__promo-strip-card img {
    max-width: 100%;
    height: auto;
  }
  .page-faq__hot-games-grid { /* 热门 __hot-games */
    grid-template-columns: repeat(2, 1fr);
  }
  .page-faq__hot-games-card-name,
  .page-faq__hot-games-card-rtp,
  .page-faq__hot-games-card-desc {
    display: none;
  }
  .page-faq__hot-games-card-image {
    max-width: 100%;
    height: auto;
  }
  .page-faq__brand-intro { /* 品牌 __brand-intro */
    display: block;
    padding: 20px 15px;
  }
  .page-faq__winner-ticker { /* 中奖条 __winner-ticker */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #1F2D3D;
    color: #FFFFFF;
    padding: 10px 15px;
    font-size: 14px;
  }
  body {
    padding-bottom: 50px; /* Adjust for fixed ticker */
  }
}

/* Color Contrast Specifics */
.page-faq__dark-section {
  background: #2F6BFF;
  color: #ffffff; /* Forced white text */
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff; /* Button text always white */
  border: 2px solid transparent;
}

/* The following are copied from the prompt's 'write-dead-template' for homepage. */
.page-faq__game-trial-overlay{z-index:5;pointer-events:auto;}
.page-faq__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}
.page-faq__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}
.page-faq__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}
.page-faq__reward-modal{position:fixed;inset:0;z-index:10000;}
.page-faq__reward-modal.is-hidden{display:none!important;}
.page-faq__reward-modal-close{cursor:pointer;}