.page-game-bai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f8f9fa;
}

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

.page-game-bai__dark-bg {
  background-color: #08162B; /* Deep Navy */
  color: #F3F8FF; /* Text Main for dark background */
}

.page-game-bai__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

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

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

.page-game-bai__highlight {
  color: #F2C14E; /* Gold */
  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: all 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: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF; /* Text Main */
  border: none;
}

.page-game-bai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-game-bai__btn-secondary {
  background: #10233F; /* Card BG */
  color: #AFC4E8; /* Text Secondary */
  border: 1px solid #244D84; /* Border */
}

.page-game-bai__btn-secondary:hover {
  background: #1B3357; /* Divider */
  color: #F3F8FF;
}

/* HERO SECTION */
.page-game-bai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-game-bai__hero-image-container {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

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

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

.page-game-bai__main-title {
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #F3F8FF; /* Text Main */
}

.page-game-bai__hero-description {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: #AFC4E8; /* Text Secondary */
}

/* INTRO SECTION */
.page-game-bai__intro-section {
  padding: 60px 20px;
}

/* FEATURES SECTION */
.page-game-bai__features-section {
  padding: 60px 20px;
}

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

.page-game-bai__feature-card {
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-bai__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #113B7A; /* Main color for titles on light background */
}

.page-game-bai__card-description {
  font-size: 1rem;
  color: #333333;
}

.page-game-bai__feature-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* GAMES SHOWCASE SECTION */
.page-game-bai__games-showcase {
  padding: 60px 20px;
}

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

.page-game-bai__game-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-game-bai__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-game-bai__game-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-bai__game-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #F3F8FF; /* Text Main */
}

.page-game-bai__game-description {
  font-size: 1rem;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

/* GUIDE SECTION */
.page-game-bai__guide-section {
  padding: 60px 20px;
}

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

.page-game-bai__guide-step {
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-bai__step-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #113B7A; /* Main color */
}

.page-game-bai__step-description {
  font-size: 1rem;
  color: #333333;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* PROMO SECTION */
.page-game-bai__promo-section {
  padding: 60px 20px;
}

.page-game-bai__promo-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-game-bai__promo-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__promo-text {
  flex: 1;
  min-width: 300px;
}

.page-game-bai__promo-text p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #AFC4E8; /* Text Secondary */
  text-align: left;
}

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

.page-game-bai__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.page-game-bai__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #113B7A; /* Main color */
  cursor: pointer;
  background-color: #f5f5f5;
  list-style: none;
}

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

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

.page-game-bai__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  pointer-events: none;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
  content: '−';
}

.page-game-bai__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #333333;
  border-top: 1px solid #eee;
}

/* CONCLUSION SECTION */
.page-game-bai__conclusion-section {
  padding: 60px 20px;
  text-align: center;
}

.page-game-bai__conclusion-section .page-game-bai__btn-primary {
  margin-top: 30px;
}

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

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

  .page-game-bai__hero-image-container {
    max-height: 500px;
  }

  .page-game-bai__promo-content {
    flex-direction: column;
    text-align: center;
  }

  .page-game-bai__promo-text p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Small top padding, not var(--header-offset) */
    padding-bottom: 40px;
  }

  .page-game-bai__hero-image-container {
    max-height: 400px;
  }

  .page-game-bai__main-title {
    font-size: 2.2rem;
  }

  .page-game-bai__hero-description {
    font-size: 1.1rem;
  }

  /* 深色导语区 */
  .page-game-bai__intro-section {
    padding: 40px 15px;
  }

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

  .page-game-bai__text-block {
    font-size: 1rem;
  }

  /* 通用图片与容器 */
  .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,
  .page-game-bai__hero-section,
  .page-game-bai__intro-section,
  .page-game-bai__features-section,
  .page-game-bai__games-showcase,
  .page-game-bai__guide-section,
  .page-game-bai__promo-section,
  .page-game-bai__faq-section,
  .page-game-bai__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FEATURES SECTION */
  .page-game-bai__features-section {
    padding: 40px 15px;
  }

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

  .page-game-bai__feature-card {
    padding: 25px;
  }

  /* GAMES SHOWCASE SECTION */
  .page-game-bai__games-showcase {
    padding: 40px 15px;
  }

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

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

  /* GUIDE SECTION */
  .page-game-bai__guide-section {
    padding: 40px 15px;
  }

  .page-game-bai__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* PROMO SECTION */
  .page-game-bai__promo-section {
    padding: 40px 15px;
  }

  .page-game-bai__promo-image {
    max-width: 100%;
  }

  .page-game-bai__promo-text p {
    text-align: center;
  }

  /* FAQ SECTION */
  .page-game-bai__faq-section {
    padding: 40px 15px;
  }

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

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

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

  /* CONCLUSION SECTION */
  .page-game-bai__conclusion-section {
    padding: 40px 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-content .page-game-bai__btn-primary,
  .page-game-bai__conclusion-section .page-game-bai__btn-primary {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  /* 按钮容器移动端适配 */
  .page-game-bai__cta-buttons,
  .page-game-bai__button-group,
  .page-game-bai__btn-container,
  .page-game-bai__guide-step {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-game-bai__promo-text .page-game-bai__btn-secondary {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

@media (max-width: 549px) {
  .page-game-bai__features-grid,
  .page-game-bai__games-grid,
  .page-game-bai__guide-steps {
    grid-template-columns: 1fr;
  }
}