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

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

.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding for non-homepage */
  text-align: center;
  background-color: #F4F7FB;
  position: relative;
  overflow: hidden;
}

.page-game-bai__hero-image-wrapper {
  margin-bottom: 20px;
}

.page-game-bai__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-game-bai__hero-content {
  padding: 20px 0 40px;
}

.page-game-bai__main-title {
  font-size: 3.2em;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__subtitle {
  font-size: 1.2em;
  color: #1F2D3D;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-bai__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-game-bai__btn--primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-game-bai__btn--secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-game-bai__btn--secondary:hover {
  background: #f0f5ff;
  color: #2458cc;
  border-color: #2458cc;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.page-game-bai__btn--small {
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 6px;
}

.page-game-bai__section {
  padding: 60px 0;
}

.page-game-bai__section:nth-child(even) {
  background-color: #f0f5fb;
}

.page-game-bai__section-title {
  font-size: 2.5em;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
}

.page-game-bai__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2F6BFF, #6FA3FF);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-game-bai__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: #1F2D3D;
}

.page-game-bai__text-block strong {
  color: #000000; /* Custom Color_1776249996415 */
}

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

.page-game-bai__game-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-bai__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-game-bai__card-title {
  font-size: 1.6em;
  color: #1F2D3D;
  margin: 15px 15px 10px;
  font-weight: 700;
  line-height: 1.3;
}

.page-game-bai__card-title a {
  color: #1F2D3D;
  text-decoration: none;
}

.page-game-bai__card-title a:hover {
  color: #2F6BFF;
}

.page-game-bai__card-description {
  font-size: 1em;
  color: #1F2D3D;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-bai__game-card .page-game-bai__btn {
  margin: 0 auto;
}

.page-game-bai__view-all-games {
  text-align: center;
  margin-top: 50px;
}

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

.page-game-bai__feature-item {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-game-bai__feature-icon {
  width: 100%;
  max-width: 100px;
  height: auto;
  margin-bottom: 20px;
}

.page-game-bai__feature-title {
  font-size: 1.5em;
  color: #2F6BFF;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-game-bai__feature-description {
  font-size: 1em;
  color: #1F2D3D;
  line-height: 1.7;
}

/* How To Play Section */
.page-game-bai__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-game-bai__step-item {
  background: #FFFFFF;
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-game-bai__step-description {
  font-size: 1em;
  color: #1F2D3D;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-game-bai__promo-card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-bai__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-game-bai__promo-card .page-game-bai__card-image {
  height: 200px; /* Ensure consistent height for promo images */
}

.page-game-bai__view-all-promos {
  text-align: center;
  margin-top: 50px;
}

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

.page-game-bai__tip-item {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-bai__tip-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-game-bai__tip-title {
  font-size: 1.6em;
  color: #1F2D3D;
  margin: 15px 15px 10px;
  font-weight: 700;
  line-height: 1.3;
}

.page-game-bai__tip-title a {
  color: #1F2D3D;
  text-decoration: none;
}

.page-game-bai__tip-title a:hover {
  color: #2F6BFF;
}

.page-game-bai__tip-description {
  font-size: 1em;
  color: #1F2D3D;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-bai__more-tips {
  text-align: center;
  margin-top: 50px;
}

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

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

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #1F2D3D;
  cursor: pointer;
  background-color: #fcfdff;
  border-bottom: 1px solid #D6E2FF;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
  border-bottom: none;
}

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

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  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 20px;
  font-size: 1em;
  color: #1F2D3D;
  line-height: 1.7;
  text-align: justify;
  background-color: #FFFFFF;
}

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

.page-game-bai__faq-answer .page-game-bai__btn {
  margin-top: 15px;
}

/* Call to Action Section */
.page-game-bai__call-to-action {
  background: #2F6BFF;
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
  border-radius: 12px;
  margin: 60px auto;
  box-shadow: 0 10px 30px rgba(47, 107, 255, 0.3);
  max-width: 1000px;
}

.page-game-bai__call-to-action .page-game-bai__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-game-bai__call-to-action .page-game-bai__section-title::after {
  background: #ffffff;
}

.page-game-bai__call-to-action .page-game-bai__text-block {
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__call-to-action .page-game-bai__cta-buttons {
  gap: 20px;
}

.page-game-bai__call-to-action .page-game-bai__btn--primary {
  background: #ffffff;
  color: #2F6BFF;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__call-to-action .page-game-bai__btn--primary:hover {
  background: #e0e0e0;
  color: #2F6BFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-bai__call-to-action .page-game-bai__btn--secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: none;
}

.page-game-bai__call-to-action .page-game-bai__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__main-title {
    font-size: 2.8em;
  }

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

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

  .page-game-bai__game-cards,
  .page-game-bai__features-grid,
  .page-game-bai__steps-list,
  .page-game-bai__promo-cards,
  .page-game-bai__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-game-bai__feature-icon {
    max-width: 80px;
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-game-bai__hero-section {
    padding-top: 10px !important;
  }

  .page-game-bai__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
    padding: 0 15px;
  }

  .page-game-bai__subtitle {
    font-size: 1em;
    padding: 0 15px;
  }

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

  .page-game-bai__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 2. 单栏长文容器 */
  .page-game-bai__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-bai__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-game-bai__text-block {
    font-size: 0.95em;
    padding: 0 5px;
  }

  /* 3. 通用图片与 figure */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-bai__hero-image {
    border-radius: 8px;
  }

  .page-game-bai__card-image,
  .page-game-bai__feature-icon,
  .page-game-bai__tip-image {
    height: auto;
    max-height: 180px; /* Adjust as needed, but ensure min 200px if not scaling down */
    object-fit: contain;
  }

  /* 4. 按钮与按钮容器 */
  .page-game-bai__hero-cta-buttons,
  .page-game-bai__cta-buttons,
  .page-game-bai__view-all-games,
  .page-game-bai__view-all-promos,
  .page-game-bai__more-tips {
    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 vertical stacking for groups of buttons */
  }

  .page-game-bai__btn,
  .page-game-bai__btn--small {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 5. 注册教程与 FAQ 区块 */
  .page-game-bai__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

  .page-game-bai__game-cards,
  .page-game-bai__features-grid,
  .page-game-bai__promo-cards,
  .page-game-bai__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__game-card,
  .page-game-bai__feature-item,
  .page-game-bai__promo-card,
  .page-game-bai__tip-item {
    padding-bottom: 20px;
  }

  .page-game-bai__call-to-action {
    padding: 50px 15px;
    margin: 40px 15px;
    border-radius: 8px;
  }

  .page-game-bai__call-to-action .page-game-bai__text-block {
    padding: 0 10px;
  }
}