/* CSS file for Game Bài page */

:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --background-dark: #0D0E12;
  --card-background: #17191F;
  --text-light: #FFF3E6;
  --border-accent: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
  --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

.page-game-bai {
  color: var(--text-light);
  background-color: var(--background-dark);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relies on body padding-top for header offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: var(--background-dark);
  overflow: hidden;
}

.page-game-bai__hero-image-wrapper {
  margin-bottom: 30px;
}

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-game-bai__main-title {
  font-size: 2.8em;
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__description {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-outline {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%;
}

.page-game-bai__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
}

.page-game-bai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-game-bai__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.page-game-bai__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.page-game-bai__btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--border-accent);
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-game-bai__btn-outline:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.page-game-bai__btn-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-game-bai__btn-link:hover {
  color: var(--glow-color);
}

/* General Sections */
.page-game-bai__about-section,
.page-game-bai__features-section,
.page-game-bai__guide-section,
.page-game-bai__promotion-section,
.page-game-bai__tips-section,
.page-game-bai__faq-section,
.page-game-bai__contact-cta-section {
  padding: 60px 0;
  background-color: var(--background-dark);
  border-bottom: 1px solid rgba(255, 140, 26, 0.1);
}

.page-game-bai__section-title {
  font-size: 2.2em;
  color: var(--text-light);
  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(--primary-color);
  border-radius: 2px;
}

.page-game-bai__sub-title {
  font-size: 1.8em;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-game-bai__text-block {
  font-size: 1.05em;
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: justify;
}

/* Image with content block */
.page-game-bai__image-content-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-game-bai__content-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__image-content-block .page-game-bai__text-block {
  flex: 1;
  max-width: 50%;
  margin-bottom: 0;
}

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

.page-game-bai__feature-card {
  background: var(--card-background);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-bai__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 140, 26, 0.3);
}

.page-game-bai__feature-icon {
  width: 100%;
  max-width: 150px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px;
}

.page-game-bai__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-bai__feature-card p {
  color: var(--text-light);
  font-size: 0.95em;
}

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

.page-game-bai__step-card {
  background: var(--card-background);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-bai__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
  background: rgba(255, 165, 58, 0.1);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--secondary-color);
}

/* Promotions */
.page-game-bai__promotions-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-background);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-game-bai__promo-card .page-game-bai__card-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-game-bai__promo-card p {
  color: var(--text-light);
  font-size: 0.95em;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-game-bai__full-promo-cta {
  text-align: center;
  margin-top: 50px;
}

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

.page-game-bai__tip-card {
  background: var(--card-background);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-game-bai__tip-card .page-game-bai__card-title {
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-game-bai__tip-card p {
  color: var(--text-light);
  font-size: 0.95em;
}

.page-game-bai__full-tips-cta {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-game-bai__faq-list {
  margin-top: 40px;
}

.page-game-bai__faq-item {
  background: var(--card-background);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--primary-color);
  background-color: rgba(255, 140, 26, 0.1);
  list-style: none; /* Remove default marker */
}

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

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

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

.page-game-bai__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--text-light);
  border-top: 1px solid rgba(255, 140, 26, 0.05);
}

/* Contact CTA Section */
.page-game-bai__contact-cta-section {
  text-align: center;
  padding-bottom: 80px;
}

/* Placeholder styles for homepage modules (as per strict CSS requirements for media queries) */
.page-game-bai__home-content { /* Placeholder for long text/gold frame */
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  padding: 40px;
  margin: 40px auto;
  max-width: 900px;
  background: var(--card-background);
}

.page-game-bai__row-games, /* Placeholder for game carousel */
.page-game-bai__row-sport, /* Placeholder for sport carousel */
.page-game-bai__row-coop { /* Placeholder for cooperation partners */
  background-color: var(--background-dark);
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
}

.page-game-bai__games-title, /* Placeholder */
.page-game-bai__sport-title, /* Placeholder */
.page-game-bai__coop-title { /* Placeholder */
  color: var(--text-light);
  text-align: center;
  margin-bottom: 30px;
}

.page-game-bai__slider-wrapper { /* Placeholder for game slider */
  overflow: hidden;
  margin-bottom: 20px;
}

.page-game-bai__slider-track { /* Placeholder */
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transition: transform 0.5s ease;
}

.page-game-bai__game-slide { /* Placeholder */
  flex: 0 0 200px;
  max-width: 200px;
  background: var(--card-background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.page-game-bai__banners-top-wrapper { /* Placeholder for 6-grid banners */
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-game-bai__banner-item img { /* Placeholder */
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.page-game-bai__blog-masonry { /* Placeholder for blog masonry */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.page-game-bai__blog-card-link { /* Placeholder */
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.page-game-bai__blog-slider-track { /* Placeholder */
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.5s ease;
}

.page-game-bai__blog-slide { /* Placeholder */
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  background: var(--card-background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

  .page-game-bai__main-title {
    font-size: 2.5em;
  }

  .page-game-bai__section-title {
    font-size: 2em;
  }

  .page-game-bai__image-content-block {
    flex-direction: column;
  }

  .page-game-bai__content-image,
  .page-game-bai__image-content-block .page-game-bai__text-block {
    max-width: 100%;
  }

  .page-game-bai__features-grid,
  .page-game-bai__steps-grid,
  .page-game-bai__promotions-grid,
  .page-game-bai__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

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

  .page-game-bai__faq-answer {
    padding: 12px 20px 15px;
  }

  /* Placeholder responsive styles */
  .page-game-bai__game-slide { flex: 0 0 180px; max-width: 180px; }
  .page-game-bai__banners-top-wrapper { grid-template-columns: repeat(4, 1fr); }
  .page-game-bai__blog-masonry { grid-template-columns: repeat(2, 1fr); }
  .page-game-bai__blog-slide { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-game-bai__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }

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

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

  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* 按钮与按钮容器 */
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__btn-outline,
  .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;
  }

  .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;
  }

  /* 通用图片与容器 */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-game-bai__sub-title {
    font-size: 1.5em;
  }

  .page-game-bai__about-section,
  .page-game-bai__features-section,
  .page-game-bai__guide-section,
  .page-game-bai__promotion-section,
  .page-game-bai__tips-section,
  .page-game-bai__faq-section,
  .page-game-bai__contact-cta-section {
    padding: 40px 0;
  }

  .page-game-bai__image-content-block {
    flex-direction: column;
    gap: 20px;
  }

  .page-game-bai__content-image,
  .page-game-bai__image-content-block .page-game-bai__text-block {
    max-width: 100%;
    width: 100%;
  }

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

  .page-game-bai__feature-card,
  .page-game-bai__step-card,
  .page-game-bai__promo-card,
  .page-game-bai__tip-card {
    padding: 25px;
  }

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

  .page-game-bai__faq-answer {
    font-size: 0.95em;
    padding: 12px 20px 15px;
  }

  /* 长文金框区 */
  .page-game-bai__home-content {
    padding: 20px;
    margin: 20px auto;
    height: auto;
  }

  /* 游戏轮播 */
  .page-game-bai__slider-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 10px;
  }
  .page-game-bai__slider-wrapper::-webkit-scrollbar { display: none; } /* Chrome, Safari */
  .page-game-bai__slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .page-game-bai__game-slide { 
    flex: 0 0 160px; 
    max-width: 160px; 
  }

  /* 合作品牌六宫格 */
  .page-game-bai__banners-top-wrapper {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
    margin-bottom: 30px;
  }
  .page-game-bai__banner-item img {
    
    
  }

  /* 博客卡片区 */
  .page-game-bai__blog-masonry {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .page-game-bai__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 10px;
  }
  .page-game-bai__blog-slider-track::-webkit-scrollbar { display: none; } /* Chrome, Safari */
  .page-game-bai__blog-slide { 
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}