:root {
    --page-game-bai-primary: #2F6BFF;
    --page-game-bai-secondary: #6FA3FF;
    --page-game-bai-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --page-game-bai-card-bg: #FFFFFF;
    --page-game-bai-background: #F4F7FB;
    --page-game-bai-text-main: #1F2D3D;
    --page-game-bai-text-dark: #000000;
    --page-game-bai-border: #D6E2FF;
    --page-game-bai-glow: #A5C4FF;
    --page-game-bai-white: #ffffff;
    --page-game-bai-light-gray: #f8f9fa;
}

.page-game-bai {
    font-family: 'Arial', sans-serif;
    color: var(--page-game-bai-text-main); /* Default text color for light background */
    background-color: var(--page-game-bai-background); /* Overall page background */
}

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

/* Fixed Header Spacing: Assuming shared.css handles body padding-top */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, not --header-offset */
    padding-bottom: 40px;
    background-color: var(--page-game-bai-background);
}

.page-game-bai__hero-content-wrap {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-direction: column; /* Default to column for image-text order */
}

.page-game-bai__hero-image-block {
    width: 100%;
    order: 1; /* Image first */
}

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

.page-game-bai__hero-text-block {
    text-align: center;
    order: 2; /* Text second */
    max-width: 800px;
}

.page-game-bai__main-title {
    font-size: clamp(2.5rem, 5vw, 3.2rem); /* H1 font size with clamp */
    color: var(--page-game-bai-primary);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-game-bai__intro-text {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--page-game-bai-text-main);
}

.page-game-bai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width */
}

.page-game-bai__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for button max-width */
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

.page-game-bai__btn-primary {
    background: var(--page-game-bai-button-gradient);
    color: var(--page-game-bai-white);
    border: none;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-game-bai__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-game-bai__btn-secondary {
    background: var(--page-game-bai-card-bg);
    color: var(--page-game-bai-primary);
    border: 2px solid var(--page-game-bai-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

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

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

.page-game-bai__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--page-game-bai-text-dark);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-game-bai__section-description {
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--page-game-bai-text-main);
}

/* Game List Section */
.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-color: var(--page-game-bai-card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease;
}

.page-game-bai__game-card:hover {
    transform: translateY(-5px);
}

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

.page-game-bai__game-card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-game-bai__game-card-link {
    color: var(--page-game-bai-primary);
    text-decoration: none;
    font-weight: 600;
}

.page-game-bai__game-card-link:hover {
    text-decoration: underline;
}

.page-game-bai__game-card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--page-game-bai-text-main);
    padding: 0 15px;
    margin-bottom: 20px;
}

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

/* Why Choose Section (Dark Background) */
.page-game-bai__dark-section {
    background-color: var(--page-game-bai-primary); /* Brand primary as background */
    color: var(--page-game-bai-white); /* White text for contrast */
}

.page-game-bai__dark-section .page-game-bai__section-title {
    color: var(--page-game-bai-white); /* White title */
}

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

.page-game-bai__feature-item {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white background */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-game-bai__feature-icon {
    width: 200px; /* Enforce min size for content images */
    height: 150px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 8px;
}

.page-game-bai__feature-title {
    font-size: 1.5rem;
    color: var(--page-game-bai-white);
    margin-bottom: 10px;
}

.page-game-bai__feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-game-bai-light-gray);
}

/* Guide Section */
.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: var(--page-game-bai-card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    border-bottom: 4px solid var(--page-game-bai-primary);
}

.page-game-bai__guide-step-title {
    font-size: 1.3rem;
    color: var(--page-game-bai-primary);
    margin-bottom: 10px;
}

.page-game-bai__guide-step-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-game-bai-text-main);
}

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

.page-game-bai__btn--large {
    padding: 16px 40px;
    font-size: 1.2rem;
}

/* FAQ Section */
.page-game-bai__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-game-bai__faq-item {
    background-color: var(--page-game-bai-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--page-game-bai-border);
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-game-bai-text-dark);
    cursor: pointer;
    background-color: var(--page-game-bai-light-gray);
    border-bottom: 1px solid var(--page-game-bai-border);
    list-style: none; /* Remove default marker for details/summary */
}

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

.page-game-bai__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    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: 15px 25px 20px 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-game-bai-text-main);
}

.page-game-bai__faq-answer p {
    margin: 0;
}

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

.page-game-bai__article-card {
    background-color: var(--page-game-bai-card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.page-game-bai__article-card:hover {
    transform: translateY(-5px);
}

.page-game-bai__article-card-image {
    width: 100%;
    height: 220px; /* Consistent height for blog images */
    object-fit: cover;
    display: block;
}

.page-game-bai__article-card-title {
    font-size: 1.3rem;
    margin: 20px 20px 10px 20px;
    line-height: 1.4;
}

.page-game-bai__article-card-link {
    color: var(--page-game-bai-text-dark);
    text-decoration: none;
    font-weight: 600;
}

.page-game-bai__article-card-link:hover {
    color: var(--page-game-bai-primary);
}

.page-game-bai__article-card-meta {
    font-size: 0.9rem;
    color: #666;
    margin: 0 20px 10px 20px;
}

.page-game-bai__article-card-excerpt {
    font-size: 0.95rem;
    color: var(--page-game-bai-text-main);
    line-height: 1.6;
    margin: 0 20px 20px 20px;
}

.page-game-bai__btn-link {
    color: var(--page-game-bai-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0 20px 20px 20px;
    display: inline-block;
}

.page-game-bai__btn-link:hover {
    text-decoration: underline;
}

.page-game-bai__view-all-button {
    text-align: center;
    margin-top: 50px;
}


/* --- Responsive Styles --- */
@media (min-width: 769px) {
    .page-game-bai__hero-content-wrap {
        flex-direction: row;
        text-align: left;
    }
    .page-game-bai__hero-image-block {
        flex: 1;
        order: 2;
    }
    .page-game-bai__hero-text-block {
        flex: 1;
        order: 1;
        text-align: left;
    }
    .page-game-bai__cta-buttons {
        justify-content: flex-start;
    }
}


@media (max-width: 768px) {
    /* 1. 顶区标题 + 双 CTA */
    .page-game-bai__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }
    .page-game-bai__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-game-bai__hero-content-wrap {
        gap: 20px;
    }
    .page-game-bai__main-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    .page-game-bai__intro-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-game-bai__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-game-bai__btn,
    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 2. 单栏长文容器 */
    .page-game-bai__section {
        padding: 40px 0;
    }
    .page-game-bai__section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .page-game-bai__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .page-game-bai__game-grid,
    .page-game-bai__features-grid,
    .page-game-bai__guide-steps,
    .page-game-bai__article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    .page-game-bai__game-card,
    .page-game-bai__feature-item,
    .page-game-bai__guide-step,
    .page-game-bai__article-card {
        padding: 20px 0;
    }

    /* 3. 通用图片与 figure */
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        display: block !important;
    }
    .page-game-bai__hero-image-block,
    .page-game-bai__game-card-image,
    .page-game-bai__feature-icon,
    .page-game-bai__article-card-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-game-bai__game-card-image,
    .page-game-bai__article-card-image {
        height: auto !important;
        max-height: 200px;
    }
    .page-game-bai__feature-icon {
        width: 100% !important;
        max-width: 200px !important;
        height: auto !important;
        min-width: unset !important;
        min-height: unset !important;
    }


    /* 4. 按钮与按钮容器 */
    .page-game-bai__btn--large {
        font-size: 1.1rem !important;
        padding: 14px 25px !important;
    }
    .page-game-bai__cta-bottom {
        margin-top: 40px;
    }

    /* 5. FAQ 区块 */
    .page-game-bai__faq-list {
        margin-top: 20px;
    }
    .page-game-bai__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-game-bai__faq-answer {
        font-size: 0.95rem;
        padding: 10px 20px 15px 20px;
    }

    /* Article Card Specifics for Mobile */
    .page-game-bai__article-card-title {
        font-size: 1.2rem;
        margin: 15px 15px 8px 15px;
    }
    .page-game-bai__article-card-meta,
    .page-game-bai__article-card-excerpt,
    .page-game-bai__btn-link {
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-game-bai__view-all-button {
        margin-top: 30px;
    }
}