/* General styles for the Bắn Cá page */
.page-ban-ca {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light body background */
    background-color: #F5F7FA; /* Custom background color */
}

/* Hero Section */
.page-ban-ca__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as shared.css handles body padding-top */
    background-color: #E53935; /* Brand primary color as background */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-ban-ca__hero-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-ban-ca__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default for desktop */
}

.page-ban-ca__hero-content {
    background: #ffffff; /* Card background color */
    padding: 40px 20px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    margin-top: -80px; /* Overlap with image slightly for visual effect */
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__main-title {
    font-size: 48px;
    font-weight: bold;
    color: #E53935; /* Brand primary color */
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 100%; /* Ensure H1 doesn't overflow */
    word-wrap: break-word; /* Allow word wrapping */
}

.page-ban-ca__lead-text {
    font-size: 18px;
    color: #333333; /* Main text color */
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-ban-ca__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-ban-ca__cta-buttons--center {
    justify-content: center;
    margin-top: 30px;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word wrapping */
}

.page-ban-ca__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Custom button gradient */
    color: #ffffff; /* White text for primary button */
    border: none;
}

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

.page-ban-ca__btn-secondary {
    background: #ffffff; /* White background for secondary button */
    color: #E53935; /* Brand primary color text */
    border: 2px solid #E53935; /* Brand primary color border */
}

.page-ban-ca__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

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

.page-ban-ca__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    width: 100%;
}

.page-ban-ca__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #E53935; /* Brand primary color */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-ban-ca__section-title--white {
    color: #ffffff; /* White text for dark backgrounds */
}

.page-ban-ca__text-block {
    font-size: 16px;
    line-height: 1.7;
    color: #333333; /* Main text color */
    margin-bottom: 20px;
    text-align: justify;
}

.page-ban-ca__text-block--white {
    color: #ffffff; /* White text for dark backgrounds */
}

/* Intro Section */
.page-ban-ca__intro-section {
    background-color: #F5F7FA; /* Custom background color */
}

/* Why Play Section (Dark Background) */
.page-ban-ca__why-play-section {
    background-color: #E53935; /* Brand primary color as background */
}

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

.page-ban-ca__feature-card {
    background: #ffffff; /* Card background color */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
}

.page-ban-ca__feature-card:hover {
    transform: translateY(-5px);
}

.page-ban-ca__feature-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
}

.page-ban-ca__card-title {
    font-size: 22px;
    font-weight: bold;
    color: #E53935; /* Brand primary color */
    margin-bottom: 15px;
}

/* Game Types Section */
.page-ban-ca__game-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-ban-ca__game-list li {
    background: #ffffff; /* Card background color */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-ban-ca__list-item-title {
    font-size: 20px;
    font-weight: bold;
    color: #E53935; /* Brand primary color */
    margin-bottom: 10px;
}

.page-ban-ca__list-item-desc--white {
    color: #ffffff; /* White text for dark backgrounds */
}

/* How to Play Section (Dark Background) */
.page-ban-ca__how-to-play-section {
    background-color: #E53935; /* Brand primary color as background */
}

.page-ban-ca__guide-list {
    list-style: decimal;
    padding-left: 20px;
    margin: 30px 0;
    color: #ffffff; /* White text for dark backgrounds */
}

.page-ban-ca__guide-list li {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.page-ban-ca__guide-list li a {
    color: #FF5A4F; /* Accent color for links */
    text-decoration: underline;
}

.page-ban-ca__list-item-title--white {
    color: #ffffff; /* White text for dark backgrounds */
}

/* Strategies Section */
.page-ban-ca__strategies-section {
    background-color: #F5F7FA; /* Custom background color */
}

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

.page-ban-ca__strategy-card {
    background: #ffffff; /* Card background color */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
}

.page-ban-ca__strategy-card:hover {
    transform: translateY(-5px);
}

.page-ban-ca__strategy-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
}

/* Promotions Section (Dark Background) */
.page-ban-ca__promotions-section {
    background-color: #E53935; /* Brand primary color as background */
}

.page-ban-ca__promo-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    color: #ffffff; /* White text for dark backgrounds */
}

.page-ban-ca__promo-list li {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Platform Integration Section */
.page-ban-ca__platform-integration {
    background-color: #F5F7FA; /* Custom background color */
}

/* FAQ Section */
.page-ban-ca__faq-section {
    background-color: #F5F7FA; /* Custom background color */
}

details.page-ban-ca__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #E0E0E0; /* Border color */
    overflow: hidden;
    background: #ffffff; /* Card background color */
}
details.page-ban-ca__faq-item summary.page-ban-ca__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;
    color: #333333; /* Main text color */
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question::-webkit-details-marker {
    display: none;
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question:hover {
    background: #f5f5f5;
}
.page-ban-ca__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333; /* Main text color */
}
.page-ban-ca__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #333333; /* Main text color */
}
.page-ban-ca__faq-answer p {
    margin-top: 0;
}

/* Final CTA Section (Dark Background) */
.page-ban-ca__final-cta {
    background-color: #E53935; /* Brand primary color as background */
}

/* --- Responsive Design (Tablet/Smaller Desktop) --- */
@media (max-width: 1024px) {
    .page-ban-ca__main-title {
        font-size: clamp(32px, 5vw, 42px); /* Responsive font size */
    }
    .page-ban-ca__section-title {
        font-size: clamp(28px, 4vw, 32px);
    }
    .page-ban-ca__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }
    .page-ban-ca__feature-grid,
    .page-ban-ca__game-list,
    .page-ban-ca__strategy-grid,
    .page-ban-ca__promo-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    /* General Mobile Styles */
    .page-ban-ca {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-ban-ca__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca__section {
        padding: 40px 0;
    }

    /* HERO 主图区域 */
    .page-ban-ca__hero-section {
        padding-top: 10px; /* Small top padding for mobile, as body handles header offset */
    }
    .page-ban-ca__hero-image img {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-ban-ca__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
        border-radius: 8px;
    }
    .page-ban-ca__main-title {
        font-size: clamp(28px, 8vw, 36px);
        margin-bottom: 15px;
    }
    .page-ban-ca__lead-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* 产品展示图区域 (for feature/strategy grids) */
    .page-ban-ca__feature-grid,
    .page-ban-ca__game-list,
    .page-ban-ca__strategy-grid,
    .page-ban-ca__promo-list {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-ban-ca__section-title {
        font-size: clamp(24px, 7vw, 30px);
        margin-bottom: 25px;
        text-align: center;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca__text-block {
        font-size: 15px;
        line-height: 1.6;
        text-align: left;
    }
    .page-ban-ca__guide-list {
        padding-left: 15px;
    }
    .page-ban-ca__guide-list li {
        margin-bottom: 15px;
    }

    /* 通用图片与容器 */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-ban-ca__feature-card,
    .page-ban-ca__strategy-card,
    .page-ban-ca__game-list li,
    .page-ban-ca__promo-list li {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca__card-title {
        font-size: 20px;
    }
    .page-ban-ca__list-item-title {
        font-size: 18px;
    }

    /* 按钮与按钮容器 */
    .page-ban-ca__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 15px;
    }

    /* FAQ Section Mobile */
    details.page-ban-ca__faq-item summary.page-ban-ca__faq-question { padding: 15px; }
    .page-ban-ca__faq-qtext { font-size: 15px; }
    details.page-ban-ca__faq-item .page-ban-ca__faq-answer { padding: 0 15px 15px; }
}