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

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

.page-game-bai__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  box-sizing: border-box;
}

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

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

.page-game-bai__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 900px;
  width: 90%;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-game-bai__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFF00; /* Register/Login font color */
}

.page-game-bai__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

.page-game-bai__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #017439;
}

.page-game-bai__sub-section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #017439;
}

.page-game-bai p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #333333;
}

.page-game-bai__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-game-bai__list li {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 10px;
  color: #333333;
}

.page-game-bai__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

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

.page-game-bai__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
}

.page-game-bai__btn-primary:hover {
  background-color: #a30606;
}

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

.page-game-bai__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
}

.page-game-bai__btn-small {
  padding: 8px 15px;
  font-size: 0.95rem;
  border-radius: 5px;
}

.page-game-bai__text-link {
  color: #FFFF00;
  text-decoration: underline;
  font-weight: 600;
}

.page-game-bai__text-link:hover {
  color: #f0f0f0;
}

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

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

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

.page-game-bai__game-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

.page-game-bai__game-card-title a:hover {
  color: #005a2e;
  text-decoration: underline;
}

.page-game-bai__game-card-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

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

.page-game-bai__step-item {
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-bai__step-figure {
  margin: 0 0 15px 0;
}

.page-game-bai__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  display: block;
}

.page-game-bai__step-caption {
  font-size: 1.15rem;
  font-weight: 600;
  color: #017439;
  margin-top: 10px;
}

.page-game-bai__step-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.page-game-bai__cta-banner {
  text-align: center;
  padding: 50px 30px;
  border-radius: 10px;
  margin: 50px auto;
  max-width: 900px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-game-bai__cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFF00; /* Register/Login font color */
}

.page-game-bai__cta-text {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

.page-game-bai__figure-caption {
  font-size: 0.95rem;
  color: #666666;
  margin-top: 10px;
}

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

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

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

.page-game-bai__feature-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

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

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

.page-game-bai__promo-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFF00; /* Register/Login font color */
}

.page-game-bai__promo-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-game-bai__faq-list {
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-game-bai__faq-item {
  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.15rem;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  background-color: #f5f5f5;
  list-style: none;
  user-select: none;
}

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

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

.page-game-bai__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.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: 1rem;
  line-height: 1.6;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

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

.page-game-bai__conclusion-section {
  padding: 60px 0;
  text-align: center;
  color: #ffffff;
}

.page-game-bai__conclusion-section .page-game-bai__section-title {
  color: #FFFF00; /* Register/Login font color */
}

.page-game-bai__conclusion-section p {
  color: #f0f0f0;
}

.page-game-bai__final-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ==================================================================
   RESPONSIVE STYLES
   ================================================================== */

@media (max-width: 1024px) {
  .page-game-bai__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-game-bai__hero-description {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }
  .page-game-bai__section-title {
    font-size: 2.2rem;
  }
  .page-game-bai__sub-section-title {
    font-size: 1.6rem;
  }
  .page-game-bai__cta-title {
    font-size: 1.8rem;
  }
  .page-game-bai__cta-text {
    font-size: 1.1rem;
  }
  .page-game-bai__game-card-title {
    font-size: 1.25rem;
  }
  .page-game-bai__game-card-description {
    font-size: 0.9rem;
  }
  .page-game-bai__step-caption {
    font-size: 1.05rem;
  }
  .page-game-bai__feature-title, .page-game-bai__promo-title {
    font-size: 1.3rem;
  }
  .page-game-bai p, .page-game-bai li {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-game-bai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-game-bai__hero-content {
    padding: 15px;
    width: 95%;
  }
  .page-game-bai__main-title {
    font-size: 2rem !important;
    margin-bottom: 10px;
  }
  .page-game-bai__hero-description {
    font-size: 0.95rem !important;
    margin-bottom: 20px;
  }
  .page-game-bai__hero-cta-group {
    flex-direction: column;
    gap: 10px;
  }
  .page-game-bai__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px;
    font-size: 1rem;
  }

  /* 2. 单栏长文容器 */
  .page-game-bai__article-wrap {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-game-bai__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-game-bai__sub-section-title {
    font-size: 1.4rem;
  }
  .page-game-bai p, .page-game-bai li, .page-game-bai__game-card-description, .page-game-bai__step-description, .page-game-bai__feature-description, .page-game-bai__promo-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .page-game-bai__cta-banner {
    padding: 40px 20px;
    margin: 30px auto;
    max-width: 95%;
  }
  .page-game-bai__cta-title {
    font-size: 1.6rem;
  }
  .page-game-bai__cta-text {
    font-size: 1rem;
  }

  /* 3. 通用图片与 figure */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-game-bai__figure {
    margin: 30px auto;
    max-width: 100%;
  }
  .page-game-bai__step-image {
    height: auto;
  }
  .page-game-bai__game-card-image {
    height: 180px; /* Adjust for smaller screens */
  }
  .page-game-bai__hero-image {
    max-height: 400px;
  }

  /* 4. 按钮与按钮容器 */
  .page-game-bai__hero-cta-group, .page-game-bai__final-cta-group {
    flex-direction: column;
    gap: 10px;
  }
  .page-game-bai__btn-container, .page-game-bai__cta-buttons, .page-game-bai__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
  }
  .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;
  }

  /* 5. 注册教程与 FAQ 区块 */
  .page-game-bai__step-by-step-guide, .page-game-bai__game-list, .page-game-bai__feature-grid, .page-game-bai__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-game-bai__step-item, .page-game-bai__game-card, .page-game-bai__feature-item, .page-game-bai__promo-card {
    padding: 20px;
  }
  .page-game-bai__step-caption {
    font-size: 1rem;
  }
  .page-game-bai__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-game-bai__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95rem;
  }

  .page-game-bai__final-cta-group {
    flex-direction: column;
    gap: 10px;
  }
}

/* Ensure all image containers are responsive */
.page-game-bai__hero-image-wrapper,
.page-game-bai__game-card,
.page-game-bai__step-figure,
.page-game-bai__figure,
.page-game-bai__feature-item,
.page-game-bai__promo-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}