/* General styles */
.page-ban-ca {
    color: #1F2D3D; /* Text Main */
    background: #F4F7FB; /* Background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-ban-ca__highlight {
    color: #2F6BFF; /* Main color for highlight */
    font-weight: bold;
}

.page-ban-ca__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-ban-ca__content-area--center {
    text-align: center;
}

.page-ban-ca__section-title {
    font-size: 32px;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 24px;
    text-align: center;
    font-weight: bold;
}

.page-ban-ca__section-title--light {
    color: #ffffff;
}

.page-ban-ca__text-block {
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 32px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__text-block--light {
    color: #f0f0f0;
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%;
}

.page-ban-ca__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #ffffff;
}

.page-ban-ca__btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-ban-ca__btn-secondary {
    background: #ffffff;
    color: #2F6BFF; /* Main color */
    border-color: #2F6BFF; /* Main color */
}

.page-ban-ca__btn-secondary:hover {
    background: #e0eaff;
    color: #1e50cc;
    border-color: #1e50cc;
}

.page-ban-ca__btn-small {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
}

.page-ban-ca__btn-large {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 10px;
}

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #F4F7FB 0%, #D6E2FF 100%); /* Light gradient background */
}

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

.page-ban-ca__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #1F2D3D; /* Text Main */
    text-align: left;
}

.page-ban-ca__main-title {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1F2D3D; /* Text Main */
    max-width: 600px;
}

.page-ban-ca__description {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #1F2D3D; /* Text Main */
    max-width: 600px;
}

.page-ban-ca__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-ban-ca__hero-side-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Intro Section (Module 1) */
.page-ban-ca__intro-section {
    padding: 60px 0;
    background: #ffffff; /* Card BG */
}

.page-ban-ca__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-ban-ca__feature-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__icon-box-media {
    width: 200px; /* Fixed width for circle */
    height: 200px; /* Fixed height for circle */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #D6E2FF; /* Border color */
    box-shadow: 0 0 0 8px rgba(47, 107, 255, 0.1); /* Glow effect */
}

.page-ban-ca__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%; /* Ensure image is circular */
}

.page-ban-ca__feature-title {
    font-size: 24px;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-ban-ca__feature-description {
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
}

/* Game Types Section */
.page-ban-ca__game-types-section {
    padding: 60px 0;
    background: #2F6BFF; /* Main color */
    color: #ffffff;
}

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

.page-ban-ca__game-card {
    background: #ffffff; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

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

.page-ban-ca__game-card-title {
    font-size: 22px;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 10px;
    padding: 0 20px;
    font-weight: bold;
}

.page-ban-ca__game-card-description {
    font-size: 15px;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
    padding: 0 20px;
}

/* Guide Section */
.page-ban-ca__guide-section {
    padding: 60px 0;
    background: #F4F7FB; /* Background */
}

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

.page-ban-ca__guide-item {
    background: #ffffff; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__guide-title {
    font-size: 20px;
    color: #2F6BFF; /* Main color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-ban-ca__guide-description {
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
}

.page-ban-ca__guide-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Promo Section */
.page-ban-ca__promo-section {
    padding: 60px 0;
    background: #6FA3FF; /* Auxiliary color */
    color: #ffffff;
}

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

.page-ban-ca__promo-card {
    background: rgba(255, 255, 255, 0.9); /* Slightly transparent white for contrast */
    color: #1F2D3D; /* Text Main */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-ban-ca__promo-title {
    font-size: 22px;
    color: #2F6BFF; /* Main color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-ban-ca__promo-description {
    font-size: 16px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-ban-ca__faq-section {
    padding: 60px 0;
    background: #ffffff; /* Card BG */
}

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

.page-ban-ca__faq-item {
    background: #F4F7FB; /* Background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: bold;
    color: #1F2D3D; /* Text Main */
    cursor: pointer;
    background: #D6E2FF; /* Border color for summary */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    list-style: none; /* Hide default marker */
}

/* For details tag, hide default arrow */
.page-ban-ca__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-ban-ca__faq-item summary::marker {
    display: none;
}

.page-ban-ca__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #2F6BFF; /* Main color */
    margin-left: 15px;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-ban-ca__faq-answer {
    padding: 15px 25px 20px;
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
    line-height: 1.6;
}

/* Call to Action Section */
.page-ban-ca__call-to-action-section {
    padding: 80px 0;
    background: linear-gradient(90deg, #2F6BFF 0%, #6FA3FF 100%); /* Gradient background */
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca__main-title {
        font-size: 40px;
    }
    .page-ban-ca__description {
        font-size: 17px;
    }
    .page-ban-ca__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-ban-ca__hero-content {
        text-align: center;
    }
    .page-ban-ca__cta-buttons {
        justify-content: center;
    }
    .page-ban-ca__hero-image {
        order: -1; /* Image above content on smaller screens */
    }
}

@media (max-width: 768px) {
    /* 1. HERO 双栏 */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Small top padding, shared.css handles body padding-top */
        padding-bottom: 40px;
    }
    .page-ban-ca__hero-container {
        padding: 20px 15px;
        gap: 20px;
    }
    .page-ban-ca__main-title {
        font-size: clamp(28px, 8vw, 36px);
        margin-bottom: 15px;
    }
    .page-ban-ca__description {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .page-ban-ca__hero-content {
        min-width: unset;
    }
    .page-ban-ca__hero-image {
        min-width: unset;
    }
    /* 2. 模块1 三栏正圆图 */
    .page-ban-ca__icon-box-media {
        width: 160px;
        height: 160px;
        border-width: 3px;
    }
    .page-ban-ca__feature-title {
        font-size: 20px;
    }
    .page-ban-ca__feature-description {
        font-size: 15px;
    }
    /* 3. 各类网格布局 (game-list, promo-grid, features-grid, guide-steps) */
    .page-ban-ca__game-list,
    .page-ban-ca__promo-grid,
    .page-ban-ca__features-grid,
    .page-ban-ca__guide-steps {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-ban-ca__game-card-image {
        height: 180px; /* Adjust card image height */
    }
    .page-ban-ca__game-card-title {
        font-size: 20px;
    }
    .page-ban-ca__game-card-description {
        font-size: 14px;
    }
    /* 4. 教程长文 / 促销 / 信任 / FAQ / intro 排版 */
    .page-ban-ca__content-area {
        padding: 30px 15px;
    }
    .page-ban-ca__section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .page-ban-ca__text-block {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .page-ban-ca__guide-image {
        margin-top: 30px;
    }
    .page-ban-ca__faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }
    .page-ban-ca__faq-answer {
        font-size: 15px;
        padding: 10px 20px 15px;
    }
    .page-ban-ca__call-to-action-section {
        padding: 60px 0;
    }
    /* 5. 通用图片与容器 */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-ban-ca__section,
    .page-ban-ca__card,
    .page-ban-ca__container,
    .page-ban-ca__hero-container,
    .page-ban-ca__content-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Exception for circular images (Module 1) */
    .page-ban-ca__icon-box-media img {
        height: 100% !important; /* Keep height 100% to fill circular container */
        object-fit: cover !important;
    }
    /* 6. 按钮与按钮容器 */
    .page-ban-ca__cta-button,
    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary,
    .page-ban-ca a[class*="button"],
    .page-ban-ca 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-ban-ca__cta-buttons,
    .page-ban-ca__button-group,
    .page-ban-ca__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }
    .page-ban-ca__cta-buttons {
        display: flex;
    }
}