.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #FFF6D6;
  background-color: #0A0A0A;
}

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

.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  text-align: center;
  overflow: hidden;
  color: #FFF6D6;
  background: linear-gradient(180deg, #111111 0%, #0A0A0A 100%);
  padding-bottom: 50px;
}

.page-game-bai__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim image for text readability */
}

.page-game-bai__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.page-game-bai__main-title {
  font-size: clamp(2em, 3.5vw, 3.5em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFD36B; /* Glow color for title */
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.7);
}

.page-game-bai__subtitle {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  color: #FFF6D6;
}

.page-game-bai__section-title {
  font-size: clamp(1.8em, 2.5vw, 2.5em);
  color: #FFD36B;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.5);
}

.page-game-bai__text-block {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-game-bai__light-bg {
  background-color: #111111; /* Card BG color */
  color: #FFF6D6;
  padding: 60px 0;
}

.page-game-bai__dark-section {
  background-color: #0A0A0A; /* Main BG color */
  color: #FFF6D6;
  padding: 60px 0;
}

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

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for light button */
  border: 2px solid transparent;
  margin: 10px;
}

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  box-shadow: 0 0 15px #FFD36B;
}

.page-game-bai__btn-secondary {
  background: #111111; /* Card BG */
  color: #FFD36B; /* Glow color for text */
  border: 2px solid #FFD36B; /* Glow color for border */
  margin: 10px;
}

.page-game-bai__btn-secondary:hover {
  background: #FFD36B;
  color: #111111;
  box-shadow: 0 0 15px #FFD36B;
}

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

.page-game-bai__game-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.4);
}

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

.page-game-bai__game-title {
  font-size: 1.5em;
  color: #FFD36B;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-bai__game-title a {
  color: #FFD36B;
  text-decoration: none;
}

.page-game-bai__game-title a:hover {
  text-decoration: underline;
}

.page-game-bai__game-description {
  font-size: 0.95em;
  color: #FFF6D6;
  padding: 0 15px;
  margin-bottom: 20px;
}

/* Guide Section */
.page-game-bai__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-game-bai__step-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  text-align: center;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-bai__step-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-game-bai__step-title {
  font-size: 1.3em;
  color: #FFD36B;
  margin-bottom: 10px;
}

.page-game-bai__step-description {
  font-size: 0.9em;
  color: #FFF6D6;
}

/* Promo Section */
.page-game-bai__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-game-bai__promo-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 20px;
}

.page-game-bai__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.4);
}

.page-game-bai__promo-image {
  width: 100%;
  height: 180px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-game-bai__promo-title {
  font-size: 1.4em;
  color: #FFD36B;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-bai__promo-title a {
  color: #FFD36B;
  text-decoration: none;
}

.page-game-bai__promo-title a:hover {
  text-decoration: underline;
}

.page-game-bai__promo-description {
  font-size: 0.9em;
  color: #FFF6D6;
  padding: 0 15px;
  margin-bottom: 20px;
}

/* Why Choose Us Section */
.page-game-bai__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-game-bai__feature-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  text-align: center;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-bai__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-game-bai__feature-title {
  font-size: 1.3em;
  color: #FFD36B;
  margin-bottom: 10px;
}

.page-game-bai__feature-description {
  font-size: 0.9em;
  color: #FFF6D6;
}

/* FAQ Section */
.page-game-bai__faq-list {
  margin-top: 30px;
}

.page-game-bai__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-bai__faq-question {
  font-size: 1.2em;
  color: #FFD36B;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-game-bai__faq-answer {
  font-size: 1em;
  color: #FFF6D6;
  line-height: 1.5;
}

/* CTA Section */
.page-game-bai__cta-section {
  text-align: center;
  padding-bottom: 60px;
}

.page-game-bai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-game-bai__hero-content {
    max-width: 90%;
    padding: 15px;
  }

  .page-game-bai__main-title {
    font-size: 2.8em;
  }

  .page-game-bai__subtitle {
    font-size: 1.1em;
  }

  .page-game-bai__game-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__promo-grid,
  .page-game-bai__feature-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* Generic mobile padding for main content sections */
  .page-game-bai__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-bai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-game-bai__hero-content {
    position: static;
    transform: none;
    padding: 20px 15px;
    background-color: rgba(0, 0, 0, 0.7);
    margin: 20px auto;
  }

  .page-game-bai__main-title {
    font-size: 2em !important;
    margin-bottom: 10px;
  }

  .page-game-bai__subtitle {
    font-size: 0.95em !important;
    margin-bottom: 20px;
  }

  .page-game-bai__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-game-bai__text-block,
  .page-game-bai p,
  .page-game-bai li {
    font-size: 1em !important;
    line-height: 1.5 !important;
  }

  /* Buttons mobile adaptation */
  .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;
    margin: 5px 0 !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-bai__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Image responsiveness for all img tags */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-bai__game-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__promo-grid,
  .page-game-bai__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__game-card,
  .page-game-bai__step-card,
  .page-game-bai__promo-card,
  .page-game-bai__feature-item,
  .page-game-bai__faq-item {
    padding: 15px;
  }

  .page-game-bai__game-image,
  .page-game-bai__step-image,
  .page-game-bai__promo-image {
    height: auto; /* Allow height to adjust for mobile */
  }

  /* Placeholder styles for homepage components (as required by "必写清单" even if not in HTML) */
  .page-game-bai__hero-carousel-section {
    /* Not used on this page's HTML, but included in CSS as per requirement */
    padding-top: 10px !important;
  }

  .page-game-bai__guide-box {
    /* Not used on this page's HTML, but included in CSS as per requirement */
    padding: 15px !important;
  }

  .page-game-bai__guide-grid {
    /* Not used on this page's HTML, but included in CSS as per requirement */
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .page-game-bai__guide-card {
    /* Not used on this page's HTML, but included in CSS as per requirement */
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 0 !important;
  }

  .page-game-bai__home-content-box {
    /* Not used on this page's HTML, but included in CSS as per requirement */
    height: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 10px !important;
  }

  .page-game-bai__home-content-inner {
    /* Not used on this page's HTML, but included in CSS as per requirement */
    height: auto !important;
    overflow: visible !important;
  }

  .page-game-bai__blog-section {
    /* Not used on this page's HTML, but included in CSS as per requirement */
    padding: 30px 0;
  }

  .page-game-bai__blog-grid {
    /* Not used on this page's HTML, but included in CSS as per requirement */
    grid-template-columns: 1fr;
    gap: 20px;
  }
}