.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main */
  background-color: var(--deep-navy-color); /* Matches body background from shared.css */
}

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

.page-faq__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  color: #F3F8FF;
  overflow: hidden;
}

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

.page-faq__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

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

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold */
  text-shadow: 0 0 10px rgba(79, 168, 255, 0.5); /* Glow */
}

.page-faq__description {
  font-size: 1.15rem;
  margin-bottom: 40px;
  color: #AFC4E8; /* Text Secondary */
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button */
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6);
}

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

.page-faq__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

.page-faq__section {
  padding: 60px 0;
  background-color: var(--deep-navy-color);
}

.page-faq__light-bg {
  background-color: #10233F; /* Card BG, slightly lighter dark */
}

.page-faq__dark-section {
  background-color: #08162B; /* Deep Navy */
}

.page-faq__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Gold */
  position: relative;
  padding-bottom: 15px;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #F2C14E, transparent); /* Gold */
  border-radius: 2px;
}

.page-faq__section-intro {
  font-size: 1.05rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #AFC4E8; /* Text Secondary */
}

.page-faq__faq-list {
  margin-top: 30px;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* Card BG */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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, border-color 0.3s ease;
  background: #10233F; /* Card BG */
  color: #F3F8FF; /* 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: #1B3357; /* Divider - slightly lighter dark */
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF; /* Text Main */
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #08162B; /* Deep Navy - darker for answer content */
  border-top: 1px solid #1B3357; /* Divider */
  border-radius: 0 0 10px 10px;
  color: #AFC4E8; /* Text Secondary */
}

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

.page-faq__faq-answer a {
  color: #4FA8FF; /* Glow */
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: #F2C14E; /* Gold */
}

.page-faq__cta-bottom-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #113B7A 0%, #08162B 100%); /* Mix of Main and Deep Navy */
}

.page-faq__cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.15rem;
  color: #AFC4E8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto 40px;
}

/* --- General Image Responsiveness (applies to all images) --- */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Media Queries --- */

/* Desktop/Tablet common adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 40px 20px;
  }
  .page-faq__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-faq__description {
    font-size: 1rem;
  }
  .page-faq__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-faq__faq-qtext {
    font-size: 1rem;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  .page-faq__btn-primary, .page-faq__btn-secondary {
    font-size: 1rem;
    padding: 12px 25px;
  }
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  /* 1. HERO主图区域 */
  .page-faq__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
  }
  .page-faq__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    height: 200px !important; /* Fixed height for mobile hero image */
    filter: brightness(0.6);
  }
  .page-faq__hero-content {
    padding: 30px 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-faq__description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* 2. 产品展示图区域 (Not explicitly on FAQ, but rule must be present if general template) */
  .page-faq__products-section { /* Placeholder if this section were present */
    overflow-x: hidden;
  }
  /* If a product grid were here, it would be 2 cols: */
  /* .page-faq__products-grid { grid-template-columns: repeat(2, 1fr); } */

  /* 3. 装饰主标题 + 长文 SEO 区 */
  .page-faq__section-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
    margin-bottom: 30px;
    padding-bottom: 10px;
  }
  .page-faq__section-title::after {
    width: 60px;
  }
  .page-faq__section-intro {
    font-size: 0.9rem;
    margin-bottom: 40px;
    padding: 0 15px;
  }
  .page-faq__article-body, /* Placeholder if this section were present */
  .page-faq__article-figure { /* Placeholder if this section were present */
    max-width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box;
  }

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

  /* 5. 按钮与按钮容器 */
  .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: 12px 15px !important;
    font-size: 1rem !important;
  }
  .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;
    flex-direction: column; /* Ensure vertical stacking on mobile */
  }

  /* FAQ specific mobile adjustments */
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
  }
  .page-faq__faq-qtext {
    font-size: 0.95rem;
  }
  .page-faq__faq-toggle {
    font-size: 22px;
    margin-left: 15px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 20px;
  }
  .page-faq__cta-bottom-section {
    padding: 50px 15px;
  }
  .page-faq__cta-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-faq__cta-description {
    font-size: 0.95rem;
  }
}

/* Ensure no horizontal scroll for content areas */
.page-faq__general-info,
.page-faq__account-login,
.page-faq__financial-transactions,
.page-faq__games-rules,
.page-faq__promotions-offers,
.page-faq__support-security {
  overflow-x: hidden;
}