/* style/resources.css */
.page-resources {
  color: #ffffff; /* Dark background, so light text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background: var(--dark-bg-1);
}

.page-resources__hero-banner {
  background: linear-gradient(135deg, #FFD700, #DC143C);
  padding: 150px 20px 80px; /* Adjusted for fixed header */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.page-resources__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.8;
}

.page-resources__hero-description a {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__hero-description a:hover {
  color: #ffffff;
}

.page-resources__btn-primary {
  display: inline-block;
  background: #FFD700;
  color: #1a1a1a; /* Darker text for contrast on gold */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__btn-primary:hover {
  background: #e6c200;
  color: #ffffff;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__btn-secondary {
  display: inline-block;
  background: transparent;
  color: #FFD700;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
  background: #FFD700;
  color: #1a1a1a;
  transform: translateY(-3px);
}

.page-resources__btn-small {
  display: inline-block;
  background: #DC143C;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: all 0.3s ease;
  border: 2px solid #DC143C;
}

.page-resources__btn-small:hover {
  background: #c21134;
  border-color: #c21134;
  transform: translateY(-2px);
}

.page-resources__section {
  padding: 60px 20px;
  margin-bottom: 30px;
  background: var(--dark-bg-1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__section:last-of-type {
  border-bottom: none;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-resources__section--intro .page-resources__section-title {
  color: #FFD700;
}

.page-resources__intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-resources__intro-text p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources__intro-text a {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__intro-text a:hover {
  color: #ffffff;
}

.page-resources__intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__guide-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-left: 5px solid #FFD700;
}

.page-resources__guide-subtitle {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources__guide-item p {
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-resources__guide-item ol {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources__guide-item ol li {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-resources__guide-item ol li strong {
  color: #FFD700;
}

.page-resources__guide-item a {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__guide-item a:hover {
  color: #ffffff;
}

.page-resources__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__promo-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__promo-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-resources__promo-card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources__promo-card p {
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-resources__promo-card p a {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__promo-card p a:hover {
  color: #ffffff;
}

.page-resources__game-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__game-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-right: 5px solid #DC143C;
}

.page-resources__game-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-resources__game-item p {
  color: #f0f0f0;
}

.page-resources__game-item p a {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__game-item p a:hover {
  color: #ffffff;
}

.page-resources__app-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-resources__app-image {
  flex: 1;
  text-align: center;
}

.page-resources__app-image img {
  max-width: 80%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-resources__app-text {
  flex: 2;
}

.page-resources__app-text p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources__app-text p a {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__app-text p a:hover {
  color: #ffffff;
}

.page-resources__app-text ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources__app-text ul li {
  margin-bottom: 8px;
  color: #f0f0f0;
}

.page-resources__support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__support-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-top: 5px solid #FFD700;
}

.page-resources__support-subtitle {
  font-size: 1.6em;
  color: #DC143C;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources__support-item p {
  color: #f0f0f0;
}

.page-resources__support-item p a {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__support-item p a:hover {
  color: #ffffff;
}

/* FAQ容器样式 */
.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

/* FAQ default state - answer hidden */
.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #f0f0f0;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important for priority, large value to fit content */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 5px 5px;
}

.page-resources__faq-answer p {
  margin: 0;
  padding: 0;
  color: #f0f0f0;
}

.page-resources__faq-answer a {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__faq-answer a:hover {
  color: #ffffff;
}

/* Question style */
.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-item.active .page-resources__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-resources__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-resources__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

/* Question title style */
.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #DC143C;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg);
}

.page-resources__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__blog-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-resources__blog-card-title {
  font-size: 1.4em;
  margin: 20px 20px 10px;
  font-weight: 600;
}

.page-resources__blog-card-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__blog-card-title a:hover {
  color: #ffffff;
}

.page-resources__blog-excerpt {
  color: #f0f0f0;
  padding: 0 20px;
  margin-bottom: 15px;
  font-size: 0.95em;
}

.page-resources__blog-excerpt a {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__blog-excerpt a:hover {
  color: #ffffff;
}

.page-resources__blog-date {
  display: block;
  color: #999;
  font-size: 0.85em;
  padding: 0 20px 20px;
}

.page-resources__view-all {
  text-align: center;
  margin-top: 40px;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__intro-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__app-content {
    flex-direction: column;
  }
  .page-resources__app-image {
    order: 2;
  }
  .page-resources__app-text {
    order: 1;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-banner {
    padding-top: 100px; /* Mobile fixed header adjustment */
    padding-bottom: 50px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__section {
    padding: 40px 15px;
  }
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__intro-text p,
  .page-resources__app-text p,
  .page-resources__app-text ul li,
  .page-resources__blog-excerpt,
  .page-resources__guide-item p,
  .page-resources__guide-item ol li,
  .page-resources__promo-card p,
  .page-resources__game-item p,
  .page-resources__support-item p,
  .page-resources__faq-answer p {
    font-size: 0.95em;
  }
  .page-resources__guide-subtitle,
  .page-resources__promo-card-title,
  .page-resources__game-title,
  .page-resources__support-subtitle,
  .page-resources__blog-card-title {
    font-size: 1.4em;
  }
  .page-resources__app-image img {
    max-width: 100%;
  }
  /* FAQ mobile styles */
  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
  
  /* Mobile image responsive adaptation (MUST BE PRESENT) */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__intro-image,
  .page-resources__app-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}