/* Base styles for the page-game-bai scope */
.page-game-bai {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default body background */
  line-height: 1.6;
}

/* Container for content sections */
.page-game-bai__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Section titles */
.page-game-bai__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

/* Text blocks */
.page-game-bai__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding/border in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  text-align: center;
}

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

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

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

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

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

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  margin-bottom: 40px;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  height: 600px; /* Fixed height for desktop, adjust for mobile */
  overflow: hidden;
  position: relative;
}

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

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

.page-game-bai__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-game-bai__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Intro Section */
.page-game-bai__intro-section {
  padding: 60px 0;
}

/* Game Types Section */
.page-game-bai__game-types-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color as dark background */
  color: #ffffff; /* White text for dark background */
}

.page-game-bai__game-types-section .page-game-bai__section-title,
.page-game-bai__game-types-section .page-game-bai__text-block,
.page-game-bai__game-types-section .page-game-bai__card-title,
.page-game-bai__game-types-section .page-game-bai__card-description {
  color: #ffffff; /* Ensure white text */
}

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

.page-game-bai__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards are same height */
}

.page-game-bai__card-image {
  width: 100%;
  height: 200px; /* Fixed height for card image */
  object-fit: cover;
  display: block;
}

.page-game-bai__card-title {
  font-size: 1.5em;
  margin: 20px 20px 10px;
  font-weight: bold;
  color: #26A9E0;
}

.page-game-bai__card-description {
  font-size: 1em;
  line-height: 1.6;
  margin: 0 20px 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-game-bai__card .page-game-bai__btn-primary,
.page-game-bai__card .page-game-bai__btn-outline {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* Strategy Section */
.page-game-bai__strategy-section {
  padding: 60px 0;
}

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

.page-game-bai__tip-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  height: 100%;
}

.page-game-bai__tip-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-game-bai__tip-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
}

.page-game-bai__strategy-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 20px;
  display: block;
}

/* Promotions Section */
.page-game-bai__promotions-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color as dark background */
  color: #ffffff; /* White text for dark background */
}

.page-game-bai__promotions-section .page-game-bai__section-title,
.page-game-bai__promotions-section .page-game-bai__text-block,
.page-game-bai__promotions-section .page-game-bai__promo-title,
.page-game-bai__promotions-section .page-game-bai__promo-description {
  color: #ffffff;
}

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

.page-game-bai__promo-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  height: 100%;
}

.page-game-bai__promo-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-game-bai__promo-description {
  font-size: 1em;
  line-height: 1.6;
}

.page-game-bai__promotions-section .page-game-bai__btn-primary {
  margin-top: 40px;
}

.page-game-bai__promo-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 40px;
  display: block;
}

/* Why Choose Section */
.page-game-bai__why-choose-section {
  padding: 60px 0;
}

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

.page-game-bai__advantage-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
  height: 100%;
}

.page-game-bai__advantage-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-game-bai__advantage-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
}

/* CTA Section */
.page-game-bai__cta-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color as dark background */
  color: #ffffff; /* White text for dark background */
  text-align: center;
}

.page-game-bai__cta-section .page-game-bai__section-title,
.page-game-bai__cta-section .page-game-bai__text-block {
  color: #ffffff;
}

.page-game-bai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%; /* Ensure container takes full width for responsiveness */
  max-width: 100%;
  box-sizing: border-box;
}

/* FAQ Section */
.page-game-bai__faq-section {
  padding: 60px 0;
}

.page-game-bai__faq-list {
  margin-top: 40px;
  max-width: 800px;
  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.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* Hide default marker for <details> */
}

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
  border-bottom: 1px solid #d0d0d0;
  background-color: #ebebeb;
}

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

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

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

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

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

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

.page-game-bai__faq-section .page-game-bai__btn-secondary {
  margin-top: 30px;
  display: block;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* General image styling for responsive */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Desktop/Tablet Responsiveness (1024px) */
@media (max-width: 1024px) {
    .page-game-bai__hero-image-wrapper {
        height: 500px;
    }
    .page-game-bai__hero-title {
        font-size: 2.8em;
    }
    .page-game-bai__section-title {
        font-size: 2em;
    }
    .page-game-bai__text-block {
        font-size: 1em;
    }
    .page-game-bai__game-cards,
    .page-game-bai__tips-grid,
    .page-game-bai__promo-list,
    .page-game-bai__advantage-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

/* Mobile Responsiveness (768px) */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    margin-bottom: 20px;
  }
  .page-game-bai__hero-image-wrapper {
    height: 300px; /* Adjust hero image height for mobile */
  }
  .page-game-bai__hero-content {
    margin: 20px auto;
    padding: 0 15px;
  }
  .page-game-bai__hero-title {
    font-size: 2em; /* Smaller H1 for mobile */
    line-height: 1.3;
  }
  .page-game-bai__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-game-bai__hero-cta {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }

  /* 通用图片与容器 */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-bai__container,
  .page-game-bai__card,
  .page-game-bai__tip-item,
  .page-game-bai__promo-item,
  .page-game-bai__advantage-item,
  .page-game-bai__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* 游戏卡片区 */
  .page-game-bai__game-cards {
    grid-template-columns: 1fr; /* Single column for game cards */
    gap: 20px;
  }
  .page-game-bai__card-image {
    height: 180px; /* Adjust card image height */
  }
  .page-game-bai__card .page-game-bai__btn-primary,
  .page-game-bai__card .page-game-bai__btn-outline {
    width: calc(100% - 30px); /* Adjust button width inside card */
    margin-left: 15px;
    margin-right: 15px;
  }

  /* 策略提示区 */
  .page-game-bai__tips-grid {
    grid-template-columns: 1fr; /* Single column for tips */
    gap: 20px;
  }

  /* 促销列表区 */
  .page-game-bai__promo-list {
    grid-template-columns: 1fr; /* Single column for promotions */
    gap: 20px;
  }

  /* 优势列表区 */
  .page-game-bai__advantage-list {
    grid-template-columns: 1fr; /* Single column for advantages */
    gap: 20px;
  }

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

  /* FAQ Section */
  .page-game-bai__faq-list {
    padding: 0 15px;
  }
  .page-game-bai__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-game-bai__faq-toggle {
    font-size: 1.2em;
  }
  .page-game-bai__faq-answer {
    padding: 10px 20px;
    font-size: 0.95em;
  }
  .page-game-bai__faq-section .page-game-bai__btn-secondary {
    max-width: calc(100% - 30px);
    margin-left: 15px;
    margin-right: 15px;
  }

  /* Section padding adjustment */
  .page-game-bai__intro-section,
  .page-game-bai__game-types-section,
  .page-game-bai__strategy-section,
  .page-game-bai__promotions-section,
  .page-game-bai__why-choose-section,
  .page-game-bai__cta-section,
  .page-game-bai__faq-section {
      padding: 30px 0;
  }
}