.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background: #F4F7FB; /* Background */
  line-height: 1.6;
}

/* --- Hero Section --- */
.page-game-bai__hero-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 50px; 
  padding-top: 10px; /* Small top padding, as body handles header offset */
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Blue gradient */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-game-bai__hero-image {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-game-bai__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.page-game-bai__hero-content {
  max-width: 800px;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  background: #FFFFFF; /* Card BG */
  text-align: center;
}

.page-game-bai__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #2F6BFF; /* Primary color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-bai__description {
  font-size: 1.2em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

.page-game-bai__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 100%; /* Ensure container adapts */
  box-sizing: border-box;
  overflow: hidden;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__card-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  box-sizing: border-box; /* Include padding/border in width */
  text-align: center;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-game-bai__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-game-bai__btn-secondary {
  background: #FFFFFF; /* Card BG */
  color: #2F6BFF; /* Primary color */
  border: 2px solid #2F6BFF; /* Primary color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-bai__btn-secondary:hover {
  transform: translateY(-3px);
  background: #f0f5ff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* --- General Section Styling --- */
.page-game-bai__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-game-bai__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #2F6BFF; /* Primary color */
  text-align: center;
  margin-bottom: 20px;
}

.page-game-bai__section-description {
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__background-section {
  background: #F4F7FB; /* Background */
}

.page-game-bai__light-bg {
  background: #FFFFFF; /* Card BG */
  color: #1F2D3D; /* Text Main */
}

.page-game-bai__dark-section {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Primary color as background */
  color: #ffffff; /* White text for dark background */
}

.page-game-bai__dark-section .page-game-bai__section-title,
.page-game-bai__dark-section .page-game-bai__section-description {
  color: #ffffff;
}

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

.page-game-bai__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-game-bai__text-block {
  flex: 1;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-game-bai__text-block p {
  margin-bottom: 15px;
}

.page-game-bai__text-block a {
  color: #2F6BFF;
  text-decoration: underline;
}

.page-game-bai__text-block .page-game-bai__btn-primary {
  margin-top: 20px;
}

.page-game-bai__image-block {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

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

.page-game-bai__game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-game-bai__game-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-game-bai__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-game-bai__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #2F6BFF; /* Primary color */
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-game-bai__card-text {
  font-size: 0.95em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  padding: 0 20px;
  flex-grow: 1; /* Allow text to grow */
}

.page-game-bai__card-btn {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(47, 107, 255, 0.2);
  margin-top: auto; /* Push button to bottom */
}

.page-game-bai__card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(47, 107, 255, 0.3);
}


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

.page-game-bai__advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-game-bai__advantage-item {
  background: #FFFFFF; /* Card BG */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.page-game-bai__advantage-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #2F6BFF; /* Primary color */
  margin-bottom: 15px;
}

.page-game-bai__advantage-text {
  font-size: 0.95em;
  color: #1F2D3D; /* Text Main */
}

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

.page-game-bai__promotions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-game-bai__promo-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-game-bai__promo-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

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

.page-game-bai__guide-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.page-game-bai__step-item {
  background: #FFFFFF; /* Card BG */
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
}

.page-game-bai__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #2F6BFF; /* Primary color */
  color: #ffffff;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.3);
}

.page-game-bai__step-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #2F6BFF; /* Primary color */
  margin-bottom: 15px;
}

.page-game-bai__step-text {
  font-size: 1em;
  color: #1F2D3D; /* Text Main */
}

.page-game-bai__step-text a {
  color: #2F6BFF;
  text-decoration: underline;
}

.page-game-bai__cta-bottom {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
  max-width: 100%; /* Ensure container adapts */
  box-sizing: border-box;
  overflow: hidden;
}

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

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

details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border color */
  overflow: hidden;
  background: #fff; /* Card BG */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question:hover {
  background: #F4F7FB; /* Background color on hover */
}
.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #6FA3FF; /* Auxiliary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer {
  padding: 0 20px 20px;
  background: #F4F7FB; /* Background color */
  border-radius: 0 0 5px 5px;
  color: #1F2D3D; /* Text Main */
}
details.page-game-bai__faq-item .page-game-bai__faq-answer p {
  margin-bottom: 10px;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer a {
  color: #2F6BFF;
  text-decoration: underline;
}

/* --- Final CTA Section --- */
.page-game-bai__final-cta {
  padding: 80px 0;
  text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-game-bai__hero-image {
    max-width: 900px;
  }
  .page-game-bai__main-title {
    font-size: 2.2em;
  }
  .page-game-bai__section-title {
    font-size: 1.8em;
  }
  .page-game-bai__game-grid,
  .page-game-bai__advantages-grid,
  .page-game-bai__promotions-grid,
  .page-game-bai__guide-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .page-game-bai__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-game-bai__image-block {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 30px;
  }
  .page-game-bai__hero-image img {
    object-fit: contain !important; /* 禁止 cover 裁切两侧 */
    aspect-ratio: unset !important; /* 禁止 aspect-ratio */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-bai__hero-content {
    padding: 20px;
    margin: 0 15px;
  }
  .page-game-bai__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em); /* Use clamp for H1 */
    margin-bottom: 15px;
  }
  .page-game-bai__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* 通用容器和图片 */
  .page-game-bai__container {
    padding: 30px 15px; /* Add padding to container */
  }
  .page-game-bai__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 15px;
  }
  .page-game-bai__section-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}
}