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

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

/* Hero Section */
.page-game-bai__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding if body already has --header-offset */
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%);
    border-bottom: 2px solid var(--divider);
}

.page-game-bai__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Adjust as needed for visual balance */
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
}

.page-game-bai__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-game-bai__hero-content {
    max-width: 900px;
    padding: 0 15px;
    z-index: 1;
}

.page-game-bai__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for responsive H1 */
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-game-bai__hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

/* General Buttons */
.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-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box; /* Crucial for button max-width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-game-bai__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
    transform: translateY(-2px);
}

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

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

/* Section Titles & Subtitles */
.page-game-bai__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-main);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.page-game-bai__section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-game-bai__text-secondary {
    color: var(--text-secondary);
}

.page-game-bai__light-bg {
    background: #ffffff; /* Explicitly white for contrast */
    color: #333333; /* Dark text for light background */
}

.page-game-bai__light-bg .page-game-bai__section-title,
.page-game-bai__light-bg .page-game-bai__section-subtitle,
.page-game-bai__light-bg p {
    color: #333333; /* Override for light background */
}

.page-game-bai__dark-section {
    background: var(--bg-main); /* Use the deep green/dark background */
    color: var(--text-main);
    padding: 60px 0;
}

.page-game-bai__dark-bg {
    background: var(--bg-main);
    color: var(--text-main);
}

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

.page-game-bai__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: justify;
}

/* Games Showcase Section */
.page-game-bai__games-showcase {
    padding: 60px 0;
    background: var(--card-b-g); /* Darker green for card backgrounds */
    border-top: 2px solid var(--divider);
    border-bottom: 2px solid var(--divider);
}

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

.page-game-bai__game-card {
    background: var(--card-b-g); /* Use the specified card background */
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main); /* Light text on dark card background */
}

.page-game-bai__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-game-bai__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--divider);
}

.page-game-bai__game-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 20px 15px 10px;
    color: var(--text-main);
}

.page-game-bai__game-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-bai__game-title a:hover {
    color: var(--glow); /* Glow color on hover for titles */
}

.page-game-bai__game-description {
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 0 15px 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-game-bai__card-button {
    margin: 0 15px 20px;
}

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

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

.page-game-bai__benefit-item {
    text-align: center;
    background: #ffffff; /* Light background for benefit cards */
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text on light background */
}

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

.page-game-bai__benefit-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-game-bai__benefit-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #11A84E; /* Brand color for titles */
}

.page-game-bai__benefit-description {
    font-size: 1rem;
    color: #555555;
}

.page-game-bai__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

/* How To Play Section */
.page-game-bai__how-to-play {
    padding: 60px 0;
}

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

.page-game-bai__step-card {
    background: var(--card-b-g); /* Darker green for step cards */
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    color: var(--text-main); /* Light text on dark card background */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-game-bai__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-game-bai__step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(42, 209, 111, 0.5);
}

.page-game-bai__step-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-game-bai__step-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
}

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

.page-game-bai__article-body {
    max-width: 900px;
    margin: 40px auto 0;
    font-size: 1.05rem;
    color: #333333; /* Dark text on light background */
    text-align: justify;
}

.page-game-bai__article-body p {
    margin-bottom: 20px;
}

.page-game-bai__article-figure {
    margin: 30px 0;
    text-align: center;
}

.page-game-bai__article-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-game-bai__article-subtitle {
    font-size: 1.6rem;
    font-weight: 700;
    color: #11A84E; /* Brand color for subtitles */
    margin-top: 30px;
    margin-bottom: 15px;
}

/* FAQ Section */
details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card-b-g); /* Dark card background */
  color: var(--text-main); /* Light text */
}
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;
  color: var(--text-main);
}
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: var(--deep-green); /* Slightly lighter dark green on hover */
}
.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-secondary);
  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: var(--deep-green); /* Slightly different dark green for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary); /* Secondary text color for answers */
}
.page-game-bai__faq-answer p {
    color: var(--text-secondary); /* Ensure paragraph text is light */
}

/* Final CTA Section */
.page-game-bai__cta-section {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%);
}

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

/* Global Image & Button Responsiveness */
.page-game-bai img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-game-bai__section,
.page-game-bai__card,
.page-game-bai__container,
.page-game-bai__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .page-game-bai__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* HERO 主图区域 */
    .page-game-bai__hero-section {
        padding-top: 10px;
        padding-bottom: 30px;
    }
    .page-game-bai__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }
    .page-game-bai__hero-image {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        height: auto !important;
        width: 100% !important;
    }
    .page-game-bai__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-game-bai__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-game-bai__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
    }

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

    /* 产品展示图区域 (Games Grid) */
    .page-game-bai__games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-bai__games-showcase {
        overflow-x: hidden;
        padding: 40px 0;
    }
    .page-game-bai__game-image {
        height: 180px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-game-bai__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 10px;
    }
    .page-game-bai__section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    .page-game-bai__article-body {
        padding: 0 0px;
        margin-top: 20px;
        font-size: 1rem;
    }
    .page-game-bai__article-body p {
        margin-bottom: 15px;
    }
    .page-game-bai__article-figure {
        margin: 20px 0;
    }
    .page-game-bai__article-image {
        border-radius: 8px;
    }
    .page-game-bai__article-subtitle {
        font-size: 1.3rem;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    /* Benefits Grid */
    .page-game-bai__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* How-to-play Steps Grid */
    .page-game-bai__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-bai__step-card {
        padding: 25px 20px;
    }
    .page-game-bai__step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .page-game-bai__step-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

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

    /* Other sections */
    .page-game-bai__intro-section,
    .page-game-bai__benefits-section,
    .page-game-bai__how-to-play,
    .page-game-bai__tips-section,
    .page-game-bai__faq-section,
    .page-game-bai__cta-section {
        padding: 40px 0;
    }
}