/* Base styles for the Game Bai page */
.page-game-bai {
    font-family: 'Arial', sans-serif;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Body Background */
    line-height: 1.6;
}

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

.page-game-bai__dark-bg {
    background-color: #0A0A0A;
}

.page-game-bai__card {
    background: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #FFF6D6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-game-bai__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: #F2C14E; /* Main Color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-game-bai__section-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: #FFF6D6;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__text-block {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #FFF6D6;
}

.page-game-bai img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button Gradient */
    color: #111111; /* Dark text for contrast on bright button */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-game-bai__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
    filter: brightness(1.1);
}

.page-game-bai__btn-secondary {
    background: #111111; /* Card BG */
    color: #F2C14E; /* Main Color */
    border: 2px solid #F2C14E;
}

.page-game-bai__btn-secondary:hover {
    transform: translateY(-3px);
    background: #F2C14E;
    color: #111111;
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-game-bai__btn-large {
    font-size: 18px;
    padding: 15px 35px;
    min-width: 180px;
}

.page-game-bai__btn-small {
    font-size: 15px;
    padding: 10px 20px;
    min-width: 120px;
}

.page-game-bai__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

/* Hero Section */
.page-game-bai__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-game-bai__hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.page-game-bai__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: brightness(0.6);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.page-game-bai__hero-content-wrapper {
    position: relative;
    z-index: 1;
    padding-top: 50px;
    padding-bottom: 20px;
}

.page-game-bai__hero-title {
    color: #F2C14E;
    font-size: clamp(36px, 5vw, 60px);
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.page-game-bai__hero-description {
    color: #FFF6D6;
    font-size: clamp(18px, 2.5vw, 24px);
    max-width: 900px;
    margin: 0 auto 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

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

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

/* Game Categories Section */
.page-game-bai__game-categories-section {
    padding: 80px 20px;
}

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

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

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

.page-game-bai__game-card .page-game-bai__card-title {
    font-size: 24px;
    color: #F2C14E;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-game-bai__game-card .page-game-bai__card-description {
    font-size: 16px;
    color: #FFF6D6;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Why Choose Us Section */
.page-game-bai__why-choose-us-section {
    padding: 80px 20px;
}

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

.page-game-bai__feature-item {
    display: flex;
    flex-direction: column;
}

.page-game-bai__feature-title {
    font-size: 22px;
    color: #F2C14E;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-game-bai__feature-description {
    font-size: 16px;
    color: #FFF6D6;
    line-height: 1.7;
}

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

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

.page-game-bai__step-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background: #111111;
    border: 1px solid #3A2A12;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-game-bai__step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.5);
}

.page-game-bai__step-title {
    font-size: 22px;
    color: #F2C14E;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-game-bai__step-description {
    font-size: 16px;
    color: #FFF6D6;
    line-height: 1.7;
}

/* Promotions Section */
.page-game-bai__promotions-section {
    padding: 80px 20px;
}

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

.page-game-bai__promotion-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-game-bai__promotion-card .page-game-bai__card-image {
    margin-bottom: 20px;
    width: 100%;
    height: 250px; /* Consistent height */
    object-fit: cover;
}

.page-game-bai__promotion-card .page-game-bai__card-title {
    font-size: 22px;
    color: #F2C14E;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-game-bai__promotion-card .page-game-bai__card-description {
    font-size: 16px;
    color: #FFF6D6;
    flex-grow: 1;
    margin-bottom: 20px;
}

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

.page-game-bai__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-game-bai__tips-list .page-game-bai__list-item {
    background: #111111;
    border: 1px solid #3A2A12;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.page-game-bai__tips-list .page-game-bai__list-item h3 {
    font-size: 22px;
    color: #F2C14E;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-game-bai__tips-list .page-game-bai__list-item p {
    font-size: 16px;
    color: #FFF6D6;
    line-height: 1.7;
}

/* FAQ Section */
details.page-game-bai__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #3A2A12;
    overflow: hidden;
    background: #111111;
    color: #FFF6D6;
}
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;
}
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: #1b1b1b;
}
.page-game-bai__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #FFF6D6;
}
.page-game-bai__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #F2C14E;
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer {
    padding: 0 20px 20px;
    background: #181818;
    border-radius: 0 0 5px 5px;
    font-size: 16px;
    line-height: 1.7;
    color: #FFF6D6;
}

/* Final CTA Section */
.page-game-bai__cta-final-section {
    padding: 80px 20px;
    text-align: center;
}

/* Responsive Design */
/* Mobile specific styles */
@media (max-width: 1024px) {
    .page-game-bai__container {
        padding: 15px;
    }
    .page-game-bai__game-grid,
    .page-game-bai__features-grid,
    .page-game-bai__guide-steps,
    .page-game-bai__promotion-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 849px) {
    .page-game-bai__hero-image {
        object-fit: contain !important; /* Prevent cropping on mobile for hero */
        aspect-ratio: unset !important;
        position: relative;
        filter: brightness(0.8); /* Slightly less dark for visibility */
    }
    .page-game-bai__hero-content-wrapper {
        padding-top: 30px;
    }
    .page-game-bai__hero-section {
        padding-bottom: 40px;
    }
}

@media (max-width: 768px) {
    /* General content area adjustments */
    .page-game-bai__container,
    .page-game-bai__section,
    .page-game-bai__card,
    .page-game-bai__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-game-bai {
        font-size: 16px;
        line-height: 1.6;
    }

    /* HERO 主图区域 */
    .page-game-bai__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        padding-bottom: 30px;
    }
    .page-game-bai__hero-title {
        font-size: clamp(28px, 8vw, 40px);
    }
    .page-game-bai__hero-description {
        font-size: clamp(16px, 4vw, 20px);
    }
    .page-game-bai__hero-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-game-bai__btn-large {
        width: 100% !important;
        max-width: 280px !important; /* Constrain width for single column */
        padding: 12px 20px;
        font-size: 16px;
    }

    /* 产品展示图区域 (Game Categories) */
    .page-game-bai__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-bai__game-card .page-game-bai__card-image {
        height: 180px;
    }
    .page-game-bai__products-section { /* Ensure no horizontal scroll */
        overflow-x: hidden;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-game-bai__section-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 15px;
    }
    .page-game-bai__section-subtitle {
        font-size: clamp(15px, 3.5vw, 18px);
        margin-bottom: 25px;
    }
    .page-game-bai__text-block {
        font-size: 15px;
        line-height: 1.6;
    }
    .page-game-bai__article-body { /* Ensure text blocks are responsive */
        max-width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-game-bai__article-figure { /* For any image within article body */
        max-width: 100% !important;
        height: auto !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* 通用图片与容器 */
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* 按钮与按钮容器 */
    .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-left: 15px;
        padding-right: 15px;
    }
    .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: 15px; /* Adjust gap for mobile */
    }
    .page-game-bai__center-buttons {
        flex-direction: column;
    }

    /* Feature/Guide/Promotion grids */
    .page-game-bai__features-grid,
    .page-game-bai__guide-steps,
    .page-game-bai__promotion-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-bai__feature-item,
    .page-game-bai__step-item,
    .page-game-bai__promotion-card {
        padding: 20px;
    }
    .page-game-bai__guide-steps .page-game-bai__step-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

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