.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background, #08160F);
  line-height: 1.6;
}

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

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

.page-game-bai__section-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-game-bai__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--glow, #57E38D);
  border-radius: 2px;
}

.page-game-bai__text-block {
  font-size: 17px;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  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, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.3);
}

.page-game-bai__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.4);
}

.page-game-bai__btn-secondary {
  background: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--glow, #57E38D);
}

.page-game-bai__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-2px);
}

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

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
}

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

.page-game-bai__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 1) 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-game-bai__main-title {
  font-size: 48px;
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-bai__hero-description {
  font-size: 20px;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-game-bai__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Introduction Section */
.page-game-bai__introduction-section .page-game-bai__text-block {
  font-size: 18px;
  line-height: 1.7;
  text-align: justify;
}

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

.page-game-bai__game-card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow, #57E38D);
}

.page-game-bai__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-game-bai__game-card-title {
  font-size: 24px;
  color: var(--gold, #F2C14E);
  margin: 20px 15px 10px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-game-bai__game-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-bai__game-card-title a:hover {
  color: var(--glow, #57E38D);
}

.page-game-bai__game-card-description {
  font-size: 15px;
  color: var(--text-secondary, #A7D9B8);
  padding: 0 15px;
  margin-bottom: 20px;
}

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

/* Benefits Section */
.page-game-bai__dark-section {
  background-color: var(--deep-green, #0A4B2C);
  color: #ffffff;
}

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

.page-game-bai__dark-section .page-game-bai__text-block {
  color: var(--text-secondary, #A7D9B8);
}

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

.page-game-bai__benefits-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-game-bai__benefits-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 15px;
  color: var(--glow, #57E38D);
}

.page-game-bai__benefits-title {
  font-size: 22px;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-game-bai__benefits-description {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.6;
}

.page-game-bai__benefits-description a {
  color: var(--glow, #57E38D);
  text-decoration: underline;
}

.page-game-bai__benefits-description a:hover {
  color: #2AD16F;
}

/* How to Start Section */
.page-game-bai__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__step-card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-bai__step-title {
  font-size: 22px;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
}

.page-game-bai__step-description {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-game-bai__step-description a {
  color: var(--glow, #57E38D);
  text-decoration: underline;
}

.page-game-bai__step-description a:hover {
  color: #2AD16F;
}

/* Strategy Section */
.page-game-bai__light-bg {
  background-color: var(--background, #08160F); /* Keeping it consistent with overall dark theme */
}

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

.page-game-bai__strategy-list li {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.page-game-bai__strategy-item-title {
  font-size: 20px;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-game-bai__strategy-list p {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.6;
}

.page-game-bai__strategy-list p a {
  color: var(--glow, #57E38D);
  text-decoration: underline;
}

.page-game-bai__strategy-list p a:hover {
  color: #2AD16F;
}

/* FAQ Section */
details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border, #2E7A4E);
  overflow: hidden;
  background: var(--card-bg, #11271B);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
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: rgba(46, 122, 78, 0.2); /* Lighter green hover for dark theme */
}
.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold, #F2C14E);
}
.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow, #57E38D);
  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: var(--deep-green, #0A4B2C);
  border-radius: 0 0 5px 5px;
}
.page-game-bai__faq-answer p {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 0;
}
.page-game-bai__faq-answer a {
  color: var(--glow, #57E38D);
  text-decoration: underline;
}

/* Conclusion Section */
.page-game-bai__conclusion-section .page-game-bai__text-block {
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 30px;
}

.page-game-bai__conclusion-section .page-game-bai__text-block a {
  color: var(--glow, #57E38D);
  text-decoration: underline;
}

.page-game-bai__conclusion-section .page-game-bai__text-block a:hover {
  color: #2AD16F;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__main-title {
    font-size: 42px;
  }
  .page-game-bai__hero-description {
    font-size: 18px;
  }
  .page-game-bai__section-title {
    font-size: 32px;
  }
  .page-game-bai__game-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-game-bai__benefits-list,
  .page-game-bai__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .page-game-bai__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
  }
  .page-game-bai__hero-image-wrapper {
    max-height: 400px;
  }
  .page-game-bai__hero-image {
    object-fit: contain !important; /* 禁止 cover 裁切两侧 */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-bai__hero-content {
    margin-top: -50px; /* Adjust overlap for mobile */
    padding: 20px 15px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-game-bai__main-title {
    font-size: clamp(28px, 8vw, 36px); /* 字号 clamp */
    margin-bottom: 15px;
  }
  .page-game-bai__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-game-bai__hero-cta-buttons {
    flex-direction: column; /* 移动端垂直排列 */
    gap: 15px;
    max-width: 100%;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* General Section & Text */
  .page-game-bai__section {
    padding: 40px 0;
  }
  .page-game-bai__container {
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-game-bai__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-game-bai__text-block {
    font-size: 16px;
    text-align: left;
  }

  /* 产品展示图区域 */
  .page-game-bai__game-list {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
    margin-top: 30px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-game-bai__game-card {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }
  .page-game-bai__game-card-image {
    height: 200px;
  }
  .page-game-bai__game-card-title {
    font-size: 20px;
    min-height: auto;
    margin: 15px 10px 8px;
  }
  .page-game-bai__game-card-description {
    font-size: 14px;
    padding: 0 10px;
  }

  /* Benefits Section */
  .page-game-bai__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-game-bai__benefits-item {
    padding: 25px;
  }
  .page-game-bai__benefits-icon {
    font-size: 30px;
    margin-bottom: 10px;
  }
  .page-game-bai__benefits-title {
    font-size: 20px;
  }
  .page-game-bai__benefits-description {
    font-size: 15px;
  }

  /* How to Start Section */
  .page-game-bai__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-game-bai__step-card {
    padding: 25px;
  }
  .page-game-bai__step-title {
    font-size: 20px;
  }
  .page-game-bai__step-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* Strategy Section */
  .page-game-bai__strategy-list {
    margin-top: 30px;
  }
  .page-game-bai__strategy-list li {
    padding: 20px;
    margin-bottom: 15px;
  }
  .page-game-bai__strategy-item-title {
    font-size: 18px;
  }
  .page-game-bai__strategy-list p {
    font-size: 15px;
  }

  /* FAQ Section */
  details.page-game-bai__faq-item summary.page-game-bai__faq-question {
    padding: 15px;
  }
  .page-game-bai__faq-qtext {
    font-size: 16px;
  }
  .page-game-bai__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-game-bai__faq-item .page-game-bai__faq-answer {
    padding: 0 15px 15px;
  }
  .page-game-bai__faq-answer p {
    font-size: 15px;
  }

  /* 通用图片与容器 */
  .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__game-list,
  .page-game-bai__benefits-list,
  .page-game-bai__steps-grid,
  .page-game-bai__strategy-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-bai__cta-center {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  .page-game-bai__cta-center .page-game-bai__btn-primary {
    width: 100% !important;
  }
}