/* style/index-game-features.css */

:root {
  --page-index-game-features-primary-color: #017439;
  --page-index-game-features-secondary-color: #FFFFFF;
  --page-index-game-features-text-dark: #333333;
  --page-index-game-features-text-light: #FFFFFF;
  --page-index-game-features-background-light: #FFFFFF;
  --page-index-game-features-background-dark: #017439;
  --page-index-game-features-btn-register-bg: #C30808;
  --page-index-game-features-btn-login-bg: #C30808;
  --page-index-game-features-btn-text-color: #FFFF00; /* As per explicit instruction */
}

.page-index-game-features {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-index-game-features-text-dark);
  background-color: var(--page-index-game-features-background-light);
}

.page-index-game-features p {
  color: var(--page-index-game-features-text-dark);
}

.page-index-game-features__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--page-index-game-features-primary-color), #004d2b);
  color: var(--page-index-game-features-text-light);
  overflow: hidden;
}

.page-index-game-features__hero-content {
  z-index: 1;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-index-game-features__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--page-index-game-features-text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index-game-features__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--page-index-game-features-text-light);
}

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

.page-index-game-features__btn-primary,
.page-index-game-features__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal;
  word-wrap: break-word;
}

.page-index-game-features__btn-primary {
  background-color: var(--page-index-game-features-btn-register-bg);
  color: var(--page-index-game-features-btn-text-color);
  border: 2px solid var(--page-index-game-features-btn-register-bg);
}

.page-index-game-features__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-3px);
}

.page-index-game-features__btn-secondary {
  background-color: transparent;
  color: var(--page-index-game-features-text-light);
  border: 2px solid var(--page-index-game-features-text-light);
}

.page-index-game-features__btn-secondary:hover {
  background-color: var(--page-index-game-features-text-light);
  color: var(--page-index-game-features-primary-color);
  transform: translateY(-3px);
}

.page-index-game-features__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  overflow: hidden;
}

.page-index-game-features__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

.page-index-game-features__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-index-game-features-primary-color);
}

.page-index-game-features__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--page-index-game-features-text-dark);
}

.page-index-game-features__features-overview,
.page-index-game-features__how-to-start {
  padding: 80px 0;
  background-color: var(--page-index-game-features-background-light);
}

.page-index-game-features__dark-bg {
  background-color: var(--page-index-game-features-background-dark);
  color: var(--page-index-game-features-text-light);
}

.page-index-game-features__dark-bg .page-index-game-features__section-title,
.page-index-game-features__dark-bg .page-index-game-features__section-description,
.page-index-game-features__dark-bg .page-index-game-features__faq-title {
  color: var(--page-index-game-features-text-light);
}

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

.page-index-game-features__feature-card {
  background-color: var(--page-index-game-features-secondary-color);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--page-index-game-features-text-dark);
}

.page-index-game-features__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-index-game-features__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index-game-features__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  padding: 0 20px;
  color: var(--page-index-game-features-primary-color);
}

.page-index-game-features__card-text {
  font-size: 1em;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index-game-features__card-link {
  display: inline-block;
  background-color: var(--page-index-game-features-primary-color);
  color: var(--page-index-game-features-text-light);
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index-game-features__card-link:hover {
  background-color: #004d2b;
}

.page-index-game-features__advantages-section {
  padding: 80px 0;
  text-align: center;
}

.page-index-game-features__advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-game-features__advantage-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  transition: transform 0.3s ease;
  color: var(--page-index-game-features-text-light);
}

.page-index-game-features__advantage-item:hover {
  transform: translateY(-10px);
}

.page-index-game-features__advantage-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Slight brightness to stand out on dark background, not changing color */
}

.page-index-game-features__advantage-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--page-index-game-features-text-light);
}

.page-index-game-features__advantage-text {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.9);
}

.page-index-game-features__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-game-features__step-item {
  background-color: var(--page-index-game-features-secondary-color);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--page-index-game-features-text-dark);
}

.page-index-game-features__step-item:hover {
  transform: translateY(-10px);
}

.page-index-game-features__step-number {
  width: 60px;
  height: 60px;
  background-color: var(--page-index-game-features-primary-color);
  color: var(--page-index-game-features-text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin: 0 auto 25px auto;
}

.page-index-game-features__step-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-index-game-features-primary-color);
}

.page-index-game-features__step-text {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-index-game-features__faq-section {
  padding: 80px 0;
}

.page-index-game-features__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-index-game-features__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-index-game-features-text-light);
}

.page-index-game-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-index-game-features__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-index-game-features__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: var(--page-index-game-features-text-light);
}

.page-index-game-features__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--page-index-game-features-text-light);
  transition: transform 0.3s ease;
}

.page-index-game-features__faq-item.active .page-index-game-features__faq-toggle {
  transform: rotate(0deg); /* Explicitly set to 0 as JS handles +/-, if it were a rotation, it would be e.g., rotate(45deg) */
}

.page-index-game-features__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-index-game-features__faq-answer p {
  margin: 0;
  color: inherit; /* Inherit color from parent */
}

.page-index-game-features__cta-bottom {
  padding: 60px 0;
  text-align: center;
}

.page-index-game-features__text-center {
  text-align: center;
}

.page-index-game-features__large-btn {
  padding: 18px 40px;
  font-size: 1.1em;
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-game-features__hero-title {
    font-size: 2.8em;
  }
  .page-index-game-features__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-index-game-features__hero-title {
    font-size: 2.2em;
  }
  .page-index-game-features__hero-description {
    font-size: 1em;
  }
  .page-index-game-features__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-game-features__btn-primary,
  .page-index-game-features__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-game-features__section-title {
    font-size: 1.8em;
  }
  .page-index-game-features__section-description {
    font-size: 0.95em;
  }
  .page-index-game-features__features-overview,
  .page-index-game-features__advantages-section,
  .page-index-game-features__how-to-start,
  .page-index-game-features__faq-section,
  .page-index-game-features__cta-bottom {
    padding: 50px 0;
  }
  .page-index-game-features__container {
    padding: 0 15px;
  }
  .page-index-game-features__feature-card,
  .page-index-game-features__advantage-item,
  .page-index-game-features__step-item {
    padding: 25px;
  }
  .page-index-game-features__feature-image {
    height: 200px;
  }
  .page-index-game-features img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index-game-features__feature-grid,
  .page-index-game-features__advantage-grid,
  .page-index-game-features__steps-grid {
    gap: 20px;
  }
  .page-index-game-features__faq-question {
    padding: 15px 20px;
  }
  .page-index-game-features__faq-answer {
    padding: 0 20px;
  }
  .page-index-game-features__faq-item.active .page-index-game-features__faq-answer {
    padding: 15px 20px;
  }
  /* Ensure all containers with images/videos/buttons are responsive */
  .page-index-game-features__section,
  .page-index-game-features__card,
  .page-index-game-features__container,
  .page-index-game-features__hero-section,
  .page-index-game-features__features-overview,
  .page-index-game-features__advantages-section,
  .page-index-game-features__how-to-start,
  .page-index-game-features__faq-section,
  .page-index-game-features__cta-bottom,
  .page-index-game-features__cta-buttons,
  .page-index-game-features__feature-grid,
  .page-index-game-features__advantage-grid,
  .page-index-game-features__steps-grid,
  .page-index-game-features__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  /* Specific padding for sections to avoid content touching screen edges */
  .page-index-game-features__features-overview .page-index-game-features__container,
  .page-index-game-features__advantages-section .page-index-game-features__container,
  .page-index-game-features__how-to-start .page-index-game-features__container,
  .page-index-game-features__faq-section .page-index-game-features__container,
  .page-index-game-features__cta-bottom .page-index-game-features__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  /* Ensure content area images are not displayed smaller than 200px (already handled by max-width: 100% for general images) */
  .page-index-game-features__feature-image,
  .page-index-game-features__advantage-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important; /* to ensure it takes available space */
    height: auto !important;
    object-fit: cover;
  }
  .page-index-game-features__advantage-icon {
    width: 100px !important; /* Keep icon size if it's meant to be smaller but still >200 min rule */
    height: 100px !important;
    max-width: 100px !important; /* Override general image rule to keep icon size */
    max-height: 100px !important;
    margin: 0 auto 20px auto;
  }
  /* Re-evaluate if the icons are truly content images. The prompt says "禁止所有小图标" and "最小尺寸要求：所有图片的最小尺寸必须至少为 200x200 像素". The current advantage-icon is 100x100. This is a conflict. I will make the advantage icons larger to comply with the 200x200 rule. */
  .page-index-game-features__advantage-icon {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    margin: 0 auto 20px auto;
  }
}