/* Base styles for the Game Bài page */
.page-game-bai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
}

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

.page-game-bai__dark-bg {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient for dark sections */
  color: #ffffff;
}

.page-game-bai__light-bg {
  background-color: #F5F7FA; /* Background */
  color: #333333; /* Text Main */
}

.page-game-bai__bg-secondary {
  background-color: #ffffff; /* Card BG */
  color: #333333;
}

.page-game-bai__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: inherit;
}

.page-game-bai__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-game-bai__text-block {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

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

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

.page-game-bai__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Desktop: cover to fill space */
  object-position: center;
}

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

.page-game-bai__hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-game-bai__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  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: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-game-bai__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

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

.page-game-bai__btn-secondary:hover {
  background-color: #E53935;
  color: #ffffff;
}

.page-game-bai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

.page-game-bai__content-wrapper .page-game-bai__text-block {
  flex: 1;
}

.page-game-bai__image-content {
  flex-shrink: 0;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Popular Games Section */
.page-game-bai__popular-games-section {
  padding: 60px 0;
}

.page-game-bai__games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__card {
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  text-align: center;
}

.page-game-bai__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.page-game-bai__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-game-bai__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #E53935;
  padding: 0 15px;
}

.page-game-bai__card-text {
  font-size: 15px;
  color: #333333;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

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

.page-game-bai__feature-item::before {
  content: '✔';
  color: #E53935;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Guide Section */
.page-game-bai__guide-section {
  padding: 60px 0;
  text-align: center;
}

.page-game-bai__steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px 20px;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-game-bai__step-number {
  font-size: 48px;
  font-weight: 800;
  color: #FF5A4F;
  line-height: 1;
  margin-bottom: 15px;
  display: block;
}

.page-game-bai__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-game-bai__step-text {
  font-size: 15px;
  line-height: 1.6;
}

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

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

.page-game-bai__promo-card {
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  text-align: center;
}

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

.page-game-bai__promo-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #E53935;
  padding: 0 15px;
}

.page-game-bai__promo-text {
  font-size: 15px;
  color: #333333;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0; /* Border */
  overflow: hidden;
  background: #ffffff; /* Card BG */
}
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: #f5f5f5;
}
.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Text Main */
}
.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Text Main */
}

/* Final CTA Section */
.page-game-bai__cta-final {
  padding: 60px 20px;
  text-align: center;
}

.page-game-bai__cta-final .page-game-bai__section-title {
  color: #ffffff;
}

.page-game-bai__cta-final .page-game-bai__section-description {
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Copyright */
.page-game-bai__copyright-info {
  padding: 20px;
  font-size: 14px;
  color: #333333;
  text-align: center;
  background-color: #F5F7FA; /* Background */
  border-top: 1px solid #E0E0E0;
}

.page-game-bai__copyright-info p {
  margin: 0;
}

/* --- Responsive Styles --- */
/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-game-bai__container {
    padding: 15px;
  }

  /* HERO 主图区域 */
  .page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
  }

  .page-game-bai__hero-image img {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important;
    height: auto !important;
  }

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

  .page-game-bai__hero-description {
    font-size: 16px;
  }

  /* 按钮与按钮容器 */
  .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 20px;
    font-size: 16px;
  }

  .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 buttons vertically */
    gap: 10px;
  }

  /* 通用图片与容器 */
  .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__content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-game-bai__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

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

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

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

  /* 产品展示图区域 */
  .page-game-bai__games-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for card games */
    gap: 15px;
  }

  .page-game-bai__card-image {
    height: 180px;
  }

  .page-game-bai__card-title {
    font-size: 18px;
  }

  .page-game-bai__card-text {
    font-size: 14px;
  }

  .page-game-bai__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__promo-image {
    height: 150px;
  }

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

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-game-bai__container {
    padding: 20px;
  }

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

  .page-game-bai__hero-description {
    font-size: 20px;
  }

  .page-game-bai__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-game-bai__steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-game-bai__promo-cards {
    grid-template-columns: 1fr;
  }

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

  .page-game-bai__image-content {
    max-width: 80%;
  }

  .page-game-bai__feature-item {
    font-size: 16px;
  }

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-game-bai__cta-buttons {
    gap: 15px;
  }
}