.page-game-bai {
  color: var(--text-main); /* #F3F8FF */
  background-color: var(--deep-navy); /* #08162B */
}

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

.page-game-bai__section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--gold); /* #F2C14E */
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-game-bai__section-description {
  font-size: 18px;
  color: var(--text-secondary); /* #AFC4E8 */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-bai__btn-secondary {
  background: transparent;
  color: var(--text-main); /* #F3F8FF */
  border: 2px solid var(--border); /* #244D84 */
}

.page-game-bai__btn-secondary:hover {
  background: rgba(var(--border), 0.1);
  color: #ffffff;
}

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

.page-game-bai__hero-image {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

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

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

.page-game-bai__main-title {
  font-size: 52px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-game-bai__hero-description {
  font-size: 20px;
  color: var(--text-secondary); /* #AFC4E8 */
  margin-bottom: 40px;
  line-height: 1.7;
}

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

/* Intro Section */
.page-game-bai__intro-section .page-game-bai__container {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-game-bai__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-game-bai__text-block {
  flex: 1;
  line-height: 1.8;
  font-size: 17px;
  color: var(--text-secondary); /* #AFC4E8 */
}

.page-game-bai__text-block p {
  margin-bottom: 15px;
}

.page-game-bai__image-block {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  max-width: 50%; /* Limit image block width */
}

.page-game-bai__image-block img {
  width: 100%;
  height: auto;
  display: block;
}

/* Popular Games Section */
.page-game-bai__popular-games-section .page-game-bai__container {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-game-bai__game-card {
  background: var(--card-b-g); /* #10233F */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: var(--text-main); /* #F3F8FF */
}

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

.page-game-bai__card-title {
  font-size: 24px;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: var(--gold); /* #F2C14E */
}

.page-game-bai__card-text {
  font-size: 16px;
  color: var(--text-secondary); /* #AFC4E8 */
  padding: 0 15px 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.page-game-bai__card-button {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

/* Why Choose Section */
.page-game-bai__why-choose-section .page-game-bai__container {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-game-bai__feature-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-game-bai__feature-item {
  background: var(--card-b-g); /* #10233F */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main); /* #F3F8FF */
}

.page-game-bai__feature-item:last-child {
  margin-bottom: 0;
}

.page-game-bai__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 10px;
}

.page-game-bai__feature-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary); /* #AFC4E8 */
}

/* Guide Section */
.page-game-bai__guide-section .page-game-bai__container {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-game-bai__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-game-bai__step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-game-bai__step-item {
  margin-bottom: 30px;
  padding-left: 40px;
  position: relative;
}

.page-game-bai__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background: var(--glow); /* #4FA8FF */
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.page-game-bai__step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 8px;
}

.page-game-bai__step-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary); /* #AFC4E8 */
}

.page-game-bai__cta-buttons--guide {
  margin-top: 40px;
  justify-content: flex-start;
}

/* Promotions Section */
.page-game-bai__promotions-section .page-game-bai__container {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-game-bai__promo-card {
  background: var(--card-b-g); /* #10233F */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--text-main); /* #F3F8FF */
}

.page-game-bai__promo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-game-bai__promo-card .page-game-bai__card-title {
  font-size: 22px;
  margin: 20px 20px 10px;
}

.page-game-bai__promo-card .page-game-bai__card-text {
  padding: 0 20px 20px;
}

.page-game-bai__promo-card .page-game-bai__card-button {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

.page-game-bai__cta-buttons--promotions {
  margin-top: 60px;
}

/* Security Section */
.page-game-bai__security-section .page-game-bai__container {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* FAQ Section */
.page-game-bai__faq-section .page-game-bai__container {
  padding-top: 80px;
  padding-bottom: 80px;
}

details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border); /* #244D84 */
  overflow: hidden;
  background: var(--card-b-g); /* #10233F */
  box-shadow: 0 4px 15px 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 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main); /* #F3F8FF */
}

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(var(--border), 0.2);
}

.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: 28px;
  font-weight: bold;
  color: var(--glow); /* #4FA8FF */
  flex-shrink: 0;
  margin-left: 20px;
  width: 32px;
  text-align: center;
}

details.page-game-bai__faq-item .page-game-bai__faq-answer {
  padding: 0 25px 25px;
  background: rgba(var(--deep-navy), 0.5); /* Semi-transparent dark navy */
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary); /* #AFC4E8 */
  font-size: 16px;
  line-height: 1.7;
}

/* CTA Section */
.page-game-bai__cta-section .page-game-bai__container {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-game-bai__btn-large {
  padding: 18px 40px;
  font-size: 20px;
  min-width: 250px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-bai__hero-image img {
    max-height: 600px;
  }

  .page-game-bai__main-title {
    font-size: 44px;
  }

  .page-game-bai__section-title {
    font-size: 32px;
  }

  .page-game-bai__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-game-bai__image-block {
    max-width: 100%;
  }

  .page-game-bai__content-wrapper--reverse {
    flex-direction: column-reverse;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 40px;
  }
  .page-game-bai__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }
  .page-game-bai__hero-image img {
    object-fit: contain !important; /* Prevent cropping */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    width: 100% !important;
    height: auto !important;
  }
  .page-game-bai__main-title {
    font-size: clamp(32px, 8vw, 40px); /* Responsive font size */
    margin-bottom: 15px;
  }
  .page-game-bai__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* 所有图片的基础响应式样式 */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  /* 所有包含图片的容器（section, div, card等） */
  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container,
  .page-game-bai__content-wrapper,
  .page-game-bai__game-cards-grid,
  .page-game-bai__promo-cards-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* 产品展示图区域 */
  .page-game-bai__game-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for mobile */
    gap: 15px;
    overflow-x: hidden;
  }
  .page-game-bai__game-card img {
    
  }
  .page-game-bai__card-title {
    font-size: 20px;
  }
  .page-game-bai__card-text {
    font-size: 14px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-game-bai__section-title {
    font-size: clamp(26px, 7vw, 30px);
    margin-bottom: 20px;
  }
  .page-game-bai__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-game-bai__text-block {
    font-size: 15px;
    padding: 0;
  }
  .page-game-bai__feature-title {
    font-size: 19px;
  }
  .page-game-bai__feature-text {
    font-size: 15px;
  }
  .page-game-bai__step-title {
    font-size: 19px;
  }
  .page-game-bai__step-text {
    font-size: 15px;
  }

  /* 按钮与按钮容器 */
  .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: 12px 15px;
    font-size: 16px;
    margin: 0 auto; /* Center buttons when stacked */
  }
  .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-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically */
  }
  .page-game-bai__cta-buttons--guide,
  .page-game-bai__cta-buttons--promotions {
    align-items: center;
  }

  /* 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: 24px;
    width: 28px;
    height: 28px;
    margin-left: 10px;
  }
  details.page-game-bai__faq-item .page-game-bai__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  .page-game-bai__container {
    padding: 30px 15px;
  }
  .page-game-bai__intro-section .page-game-bai__container,
  .page-game-bai__popular-games-section .page-game-bai__container,
  .page-game-bai__why-choose-section .page-game-bai__container,
  .page-game-bai__guide-section .page-game-bai__container,
  .page-game-bai__promotions-section .page-game-bai__container,
  .page-game-bai__security-section .page-game-bai__container,
  .page-game-bai__faq-section .page-game-bai__container,
  .page-game-bai__cta-section .page-game-bai__container {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-game-bai__promo-cards-grid {
    grid-template-columns: 1fr !important; /* Single column for promo cards */
  }
  .page-game-bai__promo-card img {
    
  }
  .page-game-bai__promo-card .page-game-bai__card-title {
    font-size: 20px;
    margin: 15px 15px 8px;
  }
  .page-game-bai__promo-card .page-game-bai__card-text {
    padding: 0 15px 15px;
  }
  .page-game-bai__promo-card .page-game-bai__card-button {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
  }
}