:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-game-bai {
    background-color: var(--color-background);
    color: var(--color-text-main);
    font-family: Arial, sans-serif;
}

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

.page-game-bai__hero-section,
.page-game-bai__intro-section,
.page-game-bai__games-list-section,
.page-game-bai__benefits-section,
.page-game-bai__guide-section,
.page-game-bai__tips-section,
.page-game-bai__faq-section,
.page-game-bai__conclusion-section {
    padding: 60px 0;
    background-color: var(--color-background); /* Ensure consistent background */
}

.page-game-bai__hero-section {
    padding-top: 10px; /* Adhering to the 8-16px top padding rule */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--color-deep-green);
}

.page-game-bai__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 0.6) 100%);
    z-index: 1;
}

.page-game-bai__hero-section .page-game-bai__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.page-game-bai__hero-image-wrapper {
    width: 100%;
    max-width: 1000px;
    border-radius: 10px;
    overflow: hidden;
}

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

.page-game-bai__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-game-bai__hero-title {
    font-size: clamp(2.5em, 5vw, 3.2em); /* Using clamp for responsive H1 */
    color: var(--color-text-main);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: -0.03em;
}

.page-game-bai__hero-description {
    font-size: 1.2em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-game-bai__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--color-button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%;
    box-sizing: border-box;
}

.page-game-bai__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

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

.page-game-bai__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-game-bai__section-title {
    font-size: 2.5em;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-game-bai__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main);
}

.page-game-bai__text-block {
    line-height: 1.7;
    font-size: 1.1em;
    color: var(--color-text-main);
}

.page-game-bai__text-block strong {
    color: var(--color-gold);
}

.page-game-bai__text-block p {
    margin-bottom: 15px;
}

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

.page-game-bai__game-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.page-game-bai__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-game-bai__game-title {
    font-size: 1.5em;
    color: var(--color-text-main);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-game-bai__game-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-game-bai__cta-more {
    text-align: center;
}

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

.page-game-bai__benefit-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.page-game-bai__benefit-icon {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-game-bai__benefit-title {
    font-size: 1.4em;
    color: var(--color-text-main);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-game-bai__benefit-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

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

.page-game-bai__step-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.page-game-bai__step-title {
    font-size: 1.6em;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-bai__step-description {
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-game-bai__tips-image {
    flex: 0 0 45%;
    max-width: 45%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.page-game-bai__tips-text {
    flex: 1;
    line-height: 1.7;
    font-size: 1.1em;
    color: var(--color-text-main);
}

.page-game-bai__tips-subtitle {
    font-size: 1.5em;
    color: var(--color-gold);
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-game-bai__tips-subtitle:first-of-type {
    margin-top: 0;
}

.page-game-bai__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-game-bai__faq-item {
    padding: 20px;
    cursor: pointer;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: background-color 0.3s ease;
    background-color: var(--color-card-bg);
}

.page-game-bai__faq-item[open] {
    background-color: var(--color-deep-green);
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    color: var(--color-text-main);
    font-weight: bold;
    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;
    color: var(--color-glow);
    margin-left: 15px;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
    content: '-';
}

.page-game-bai__faq-answer {
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.6;
    padding-top: 15px;
    border-top: 1px solid var(--color-divider);
    margin-top: 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-bai__hero-title {
        font-size: 2.8em;
    }
    .page-game-bai__section-title {
        font-size: 2.2em;
    }
    .page-game-bai__tips-content {
        flex-direction: column;
        align-items: center;
    }
    .page-game-bai__tips-image {
        max-width: 80%;
        flex: 0 0 80%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-game-bai {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-game-bai__container {
        padding: 15px;
    }

    /* HERO 主图区域 */
    .page-game-bai__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }
    .page-game-bai__hero-title {
        font-size: 2em;
        max-width: 100%;
    }
    .page-game-bai__hero-description {
        font-size: 1em;
        max-width: 100%;
    }
    .page-game-bai__hero-image-wrapper {
        max-width: 100%;
    }
    
    /* 长文金框区 - General text blocks adaptation */
    .page-game-bai__text-block {
        padding: 20px;
        font-size: 0.95em;
    }

    /* 游戏轮播 (Not present on this page, but keeping placeholder for checklist) */
    /* No specific .page-game-bai__slider-track or similar for this page type. */

    /* 合作品牌六宫格 (Not present on this page, but keeping placeholder for checklist) */
    /* No specific .page-game-bai__banners-top-wrapper for this page type. */

    /* 博客卡片区 (Not present on this page, but keeping placeholder for checklist) */
    /* No specific .page-game-bai__blog-masonry or .page-game-bai__blog-slider-track for this page type. */

    /* 通用图片与容器 */
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }
    .page-game-bai__section,
    .page-game-bai__card,
    .page-game-bai__container,
    .page-game-bai__games-grid,
    .page-game-bai__benefits-grid,
    .page-game-bai__guide-steps {
        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-small,
    .page-game-bai__btn-large,
    .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-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Add some space between stacked buttons */
    }
    .page-game-bai__cta-more {
        display: flex;
        justify-content: center;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-game-bai__cta-more .page-game-bai__btn-primary {
        margin-bottom: 0; /* Remove extra margin for single button */
    }
    .page-game-bai__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-bai__guide-steps .page-game-bai__btn-primary {
        margin-top: 15px;
    }

    .page-game-bai__games-grid,
    .page-game-bai__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-bai__game-image, .page-game-bai__benefit-icon {
        height: auto;
        max-height: 250px;
    }
    .page-game-bai__tips-image {
        max-width: 100%;
        flex: 1 1 100%;
    }
    .page-game-bai__tips-text {
        flex: 1 1 100%;
        font-size: 1em;
    }
    .page-game-bai__section-title {
        font-size: 2em;
    }
    .page-game-bai__faq-question {
        font-size: 1.1em;
    }
    .page-game-bai__faq-answer {
        font-size: 0.95em;
    }
}