/* Base Styles for FAQ Page */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
}

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

.page-faq__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

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

.page-faq__section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #F2C14E; /* Primary */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-faq__faq-list-section {
  padding: 40px 0;
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  margin-bottom: 40px;
}

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

/* FAQ Accordion Styles (Details/Summary) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #0A0A0A; /* Background */
}
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;
}
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: rgba(242, 193, 78, 0.1);
}
.page-faq__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6; /* Text Main */
}
.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  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: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
  color: #FFF6D6;
}
.page-faq__faq-answer p {
  margin-bottom: 10px;
}
.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
  margin-left: 20px;
  margin-bottom: 10px;
}
.page-faq__faq-answer strong {
  color: #F2C14E;
}

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

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

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #FFE88A 0%, #EAA11D 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-faq__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Primary */
  border: 2px solid #F2C14E; /* Border */
}

.page-faq__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-2px);
  color: #FFD36B;
}

.page-faq__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  margin-top: 10px;
}

.page-faq__cta-bottom-section {
  background-color: #111111; /* Card BG */
  padding: 60px 0;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 40px;
}

.page-faq__cta-bottom-content {
  max-width: 800px;
}

/* Global CSS for Home Page elements (as per strict instructions) */
@media (max-width: 1023px) {
  .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) {
  .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;
  }
  /* Placeholder for other PC modules as per prompt */
  .page-faq__promo-strip { margin-top: 16px; /* Example */ }
  .page-faq__promo-strip-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1280px; margin: 0 auto; padding: 20px 15px; }
  .page-faq__promo-card { display: flex; flex-direction: row; align-items: center; background: #111111; border-radius: 8px; overflow: hidden; }
  .page-faq__promo-image { width: 100px; height: 100px; object-fit: cover; flex-shrink: 0; }
  .page-faq__promo-content { padding: 15px; flex-grow: 1; }
  .page-faq__promo-title { font-size: 18px; color: #F2C14E; margin-bottom: 5px; }
  .page-faq__promo-desc { font-size: 14px; color: #FFF6D6; }

  .page-faq__hot-games-section { padding: 40px 0; }
  .page-faq__hot-games-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; max-width: 1280px; margin: 0 auto; padding: 0 15px; }
  .page-faq__hot-game-card { background: #111111; border-radius: 8px; overflow: hidden; text-align: center; padding-bottom: 15px; }
  .page-faq__hot-game-image { width: 100%; height: auto; display: block; object-fit: cover; margin-bottom: 10px; }
  .page-faq__hot-game-name { font-size: 16px; font-weight: 600; color: #F2C14E; margin-bottom: 5px; }
  .page-faq__hot-game-rtp { font-size: 14px; color: #FFF6D6; margin-bottom: 5px; }
  .page-faq__hot-game-desc { font-size: 12px; color: #FFF6D6; display: block; }

  .page-faq__hero-brand { display: block; /* Ensure it's not hidden on PC */ }
  .page-faq__brand-intro-section { display: block; /* Ensure it's not hidden on PC */ }
  .page-faq__brand-trust-icons { display: flex; justify-content: space-around; gap: 10px; margin-top: 20px; }
}

/* Mobile specific styles (max-width: 768px) */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section {
    padding-top: 10px;
    margin-bottom: 30px;
  }
  .page-faq__main-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 10px;
  }
  .page-faq__description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faq__section-title {
    font-size: clamp(22px, 5vw, 30px);
    margin-bottom: 20px;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-faq__faq-qtext {
    font-size: 15px;
    width: calc(100% - 40px);
  }
  .page-faq__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
  }
  .page-faq__cta-bottom-section {
    padding: 40px 0;
    margin-bottom: 30px;
  }

  /* Mobile specific for Home Page elements (as per strict instructions) */
  /* 1. 首屏试玩: Handled by max-width: 1023px block, which covers 768px */

  /* 2. 优惠 __promo-strip */
  .page-faq__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Changed to 2 columns for mobile */
    overflow-x: hidden !important;
    padding: 0 15px !important;
    gap: 15px !important;
  }
  .page-faq__promo-card {
    flex-direction: column !important;
    text-align: center !important;
  }
  .page-faq__promo-image {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
  }
  .page-faq__promo-content {
    padding: 10px !important;
  }
  .page-faq__promo-title {
    font-size: 16px !important;
  }
  .page-faq__promo-desc {
    font-size: 12px !important;
  }

  /* 3. 热门 __hot-games */
  .page-faq__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 0 15px !important;
    gap: 15px !important;
  }
  .page-faq__hot-game-name, .page-faq__hot-game-rtp, .page-faq__hot-game-desc {
    display: none !important; /* Hide details on mobile */
  }
  .page-faq__hot-game-image {
    width: 100% !important;
  }
  .page-faq__hot-game-card { padding-bottom: 10px !important; }

  /* 4. 品牌 __brand-intro */
  .page-faq__brand-intro-section { display: block !important; padding: 30px 15px !important; }
  .page-faq__brand-intro-title { font-size: 24px !important; }
  .page-faq__brand-intro-text { font-size: 15px !important; }
  .page-faq__brand-trust-icons { flex-direction: column !important; gap: 10px !important; }

  /* 5. 中奖条 __winner-ticker (assuming this is a shared component, so just placeholder for rules if it were on this page) */
  /* .page-faq__winner-ticker { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 100; background: #111; padding: 10px 0; } */

  /* 6. 通用图片与容器 */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 7. 按钮与按钮容器 */
  .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 { flex-direction: column !important; }

  /* 8. 其他模块 (FAQ specific) */
  .page-faq__faq-list-section { padding: 30px 0; }
}

/* Ensure no filter on images */
.page-faq img { filter: none; }