.page-game-bai {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text on light body background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly set to match body for safety */
}

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

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Default for mobile, will change for desktop */
    text-align: center;
}

.page-game-bai__hero-content {
    max-width: 800px;
    margin-bottom: 30px;
}

.page-game-bai__hero-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: #017439;
    margin-bottom: 15px;
}

.page-game-bai__hero-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

.page-game-bai__button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-game-bai__hero-image-wrapper {
    width: 100%;
    max-width: 1000px; /* Limit hero image width */
    margin-top: 20px;
}

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

/* General Section Styling */
.page-game-bai__section {
    padding: 60px 0;
}

.page-game-bai__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-game-bai__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-game-bai__section-title {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #017439;
}

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

.page-game-bai__sub-title {
    font-size: 1.6em;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #017439;
}

.page-game-bai__sub-title--light {
    color: #ffffff;
}

.page-game-bai__text {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-game-bai__text--light {
    color: #f0f0f0;
}

.page-game-bai__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-game-bai__list li {
    margin-bottom: 10px;
}

.page-game-bai__list--light li {
    color: #f0f0f0;
}

/* Buttons */
.page-game-bai__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-game-bai__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-game-bai__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

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

.page-game-bai__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-game-bai__btn--center {
    display: block;
    margin: 30px auto 0;
    max-width: 250px;
}

.page-game-bai__button-group--center {
    justify-content: center;
}

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

.page-game-bai__game-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-game-bai__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-game-bai__game-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #017439;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-game-bai__game-description {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1; /* Allows description to take available space */
}

/* Step List */
.page-game-bai__step-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-game-bai__step-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-game-bai__step-icon {
    width: 60px;
    height: 60px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-game-bai__step-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #017439;
    margin-bottom: 10px;
}

.page-game-bai__step-description {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Strategy List */
.page-game-bai__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-game-bai__strategy-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-bai__strategy-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #017439;
    margin-bottom: 10px;
}

.page-game-bai__strategy-description {
    font-size: 0.95em;
    color: #555555;
}

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

.page-game-bai__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

.page-game-bai__promo-description {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1;
}

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

.page-game-bai__feature-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-game-bai__feature-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #017439;
    margin-bottom: 10px;
}

.page-game-bai__feature-description {
    font-size: 0.95em;
    color: #555555;
}

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

.page-game-bai__faq-item {
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333; /* Ensure text is dark on light background */
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: #017439;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* Hide default marker */
}

.page-game-bai__faq-question::-webkit-details-marker,
.page-game-bai__faq-question::marker {
    display: none; /* Hide default marker for cross-browser */
}

.page-game-bai__faq-qtext {
    flex-grow: 1;
}

.page-game-bai__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-game-bai__faq-answer {
    padding: 20px;
    padding-top: 0;
    font-size: 0.95em;
    color: #555555;
    line-height: 1.6;
}

.page-game-bai__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin within answer */
}

/* Image styling for content area */
.page-game-bai img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (min-width: 769px) {
    .page-game-bai__hero-section .page-game-bai__container {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .page-game-bai__hero-content {
        margin-right: 40px;
        margin-bottom: 0;
    }

    .page-game-bai__hero-image-wrapper {
        margin-top: 0;
    }

    .page-game-bai__button-group {
        justify-content: flex-start;
    }
}

/* Mobile responsive styles (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. 顶区标题 + 双 CTA */
    .page-game-bai__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
    }

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

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

    .page-game-bai__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-game-bai__btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-game-bai__btn--center {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }

    /* 2. 单栏长文容器 */
    .page-game-bai__container {
        padding: 0 15px !important; /* Adjust padding for mobile */
    }

    .page-game-bai__section {
        padding: 40px 0;
    }

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

    .page-game-bai__sub-title {
        font-size: 1.4em;
        margin-top: 30px;
    }

    .page-game-bai__text {
        font-size: 0.95em;
    }

    .page-game-bai__list {
        margin-left: 15px;
    }

    /* 3. 通用图片与 figure */
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-game-bai__game-image,
    .page-game-bai__promo-image {
        height: 180px; /* Adjust image height for mobile cards */
    }
}