/* style/resources-888b-faq.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-color-dark: #0a0a0a; /* From body background info */
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --border-color-light: #e0e0e0;
}

.page-resources-888b-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light); /* Default text color for dark body background */
  background-color: var(--background-color-dark);
}

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

/* Hero Section */
.page-resources-888b-faq__hero-section {
  position: relative;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
  padding-bottom: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: var(--text-color-light);
  background: linear-gradient(135deg, var(--primary-color), #1a7fb8);
}

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

.page-resources-888b-faq__hero-section .page-resources-888b-faq__container {
  position: relative;
  z-index: 1;
  padding-top: 80px; /* Internal padding for content */
}

.page-resources-888b-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-888b-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--secondary-color);
}

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

.page-resources-888b-faq__btn-primary,
.page-resources-888b-faq__btn-secondary,
.page-resources-888b-faq__btn-small {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
}

.page-resources-888b-faq__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-resources-888b-faq__btn-primary:hover {
  background-color: #1a7fb8;
  border-color: #1a7fb8;
  transform: translateY(-2px);
}

.page-resources-888b-faq__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-resources-888b-faq__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.page-resources-888b-faq__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 15px;
}

/* Content Area */
.page-resources-888b-faq__content-area {
  background-color: var(--secondary-color); /* Light background for main content */
  color: var(--text-color-dark); /* Dark text for light background */
  padding: 60px 0;
}

.page-resources-888b-faq__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources-888b-faq__intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--text-color-dark);
}

/* FAQ List */
.page-resources-888b-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-888b-faq__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid var(--border-color-light);
}

.page-resources-888b-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: var(--secondary-color);
  border-bottom: 1px solid var(--border-color-light);
}

.page-resources-888b-faq__faq-question:hover {
  background-color: #f0f0f0;
}

.page-resources-888b-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
}

.page-resources-888b-faq__faq-item.active .page-resources-888b-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-888b-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: var(--text-color-dark);
}

.page-resources-888b-faq__faq-item.active .page-resources-888b-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px;
}

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

.page-resources-888b-faq__game-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.page-resources-888b-faq__game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-resources-888b-faq__game-image:hover {
  transform: scale(1.03);
}

/* CTA Section at bottom */
.page-resources-888b-faq__cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-resources-888b-faq__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-resources-888b-faq__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--secondary-color);
}

/* Global image styles */
.page-resources-888b-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources-888b-faq__hero-title {
    font-size: 2.8em;
  }

  .page-resources-888b-faq__hero-description {
    font-size: 1.1em;
  }

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

  .page-resources-888b-faq__cta-title {
    font-size: 2.2em;
  }

  .page-resources-888b-faq__faq-question {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-resources-888b-faq__hero-section {
    padding-top: 0; /* Ensures no double padding if shared.css handles body padding */
    padding-bottom: 60px;
  }

  .page-resources-888b-faq__hero-section .page-resources-888b-faq__container {
    padding-top: 60px;
  }

  .page-resources-888b-faq__hero-title {
    font-size: 2.2em;
  }

  .page-resources-888b-faq__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-resources-888b-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }

  /* 按钮与按钮容器 */
  .page-resources-888b-faq__btn-primary,
  .page-resources-888b-faq__btn-secondary,
  .page-resources-888b-faq__btn-small,
  .page-resources-888b-faq a[class*="button"],
  .page-resources-888b-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-resources-888b-faq__cta-buttons,
  .page-resources-888b-faq__button-group,
  .page-resources-888b-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-resources-888b-faq__cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile vertical stacking */
  }

  /* 其他内容模块 */
  .page-resources-888b-faq__content-area,
  .page-resources-888b-faq__cta-section {
    padding: 40px 0;
  }

  .page-resources-888b-faq__container {
    padding: 0 15px;
  }

  .page-resources-888b-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-888b-faq__intro-text {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-resources-888b-faq__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-resources-888b-faq__faq-item.active .page-resources-888b-faq__faq-answer {
    padding: 15px 20px;
  }

  .page-resources-888b-faq__cta-title {
    font-size: 1.8em;
  }

  .page-resources-888b-faq__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* 产品展示图区域 */
  .page-resources-888b-faq__game-showcase {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-resources-888b-faq__game-image {
    height: 150px;
  }

  /* 通用图片与容器 */
  .page-resources-888b-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources-888b-faq__section,
  .page-resources-888b-faq__card,
  .page-resources-888b-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}