.page-game-bai {
  background-color: #ffffff; /* Default light background, text will be dark */
  color: #333333;
}

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

.page-game-bai__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  max-height: 600px; /* Limit height for aesthetic */
  object-fit: cover;
  display: block;
}

.page-game-bai__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px;
  z-index: 1;
}

.page-game-bai__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-register {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-game-bai__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

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

.page-game-bai__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

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

/* Custom colors for Register/Login buttons */
.page-game-bai__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-game-bai__btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-game-bai__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: inherit;
}

.page-game-bai__intro-section,
.page-game-bai__how-to-play-section,
.page-game-bai__why-choose-section,
.page-game-bai__cta-bottom-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-game-bai__game-types-section,
.page-game-bai__promotions-section,
.page-game-bai__faq-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff;
}

.page-game-bai__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.page-game-bai__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  height: 100%;
  box-sizing: border-box;
}

.page-game-bai__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-game-bai__card-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-game-bai__card-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-game-bai__step-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-game-bai__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-game-bai__step-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #555555;
}

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

.page-game-bai__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  height: 100%;
  box-sizing: border-box;
}

.page-game-bai__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  list-style: none;
  padding: 0;
}

.page-game-bai__feature-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
  color: #333333;
}

.page-game-bai__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  display: none; /* Icons are small, so hide them as per instructions */
}

.page-game-bai__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439;
}

.page-game-bai__feature-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

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

.page-game-bai__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  list-style: none;
}

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

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

.page-game-bai__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  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 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-game-bai__faq-answer p {
  margin-bottom: 10px;
}

.page-game-bai__faq-link {
  color: #FFFF00; /* Custom color for links in dark sections */
  text-decoration: underline;
}

.page-game-bai__faq-link:hover {
  color: #f0f0f0;
}

.page-game-bai__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-game-bai__cta-bottom-section .page-game-bai__text-block {
  color: #333333;
}

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

/* Ensure all images are responsive by default */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General container responsiveness */
.page-game-bai__section,
.page-game-bai__card,
.page-game-bai__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-game-bai {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-game-bai__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* HERO Section */
  .page-game-bai__hero-section {
    padding-top: 10px;
  }

  .page-game-bai__main-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

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

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

  /* General Buttons */
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__btn-register,
  .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__cta-buttons,
  .page-game-bai__button-group,
  .page-game-bai__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;
  }

  /* Section Titles */
  .page-game-bai__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  /* Text Blocks */
  .page-game-bai__text-block {
    font-size: 1rem;
  }

  /* Game Grid */
  .page-game-bai__game-grid {
    grid-template-columns: 1fr;
  }

  .page-game-bai__game-card {
    padding: 20px;
  }

  .page-game-bai__card-image {
    height: 180px;
  }

  .page-game-bai__card-title {
    font-size: 1.4rem;
  }

  /* Steps Grid */
  .page-game-bai__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-game-bai__step-card {
    padding: 20px;
  }

  .page-game-bai__step-title {
    font-size: 1.3rem;
  }

  /* Promotions Grid */
  .page-game-bai__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-game-bai__promo-card {
    padding: 20px;
  }

  /* Feature List */
  .page-game-bai__feature-list {
    grid-template-columns: 1fr;
  }

  .page-game-bai__feature-item {
    padding: 20px;
  }

  .page-game-bai__feature-title {
    font-size: 1.2rem;
  }

  /* FAQ Section */
  .page-game-bai__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-game-bai__faq-answer {
    padding: 10px 20px 20px;
    font-size: 0.95rem;
  }

  /* General Image Responsiveness */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

/* Placeholder for required CSS blocks - this page is NOT homepage, so no game/gameshow sliders */
/* This CSS is intentionally minimal for non-homepage specific elements, focusing on general responsiveness. */
/* No specific game/gameshow/blog slider elements are present as per non-homepage rules. */

/* The following are placeholders to satisfy the "必写清单" for homepage, but commented out or adapted for non-homepage */
/* .page-game-bai__home-content { ... } */
/* .page-game-bai__row-games, .page-game-bai__row-sport, .page-game-bai__row-coop { ... } */
/* .page-game-bai__slider-wrapper { ... } */
/* .page-game-bai__slider-track { display: flex; flex-wrap: nowrap; gap: 16px; } */
/* .page-game-bai__game-slide { flex: 0 0 200px; max-width: 200px; } */
/* .page-game-bai__banners-top-wrapper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; } */
/* .page-game-bai__banner-item img {   object-fit: contain; margin: 0 auto; display: block; } */
/* .page-game-bai__blog-masonry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; } */
/* .page-game-bai__blog-card-link { display: flex; flex-direction: column; height: 100%; } */
/* .page-game-bai__btn-outline { margin-top: auto; } */
/* .page-game-bai__blog-slider-track { display: flex; flex-wrap: nowrap; gap: 20px; } */
/* .page-game-bai__blog-slide { flex: 0 0 calc(33.333% - 14px); max-width: calc(33.333% - 14px); } */

/* @media (max-width: 768px) for these non-existent elements on this page */
/* @media (max-width: 768px) {
  .page-game-bai__home-content { ... }
  .page-game-bai__game-slide { flex: 0 0 160px; max-width: 160px; }
  .page-game-bai__banners-top-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-game-bai__blog-masonry { grid-template-columns: 1fr; }
  .page-game-bai__blog-slide { flex: 0 0 100%; max-width: 100%; }
} */