/* style/game-bai.css */
.page-game-bai {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, relying on shared.css for body padding-top */
    padding-bottom: 40px;
    background-color: #ffffff;
}

.page-game-bai__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 16px;
    gap: 40px;
}

.page-game-bai__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #333333;
}

.page-game-bai__main-title {
    font-size: clamp(2em, 3.5vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #017439;
}

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

.page-game-bai__hero-image {
    flex: 1 1 45%;
    text-align: center;
    min-width: 300px;
}

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

/* CTA Buttons in Hero */
.page-game-bai__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-register {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-game-bai__btn-primary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

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

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

.page-game-bai__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2d;
    border-color: #005a2d;
}

/* Specific register button in guide */
.page-game-bai__btn-register {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

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

/* General Content Area */
.page-game-bai__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-game-bai__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
}

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

.page-game-bai__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
}

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

.page-game-bai__highlight {
    font-weight: bold;
    color: #017439;
}

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

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

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

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

.page-game-bai__game-type-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 450px;
}

.page-game-bai__icon-box-media {
    width: 240px;
    height: 240px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 4px solid #017439;
}

.page-game-bai__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

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

.page-game-bai__btn-text {
    color: #017439;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.page-game-bai__btn-text:hover {
    color: #005a2d;
}

.page-game-bai__arrow {
    font-size: 1.2em;
    line-height: 1;
}

/* Why Choose Section */
.page-game-bai__why-choose-section {
    padding: 60px 0;
}

.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-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #FFFFFF;
}

.page-game-bai__feature-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-game-bai__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

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

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

.page-game-bai__guide-step {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-game-bai__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #017439;
    color: #FFFFFF;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

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

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

.page-game-bai__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.page-game-bai__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

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

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

.page-game-bai__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
}

.page-game-bai__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #FFFFFF;
    border-top: 1px solid #e0e0e0;
}

/* CTA Section at bottom */
.page-game-bai__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-game-bai__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-game-bai__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-game-bai__hero-content {
        flex: 1 1 100%;
    }

    .page-game-bai__hero-image {
        flex: 1 1 100%;
        margin-bottom: 30px;
    }

    .page-game-bai__main-title,
    .page-game-bai__section-title {
        text-align: center;
    }

    .page-game-bai__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* HERO section (双栏改单列, 顶距, 禁止背景图) */
    .page-game-bai__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }
    .page-game-bai__hero-container {
        padding: 30px 15px;
        gap: 20px;
    }
    .page-game-bai__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-game-bai__hero-description {
        font-size: 1em;
    }
    .page-game-bai__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    /* 按钮与按钮容器 (max-width: 100%, 容器宽度, flex 换行) */
    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary,
    .page-game-bai__btn-register {
        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;
    }

    /* 模块1 三栏正圆图 (若有, __icon-box-media 仍正圆) - applied to game-type-card */
    .page-game-bai__game-types {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-bai__icon-box-media {
        width: 180px;
        height: 180px;
        border-width: 3px;
    }
    .page-game-bai__game-type-card {
        padding: 20px;
        min-height: auto;
    }

    /* 教程长文 / 促销 / 信任 / FAQ / 博客 / intro 排版 (内边距, 字号, 双栏改单列) */
    .page-game-bai__content-area {
        padding: 30px 15px;
    }
    .page-game-bai__section-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
        margin-bottom: 30px;
    }
    .page-game-bai__text-block {
        font-size: 0.95em;
    }
    .page-game-bai__features-grid,
    .page-game-bai__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-bai__feature-item,
    .page-game-bai__guide-step {
        padding: 20px;
    }
    .page-game-bai__feature-title,
    .page-game-bai__step-title {
        font-size: 1.2em;
    }
    .page-game-bai__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }

    /* 通用图片与容器 (max-width: 100%) */
    .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,
    .page-game-bai__hero-section,
    .page-game-bai__intro-section,
    .page-game-bai__why-choose-section,
    .page-game-bai__guide-section,
    .page-game-bai__faq-section,
    .page-game-bai__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }
    /* Specific override for icon-box-media img to maintain circle */
    .page-game-bai__icon-box-media img {
        height: 100% !important;
        object-fit: cover !important;
    }

    /* FAQ section */
    .page-game-bai__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-game-bai__faq-answer {
        padding: 15px 20px;
    }
}