/* style/resources.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-on-dark: #FFFFFF;
  --text-on-light: #333333;
  --background-dark: #121212; /* From body background info */
  --background-light: #f5f5f5;
  --button-login: #EA7C07;
}

.page-resources {
  color: var(--text-on-dark); /* Default text color for the page content on dark body background */
  background-color: var(--background-dark);
}

.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0; /* Assumed shared.css handles body padding-top */
  position: relative;
  overflow: hidden;
  color: var(--text-on-dark);
  background-color: var(--primary-color);
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 80px 20px;
  background: linear-gradient(180deg, rgba(38, 169, 224, 0.8) 0%, rgba(18, 18, 18, 0.8) 100%);
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image to ensure text contrast, not changing color */
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-on-dark);
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: var(--text-on-dark);
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-resources__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-on-dark);
  border: 2px solid var(--primary-color);
}

.page-resources__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-resources__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-on-dark);
}

.page-resources__section {
  padding: 60px 0;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-on-dark);
}

.page-resources__section-description,
.page-resources__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-on-dark);
}

.page-resources__light-bg {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter on dark body */
  color: var(--text-on-dark);
}

.page-resources__dark-bg {
  background-color: rgba(38, 169, 224, 0.1); /* Slight brand color tint on dark body */
  color: var(--text-on-dark);
}

.page-resources__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__text-block-intro {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-on-dark);
}

.page-resources__text-block-paragraph {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-on-dark);
}

.page-resources__guide-section .page-resources__container,
.page-resources__security-section .page-resources__container,
.page-resources__promotions-section .page-resources__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-resources__guide-content,
.page-resources__security-content,
.page-resources__promotions-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.page-resources__guide-content {
  flex-direction: row;
}

.page-resources__security-content {
  flex-direction: row-reverse; /* Image on left for security */
}

.page-resources__promotions-content {
  flex-direction: row;
}

.page-resources__guide-text-block,
.page-resources__security-text-block,
.page-resources__promotions-text-block,
.page-resources__game-guide-text-block {
  flex: 1;
}

.page-resources__guide-image-wrapper,
.page-resources__security-image-wrapper,
.page-resources__promotions-image-wrapper,
.page-resources__game-guide-image-wrapper {
  flex: 1;
  min-width: 400px;
}

.page-resources__guide-image,
.page-resources__security-image,
.page-resources__promotions-image,
.page-resources__game-guide-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__game-guide-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.page-resources__btn-inline {
  margin-top: 10px;
  margin-right: 15px;
}

.page-resources__cta-buttons--center {
  margin-top: 40px;
  text-align: center;
}

.page-resources__faq-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.2);
}

.page-resources__faq-title {
  margin: 0;
  color: var(--text-on-dark);
  font-size: 1.2em; /* Ensure title size consistency */
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg);
  content: '−';
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-on-dark);
  font-size: 1em;
  line-height: 1.7;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 20px;
}

.page-resources__faq-answer p {
  margin: 0;
}

.page-resources__contact-cta {
  text-align: center;
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-on-dark);
}

.page-resources__contact-cta-content {
  max-width: 800px;
}

.page-resources__contact-cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-on-dark);
}

.page-resources__contact-cta-description {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 40px;
  color: var(--text-on-dark);
}

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

/* Media Queries */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }

  .page-resources__hero-description {
    font-size: 1.1em;
  }

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

  .page-resources__sub-title {
    font-size: 1.6em;
  }

  .page-resources__guide-content,
  .page-resources__security-content,
  .page-resources__promotions-content,
  .page-resources__game-guide-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-resources__guide-image-wrapper,
  .page-resources__security-image-wrapper,
  .page-resources__promotions-image-wrapper,
  .page-resources__game-guide-image-wrapper {
    min-width: unset;
    width: 100%;
    max-width: 600px;
  }

  .page-resources__hero-cta-buttons,
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    width: 100%;
    max-width: 300px; /* Limit button width for better appearance */
    margin: 0 auto; /* Center buttons */
  }

  .page-resources__btn-inline {
    margin: 10px auto;
  }

  .page-resources__contact-cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-resources__hero-section {
    padding-top: 0; /* Assumed shared.css handles body padding-top */
    padding-bottom: 60px;
  }

  .page-resources__hero-content {
    padding: 60px 15px;
  }

  .page-resources__hero-title {
    font-size: 2.2em;
  }

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

  /* 其他内容模块 */
  .page-resources__section {
    padding: 40px 0;
  }

  .page-resources__container {
    padding: 0 15px;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources__sub-title {
    font-size: 1.4em;
  }

  .page-resources__text-block-intro {
    font-size: 1.1em;
  }

  .page-resources p,
  .page-resources li,
  .page-resources__text-block-paragraph {
    font-size: 0.95em;
    line-height: 1.6;
  }

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

  .page-resources__section,
  .page-resources__card,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-resources__cta-button,
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources 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;
    margin: 5px auto !important; /* Adjust margin for stacked buttons */
  }

  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__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; /* Stack buttons vertically */
  }

  .page-resources__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-resources__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-resources__faq-title {
    font-size: 1.1em;
  }

  .page-resources__faq-answer {
    padding: 0 20px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 20px 15px;
  }

  .page-resources__contact-cta-title {
    font-size: 1.8em;
  }

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