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

.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: var(--page-game-bai-text-main); /* Default text color for the page, suitable for dark background */
  background-color: var(--page-game-bai-background); /* Explicitly set page background */
  line-height: 1.6;
}

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

.page-game-bai__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--page-game-bai-primary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  line-height: 1.2;
}

.page-game-bai__section-title--light {
  color: var(--page-game-bai-text-main);
}

.page-game-bai__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--page-game-bai-text-main); /* Ensure text is light on dark background */
}

.page-game-bai__text-block--light {
  color: var(--page-game-bai-text-main);
}

/* Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 16px;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-game-bai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-game-bai__btn-secondary {
  background: transparent;
  color: var(--page-game-bai-secondary-color);
  border: 2px solid var(--page-game-bai-secondary-color);
}

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

.page-game-bai__btn-small {
  padding: 8px 18px;
  font-size: 14px;
  background: var(--page-game-bai-button-gradient);
  color: #ffffff;
  border-radius: 5px;
}

.page-game-bai__btn-small:hover {
  opacity: 0.9;
}

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
  margin-bottom: 50px;
  display: flex;
  flex-direction: column; /* Ensure content stacks vertically */
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of the image wrapper */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the area, will be contain on mobile */
  border-radius: 10px;
}

.page-game-bai__hero-content {
  position: relative; /* Relative to hero section, not absolute over image */
  z-index: 2;
  max-width: 900px;
  padding: 30px 20px;
  margin-top: -100px; /* Pull content up slightly, but not over image */
  background: rgba(13, 14, 18, 0.8); /* Semi-transparent background for text readability */
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(-50px); /* Adjust to position content better */
}

.page-game-bai__hero-title {
  font-size: clamp(38px, 5vw, 56px);
  color: var(--page-game-bai-primary-color);
  margin-bottom: 15px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(255, 140, 26, 0.7);
}

.page-game-bai__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--page-game-bai-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* For responsiveness */
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
}

/* Introduction Section */
.page-game-bai__introduction-section {
  padding: 50px 0;
  background-color: var(--page-game-bai-background);
}

/* Game Types Section */
.page-game-bai__game-types-section {
  padding: 50px 0;
  background-color: var(--page-game-bai-card-bg); /* Use a slightly different dark background for contrast */
}

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

.page-game-bai__game-card {
  background: var(--page-game-bai-background);
  border: 1px solid var(--page-game-bai-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-game-bai__game-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-game-bai-primary-color);
  padding: 15px 20px 5px;
  margin: 0;
}

.page-game-bai__game-card-description {
  font-size: 15px;
  color: var(--page-game-bai-text-main);
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-game-bai__game-card .page-game-bai__btn-small {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* Benefits Section */
.page-game-bai__benefits-section {
  padding: 50px 0;
  background-color: var(--page-game-bai-background);
}

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

.page-game-bai__benefit-item {
  background: var(--page-game-bai-card-bg);
  border: 1px solid var(--page-game-bai-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-game-bai__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(255, 165, 58, 0.1);
  padding: 10px;
}

.page-game-bai__benefit-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--page-game-bai-secondary-color);
  margin-bottom: 15px;
}

.page-game-bai__benefit-description {
  font-size: 15px;
  color: var(--page-game-bai-text-main);
  text-align: justify;
}

/* Guide Section */
.page-game-bai__guide-section {
  padding: 50px 0;
  background-color: var(--page-game-bai-background);
}

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

.page-game-bai__step-item {
  background: var(--page-game-bai-card-bg);
  border: 1px solid var(--page-game-bai-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-bai__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--page-game-bai-button-gradient);
  color: #ffffff;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(255, 140, 26, 0.5);
}

.page-game-bai__step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--page-game-bai-primary-color);
  margin-bottom: 15px;
}

.page-game-bai__step-description {
  font-size: 15px;
  color: var(--page-game-bai-text-main);
  text-align: justify;
}

/* Tips Section */
.page-game-bai__tips-section {
  padding: 50px 0;
  background-color: var(--page-game-bai-card-bg);
}

.page-game-bai__tips-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
}

.page-game-bai__tips-image-wrapper {
  flex: 1;
  min-width: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-game-bai__tips-list {
  flex: 1;
}

.page-game-bai__list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-game-bai__list li {
  font-size: 17px;
  color: var(--page-game-bai-text-main);
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-game-bai__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--page-game-bai-secondary-color);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
}

.page-game-bai__btn-primary--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

/* FAQ Section */
.page-game-bai__faq-section {
  padding: 50px 0;
  background-color: var(--page-game-bai-background);
}

.page-game-bai__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--page-game-bai-border);
  overflow: hidden;
  background: var(--page-game-bai-card-bg);
  box-shadow: 0 2px 10px 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 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: rgba(255, 140, 26, 0.1);
}
.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-game-bai-text-main);
}
.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-game-bai-secondary-color);
  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: rgba(255, 140, 26, 0.05);
  border-radius: 0 0 5px 5px;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer p {
  color: var(--page-game-bai-text-main);
  font-size: 15px;
}


/* Conclusion Section */
.page-game-bai__conclusion-section {
  padding: 50px 0;
  background-color: var(--page-game-bai-card-bg);
  text-align: center;
}

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

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

/* Dark background specific styles */
.page-game-bai__dark-section {
  background: var(--page-game-bai-card-bg);
  color: var(--page-game-bai-text-main);
}

/* Links within text */
.page-game-bai a {
  color: var(--page-game-bai-secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-bai a:hover {
  color: var(--page-game-bai-primary-color);
  text-decoration: underline;
}

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

  .page-game-bai__section-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-game-bai__text-block {
    font-size: 16px;
  }

  /* HERO 主图区域 */
  .page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
    margin-bottom: 30px;
  }

  .page-game-bai__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    border-radius: 0;
  }

  .page-game-bai__hero-content {
    padding: 20px 15px;
    margin-top: -60px; /* Adjust pull-up for mobile */
    transform: translateY(-30px);
    border-radius: 10px;
  }

  .page-game-bai__hero-title {
    font-size: clamp(28px, 7vw, 40px);
    margin-bottom: 10px;
  }

  .page-game-bai__hero-description {
    font-size: clamp(16px, 3.5vw, 18px);
    margin-bottom: 20px;
  }
}