.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #ffffff;
}

.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: #f5f5f5;
}

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

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

.page-game-bai__description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #555555;
}

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

.page-game-bai__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

.page-game-bai__btn-primary:hover {
  background-color: #005a2d;
  transform: translateY(-2px);
}

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

.page-game-bai__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

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

.page-game-bai__btn-link {
  color: #017439;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  display: inline-block;
  margin-top: 10px;
}

.page-game-bai__btn-link:hover {
  color: #005a2d;
}

.page-game-bai__btn-white-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-game-bai__btn-white-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

.page-game-bai__intro-section {
  background-color: #ffffff;
}

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

.page-game-bai__section-title--white {
  color: #ffffff;
}

.page-game-bai__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-bai__figure {
  margin: 30px auto;
  text-align: center;
  max-width: 800px;
}

.page-game-bai__figure--small {
  max-width: 680px;
}

.page-game-bai__figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto;
}

.page-game-bai__figcaption {
  font-size: 0.9rem;
  color: #777777;
  margin-top: 10px;
}

.page-game-bai__games-list-section {
  background-color: #017439;
}

.page-game-bai__description--white {
  color: #f0f0f0;
}

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

.page-game-bai__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-game-bai__card-title {
  font-size: 1.4rem;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-bai__card-link {
  color: #017439;
  text-decoration: none;
}

.page-game-bai__card-link:hover {
  text-decoration: underline;
}

.page-game-bai__card-text {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

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

.page-game-bai__guide-section {
  background-color: #f9f9f9;
}

.page-game-bai__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-game-bai__step-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 30px;
}

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

.page-game-bai__promo-box {
  background-color: #017439;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin-top: 50px;
}

.page-game-bai__promo-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-game-bai__promo-title--yellow {
  color: #FFFF00;
}

.page-game-bai__promo-text {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 25px;
}

.page-game-bai__promo-text--white {
  color: #ffffff;
}

.page-game-bai__strategy-section {
  background-color: #ffffff;
}

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

.page-game-bai__tip-item {
  background-color: #f0f0f0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.page-game-bai__tip-text {
  font-size: 0.95rem;
  color: #555555;
}

.page-game-bai__promotions-section {
  background-color: #017439;
}

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

.page-game-bai__promo-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-bai__promo-action {
  text-align: center;
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-game-bai__faq-section {
  background-color: #f9f9f9;
}

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

.page-game-bai__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  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.1rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #fcfcfc;
  border-bottom: 1px solid #e0e0e0;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
  border-bottom: 1px solid transparent; /* Hide border when open */
}

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

.page-game-bai__faq-qtext {
  flex-grow: 1;
  color: #017439;
}

.page-game-bai__faq-toggle {
  font-size: 1.5rem;
  color: #017439;
  margin-left: 15px;
  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 25px;
  font-size: 1rem;
  color: #555555;
  text-align: justify;
}

.page-game-bai__contact-cta {
  text-align: center;
  margin-top: 40px;
}

.page-game-bai__conclusion-section {
  background-color: #ffffff;
  text-align: center;
}

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

  /* 顶区标题 + 双 CTA */
  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body padding for header offset */
    padding-bottom: 40px;
  }

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

  .page-game-bai__description {
    font-size: 1rem;
    margin-bottom: 25px;
    padding: 0 15px;
  }

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

  .page-game-bai__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__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
  }

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

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

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

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

  .page-game-bai__figure {
    margin: 20px auto;
  }

  .page-game-bai__figcaption {
    font-size: 0.85rem;
  }

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

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

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

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

  .page-game-bai__card-text {
    font-size: 0.9rem;
  }

  .page-game-bai__view-all-games {
    margin-top: 30px;
  }

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

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

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

  .page-game-bai__promo-box {
    padding: 25px;
    margin-top: 40px;
  }

  .page-game-bai__promo-title {
    font-size: 1.5rem;
  }

  .page-game-bai__promo-text {
    font-size: 1rem;
  }

  .page-game-bai__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

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

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

  .page-game-bai__promo-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

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

  .page-game-bai__promo-action {
    margin-top: 40px;
    flex-direction: column;
  }

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

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

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

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

  .page-game-bai__contact-cta {
    margin-top: 30px;
  }
}

/* Tablet responsiveness */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-game-bai__container {
    padding: 0 30px;
  }

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

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

  .page-game-bai__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-game-bai__tips-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-game-bai__promo-list {
    grid-template-columns: repeat(2, 1fr);
  }
}