/* Base styles for the Game Bài page */
.page-game-bai {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
}

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

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

.page-game-bai__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0;
}

.page-game-bai__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-game-bai__btn-primary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
}

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

.page-game-bai__btn-secondary:hover {
  background-color: #e0f4ff;
  color: #1a8cc4;
  border-color: #1a8cc4;
}

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: #f0f8ff;
  overflow: hidden;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  height: auto;
}

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

.page-game-bai__hero-content {
  max-width: 800px;
  margin: 40px auto 60px auto;
  text-align: center;
  padding: 0 15px;
}

.page-game-bai__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-bai__hero-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
}

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

/* General Image Styling */
.page-game-bai__image-content-wrapper {
  margin: 40px auto;
  max-width: 900px;
  text-align: center;
}

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

/* Section Backgrounds and Text Colors for Contrast */
.page-game-bai__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-game-bai__text-light {
  color: #ffffff;
}

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

.page-game-bai__game-card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #333333;
}

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

.page-game-bai__game-card-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
  padding: 0 15px;
}

.page-game-bai__game-card-text {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 25px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-game-bai__game-card-btn {
  margin-top: auto;
  max-width: calc(100% - 30px);
  margin-left: 15px;
  margin-right: 15px;
}

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

.page-game-bai__guide-step-card {
  background-color: #f9f9f9;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #333333;
}

.page-game-bai__guide-step-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-game-bai__guide-step-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
  padding: 0 15px;
}

.page-game-bai__guide-step-text {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 25px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-game-bai__guide-step-btn {
  margin-top: auto;
  max-width: calc(100% - 30px);
  margin-left: 15px;
  margin-right: 15px;
}

/* Promotion Section */
.page-game-bai__promotion-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-game-bai__promotion-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.page-game-bai__promotion-item::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #ffffff;
}

.page-game-bai__cta-center {
  text-align: center;
}

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

.page-game-bai__strategy-card {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #333333;
}

.page-game-bai__strategy-card-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-game-bai__strategy-card-text {
  font-size: 1em;
  line-height: 1.6;
  flex-grow: 1;
}

/* FAQ Section */
.page-game-bai__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-game-bai__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
  transform: rotate(45deg);
}

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-game-bai__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Final CTA Section */
.page-game-bai__final-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsive Design */
/* Mobile specific styles */
@media (max-width: 768px) {
  .page-game-bai__section-padding {
    padding: 40px 15px;
  }

  .page-game-bai__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-game-bai__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-game-bai__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-game-bai__hero-cta-buttons,
  .page-game-bai__final-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
  }

  /* General images for mobile */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-game-bai__image-content-wrapper,
  .page-game-bai__container,
  .page-game-bai__game-card,
  .page-game-bai__guide-step-card,
  .page-game-bai__strategy-card,
  .page-game-bai__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-game-bai__hero-content {
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 0 10px;
  }

  .page-game-bai__game-cards-grid,
  .page-game-bai__guide-steps-grid,
  .page-game-bai__strategy-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__game-card-image,
  .page-game-bai__guide-step-image {
    height: 180px;
  }

  .page-game-bai__game-card-title,
  .page-game-bai__guide-step-title {
    font-size: 1.4em;
  }

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

  .page-game-bai__promotion-list {
    margin-left: 0;
    padding-left: 20px;
  }

  .page-game-bai__promotion-item {
    padding-left: 25px;
  }

  .page-game-bai__promotion-item::before {
    left: 0;
  }
}

/* Placeholder for required CSS elements if they were on this page, per the "必写清单" */
/* HERO 主图区域 - Already handled above with .page-game-bai__hero-section padding-top */

/* 长文金框区 (Not explicitly used on this Game Bai page, but including placeholder for completeness if it were) */
.page-game-bai__home-content { /* Assuming this is the 'long text gold frame' */
  border: 1px solid #FBB00D;
  border-radius: 10px;
  height: auto; /* Not fixed height for content */
  overflow-y: visible;
  padding: 20px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .page-game-bai__home-content {
    height: auto !important;
    overflow-y: visible !important;
    padding: 15px !important;
    font-size: 1em !important;
  }
  .page-game-bai__home-content h2 { /* Example h2 for this section */
    font-size: 1.6em !important;
  }
}

/* 游戏轮播 (Not used on this non-homepage Game Bai page, but including placeholder for completeness) */
.page-game-bai__slider-wrapper {
  overflow: hidden;
  margin-bottom: 40px;
}
.page-game-bai__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transition: transform 0.3s ease-out;
}
.page-game-bai__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  background-color: #f0f0f0;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}
@media (max-width: 768px) {
  .page-game-bai__slider-wrapper {
    padding: 0 10px;
  }
  .page-game-bai__slider-track {
    display: flex !important; /* Ensure flex for horizontal scroll */
    gap: 10px !important;
  }
  .page-game-bai__game-slide {
    flex: 0 0 160px !important;
    max-width: 160px !important;
  }
}

/* 合作品牌六宫格 (Not used on this non-homepage Game Bai page, but including placeholder for completeness) */
.page-game-bai__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 40px auto;
}
.page-game-bai__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
@media (max-width: 768px) {
  .page-game-bai__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important; /* 3 columns for mobile */
    gap: 8px !important;
    padding: 0 10px;
  }
  .page-game-bai__banner-item img {
    
    
  }
}

/* 博客卡片区 (Not explicitly a masonry grid on this Game Bai page, but general card styles are present) */
.page-game-bai__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.page-game-bai__blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.page-game-bai__btn-outline {
  margin-top: auto;
}
.page-game-bai__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.3s ease-out;
}
.page-game-bai__blog-slide {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
}
@media (max-width: 768px) {
  .page-game-bai__blog-masonry {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    padding: 0 10px;
  }
  .page-game-bai__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .page-game-bai__blog-slider-track {
    display: flex !important; /* Ensure flex for horizontal scroll */
    gap: 10px !important;
  }
}

/* 通用图片与容器 - Already handled by .page-game-bai img and container styles */

/* 按钮与按钮容器 - Already handled by .page-game-bai__btn-primary, .page-game-bai__btn-secondary, etc. */