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

.page-index-core-game-features {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

/* Hero Section */
.page-index-core-game-features__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  padding-bottom: 40px;
  text-align: center;
  background-color: #0a0a0a; /* Ensure dark background for hero */
}

.page-index-core-game-features__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-index-core-game-features__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-index-core-game-features__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-index-core-game-features__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
}

.page-index-core-game-features__hero-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-index-core-game-features__cta-buttons--center {
    margin-top: 30px;
}

.page-index-core-game-features__btn-primary,
.page-index-core-game-features__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

.page-index-core-game-features__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-index-core-game-features__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-index-core-game-features__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
  transform: translateY(-2px);
}

/* General Section Styles */
.page-index-core-game-features__section-title {
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
  line-height: 1.3;
}

.page-index-core-game-features__section-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: center;
}

.page-index-core-game-features__dark-bg {
  background-color: #0a0a0a;
  padding: 60px 0;
}

.page-index-core-game-features__light-bg {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
  color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Introduction Section */
.page-index-core-game-features__introduction-section .page-index-core-game-features__section-text {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Game Features Section */
.page-index-core-game-features__game-features-section {
  padding-top: 0;
}

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

.page-index-core-game-features__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: #ffffff;
  transition: transform 0.3s ease;
  padding-bottom: 20px; /* Added padding for content below image */
}

.page-index-core-game-features__feature-card:hover {
  transform: translateY(-5px);
}

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

.page-index-core-game-features__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 20px;
  color: #017439; /* Brand green for titles */
}

.page-index-core-game-features__card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0e0e0;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index-core-game-features__card-link {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  margin-left: 20px; /* Align with padding */
  transition: background-color 0.3s ease;
}

.page-index-core-game-features__card-link:hover {
  background-color: #005a2e;
}

/* Advantages Section */
.page-index-core-game-features__advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-core-game-features__advantage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-index-core-game-features__item-title {
  font-size: 1.35rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439; /* Brand green for advantage titles */
}

.page-index-core-game-features__item-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Download Guide Section */
.page-index-core-game-features__download-guide-section {
  padding-bottom: 80px;
}

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

.page-index-core-game-features__step-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease;
}

.page-index-core-game-features__step-card:hover {
  transform: translateY(-5px);
}

.page-index-core-game-features__step-title {
  font-size: 1.35rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439; /* Brand green for step titles */
}

.page-index-core-game-features__step-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-index-core-game-features__tips-text {
  margin-top: 40px;
  font-style: italic;
  color: #e0e0e0;
}

/* FAQ Section */
.page-index-core-game-features__faq-section {
  padding-top: 0;
}

.page-index-core-game-features__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-core-game-features__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-index-core-game-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: #017439; /* Brand green for FAQ questions */
  list-style: none;
}

.page-index-core-game-features__faq-question::-webkit-details-marker {
  display: none;
}

.page-index-core-game-features__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-index-core-game-features__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #e0e0e0;
}

/* Conclusion Section */
.page-index-core-game-features__conclusion-section .page-index-core-game-features__section-text {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Universal image styling */
.page-index-core-game-features img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsive Design */

@media (max-width: 1024px) {
  .page-index-core-game-features__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-index-core-game-features__section-title {
    font-size: 2.2rem;
  }

  .page-index-core-game-features__feature-grid,
  .page-index-core-game-features__advantage-grid,
  .page-index-core-game-features__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index-core-game-features {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO 主图区域 */
  .page-index-core-game-features__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-index-core-game-features__hero-title {
    font-size: 2.2rem !important;
  }

  .page-index-core-game-features__hero-description {
    font-size: 1rem !important;
  }

  .page-index-core-game-features__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* 按钮与按钮容器 */
  .page-index-core-game-features__btn-primary,
  .page-index-core-game-features__btn-secondary,
  .page-index-core-game-features a[class*="button"],
  .page-index-core-game-features 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-index-core-game-features__cta-buttons,
  .page-index-core-game-features__button-group,
  .page-index-core-game-features__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 for buttons */
  }

  .page-index-core-game-features__container {
    padding: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index-core-game-features__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 20px;
  }

  .page-index-core-game-features__section-text {
    font-size: 0.95rem !important;
  }

  /* 产品展示图区域 (General content images/cards) */
  .page-index-core-game-features__feature-grid,
  .page-index-core-game-features__advantage-grid,
  .page-index-core-game-features__guide-steps {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-index-core-game-features__feature-card,
  .page-index-core-game-features__advantage-item,
  .page-index-core-game-features__step-card {
    padding: 20px !important;
  }

  .page-index-core-game-features__card-title,
  .page-index-core-game-features__item-title,
  .page-index-core-game-features__step-title {
    font-size: 1.2rem !important;
  }

  .page-index-core-game-features__card-description,
  .page-index-core-game-features__item-description,
  .page-index-core-game-features__step-description {
    font-size: 0.9rem !important;
  }

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

  .page-index-core-game-features__hero-image-wrapper,
  .page-index-core-game-features__feature-image {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* 其他内容模块 (FAQ) */
  .page-index-core-game-features__faq-question {
    font-size: 1rem !important;
    padding: 15px !important;
  }

  .page-index-core-game-features__faq-answer {
    padding: 0 15px 15px !important;
    font-size: 0.9rem !important;
  }

  .page-index-core-game-features__dark-bg {
    padding: 40px 0;
  }
}