/* Base styles for page-game-bai */
.page-game-bai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #ffffff; /* Explicitly set for content area if body is light */
}

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

.page-game-bai__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-bai__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-game-bai__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-game-bai__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Primary brand color for text */
  border: 2px solid #017439;
}

.page-game-bai__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
}

.page-game-bai__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-game-bai__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-game-bai__hero-content {
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background-color: #ffffff; /* Explicit light background for content */
  color: #333333;
}

.page-game-bai__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-bai__hero-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
}

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

/* General Content Grid */
.page-game-bai__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-game-bai__content-grid--reversed {
  grid-template-columns: 1fr 1fr;
}

.page-game-bai__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-game-bai__feature-list,
.page-game-bai__step-list,
.page-game-bai__tip-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-game-bai__feature-list li,
.page-game-bai__step-list li,
.page-game-bai__tip-list li {
  background-color: #f9f9f9;
  margin-bottom: 10px;
  padding: 15px;
  border-left: 5px solid #017439;
  border-radius: 5px;
  line-height: 1.5;
}

.page-game-bai__feature-item-title,
.page-game-bai__step-title,
.page-game-bai__tip-title {
  color: #017439;
}

/* Game Types Section */
.page-game-bai__game-types-section {
  padding: 60px 0;
}

.page-game-bai__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-game-bai__dark-bg-text {
  color: #ffffff;
}

.page-game-bai__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #333333;
}

.page-game-bai__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-game-bai__card-title {
  font-size: 1.5em;
  color: #017439;
  padding: 15px 20px 10px;
  margin: 0;
  font-weight: bold;
}

.page-game-bai__card-text {
  font-size: 1em;
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-game-bai__card .page-game-bai__btn-primary {
  margin: 0 20px 20px;
}

.page-game-bai__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* FAQ Section */
.page-game-bai__faq-section {
  padding: 60px 0;
}

.page-game-bai__faq-list {
  margin-top: 40px;
}

.page-game-bai__faq-item {
  background-color: #f0f0f0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #017439;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  list-style: none; /* Hide default marker */
}

.page-game-bai__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-bai__faq-question::marker {
  display: none;
}

.page-game-bai__faq-qtext {
  flex-grow: 1;
}

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
  transform: rotate(45deg);
}

.page-game-bai__faq-answer {
  padding: 15px 25px;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  color: #555555;
}

.page-game-bai__faq-answer p {
  margin: 0;
}

/* Conclusion Section */
.page-game-bai__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

.page-game-bai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Images */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__container {
    padding: 20px 15px;
  }

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

  .page-game-bai__sub-title {
    font-size: 1.5em;
  }

  .page-game-bai__hero-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-game-bai__game-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    margin-bottom: 20px;
  }

  .page-game-bai__hero-content {
    padding: 30px 15px;
    margin: 20px auto;
  }

  .page-game-bai__hero-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

  .page-game-bai__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-game-bai__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  /* 长文金框区 - N/A for this page type */

  /* 游戏轮播 - N/A for this page type */

  /* 合作品牌六宫格 - N/A for this page type */

  /* 博客卡片区 - N/A for this page type */

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

  .page-game-bai__image-block,
  .page-game-bai__card-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-game-bai__container,
  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__content-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai a[class*="button"],
  .page-game-bai 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-game-bai__hero-cta-buttons,
  .page-game-bai__cta-bottom,
  .page-game-bai__cta-buttons {
    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 buttons stack vertically */
  }

  .page-game-bai__content-grid,
  .page-game-bai__content-grid--reversed {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__content-grid--reversed .page-game-bai__image-block {
    order: -1; /* Image appears first on mobile */
  }

  .page-game-bai__game-cards-grid {
    grid-template-columns: 1fr;
  }

  .page-game-bai__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-game-bai__sub-title {
    font-size: 1.3em;
  }

  .page-game-bai__card-image {
    height: 180px; /* Adjust card image height for mobile */
  }

  .page-game-bai__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-game-bai__faq-answer {
    padding: 10px 20px;
  }
}