/* General Styling */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background: var(--background-color, #f8f8f8); /* Inherit from shared or default light */
}

.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-sports__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #C91F17;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-sports__subsection-title {
    font-size: 1.8em;
    font-weight: 600;
    color: #E53935;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-sports__section-intro {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    color: #7A0E0E; /* Deep Red for text on gold button */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__btn-secondary {
    background: #ffffff;
    color: #C91F17;
    border: 2px solid #C91F17;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-sports__btn-secondary:hover {
    background: #f0f0f0;
    border-color: #E53935;
    color: #E53935;
}

.page-sports__dark-section {
    background: #B71C1C; /* Background color for dark sections */
    color: #FFF5E1; /* Text Main for dark backgrounds */
    padding: 60px 0;
}

.page-sports__dark-section .page-sports__section-title {
    color: #FFCC66; /* Glow for titles on dark background */
}

.page-sports__dark-section .page-sports__section-intro {
    color: #FFF5E1; /* Text Main for intro on dark background */
}

/* Images */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-sports__article-figure {
    margin: 40px auto;
    text-align: center;
    max-width: 800px; /* Example max-width for content images */
}

.page-sports__figure-caption {
    font-style: italic;
    color: #666;
    margin-top: 10px;
    font-size: 0.9em;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    background-color: #f0f0f0;
}

.page-sports__hero-image {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.page-sports__hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.page-sports__hero-content {
    max-width: 900px;
    margin: 40px auto 60px;
    text-align: center;
    padding: 0 20px;
}

.page-sports__hero-title {
    font-size: clamp(2.5em, 5vw, 3.8em);
    font-weight: 800;
    color: #C91F17;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.page-sports__hero-description {
    font-size: clamp(1.1em, 2vw, 1.4em);
    color: #333333;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Why Choose Section */
.page-sports__why-choose-section {
    padding: 60px 0;
    background: #ffffff;
}

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

.page-sports__feature-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__feature-title {
    font-size: 1.4em;
    color: #E53935;
    margin-bottom: 15px;
}

.page-sports__feature-text {
    color: #666666;
    font-size: 0.95em;
}

/* Sports Markets Section */
.page-sports__sports-markets-section {
    padding: 60px 0;
}

.page-sports__article-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.page-sports__article-body p {
    margin-bottom: 1em;
    color: #FFF5E1; /* Text Main for dark backgrounds */
}

/* Live Betting Section */
.page-sports__live-betting-section {
    padding: 60px 0;
    background: #ffffff;
}

.page-sports__live-betting-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-sports__live-betting-content .page-sports__text-block {
    flex: 1;
}

.page-sports__live-betting-content .page-sports__text-block p {
    margin-bottom: 25px;
    color: #333333;
}

.page-sports__live-betting-content .page-sports__article-figure {
    flex: 1;
    margin: 0;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 60px 0;
}

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

.page-sports__promo-card {
    background: #D32F2F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    color: #FFF5E1; /* Text Main */
}

.page-sports__promo-card img {
    width: 100%;
    height: 250px; /* Fixed height for promo images */
    object-fit: cover;
    border-radius: 0;
}

.page-sports__promo-card h3 {
    font-size: 1.3em;
    color: #FFCC66; /* Glow for titles on card */
    margin: 20px 15px 10px;
}

.page-sports__promo-card p {
    font-size: 0.95em;
    color: #FFF5E1; /* Text Main */
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-sports__promo-card .page-sports__btn-secondary {
    margin: 0 20px 20px;
    background: #F4D34D; /* Gold */
    color: #7A0E0E; /* Deep Red */
    border-color: #F2B544; /* Border */
}

.page-sports__promo-card .page-sports__btn-secondary:hover {
    background: #F2B544; /* Border */
    color: #7A0E0E; /* Deep Red */
    border-color: #FFCC66; /* Glow */
}

.page-sports__full-promo-cta {
    text-align: center;
    margin-top: 20px;
}

/* How to Start Section */
.page-sports__how-to-start-section {
    padding: 60px 0;
    background: #ffffff;
}

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

.page-sports__step-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-sports__step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: #C91F17;
    color: #ffffff;
    font-size: 2em;
    font-weight: bold;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.page-sports__step-title {
    font-size: 1.5em;
    color: #C91F17;
    margin-bottom: 10px;
}

.page-sports__step-description {
    color: #666666;
}

.page-sports__cta-bottom {
    text-align: center;
    margin-top: 20px;
}

/* Security & Support Section */
.page-sports__security-support-section {
    padding: 60px 0;
}

.page-sports__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-sports__security-content .page-sports__text-block {
    flex: 1;
}

.page-sports__security-content .page-sports__text-block p {
    margin-bottom: 25px;
    color: #FFF5E1; /* Text Main for dark backgrounds */
}

.page-sports__security-content .page-sports__article-figure {
    flex: 1;
    margin: 0;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 60px 0;
    background: #ffffff;
}

.page-sports__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

details.page-sports__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
}
details.page-sports__faq-item summary.page-sports__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-sports__faq-item summary.page-sports__faq-question::-webkit-details-marker {
    display: none;
}
details.page-sports__faq-item summary.page-sports__faq-question:hover {
    background: #f5f5f5;
}
.page-sports__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333;
}
.page-sports__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #C91F17; /* Use brand color for toggle */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-sports__faq-item[open] .page-sports__faq-toggle {
    color: #E53935; /* Change color when open */
}
details.page-sports__faq-item .page-sports__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #555555;
}

/* Final CTA Section */
.page-sports__final-cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-sports__final-cta-section .page-sports__section-title {
    color: #FFCC66;
    margin-bottom: 25px;
}

.page-sports__final-cta-section .page-sports__section-intro {
    color: #FFF5E1;
    margin-bottom: 40px;
}

/* --- Responsive Design --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: clamp(2em, 4.5vw, 3.5em);
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__subsection-title {
        font-size: 1.6em;
    }
    .page-sports__live-betting-content,
    .page-sports__security-content {
        flex-direction: column;
        text-align: center;
    }
    .page-sports__live-betting-content .page-sports__article-figure,
    .page-sports__security-content .page-sports__article-figure {
        max-width: 80%;
        margin: 20px auto;
    }
    .page-sports__live-betting-content .page-sports__text-block p,
    .page-sports__security-content .page-sports__text-block p {
        text-align: left;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .page-sports__container {
        padding: 0 15px;
    }

    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-sports__subsection-title {
        font-size: 1.4em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-sports__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* HERO 主图区域 */
    .page-sports__hero-section {
        padding-top: 10px; /* Small top padding */
    }
    .page-sports__hero-image img {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        width: 100% !important;
        height: auto !important;
    }
    .page-sports__hero-content {
        margin: 20px auto 40px;
        padding: 0 15px;
    }
    .page-sports__hero-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-sports__hero-description {
        font-size: clamp(0.9em, 4vw, 1.1em);
        margin-bottom: 20px;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__hero-cta-buttons .page-sports__btn-primary,
    .page-sports__hero-cta-buttons .page-sports__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 通用图片与容器 */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__why-choose-section,
    .page-sports__sports-markets-section,
    .page-sports__live-betting-section,
    .page-sports__promotions-section,
    .page-sports__how-to-start-section,
    .page-sports__security-support-section,
    .page-sports__faq-section,
    .page-sports__final-cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-sports__article-figure {
        margin: 20px auto;
        max-width: 100% !important;
    }
    .page-sports__article-figure img {
        width: 100% !important;
        height: auto !important;
    }

    /* 按钮与按钮容器 */
    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports a[class*="button"],
    .page-sports 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-sports__cta-buttons,
    .page-sports__button-group,
    .page-sports__btn-container,
    .page-sports__hero-cta-buttons,
    .page-sports__full-promo-cta,
    .page-sports__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0; /* Handled by section/container padding */
        padding-right: 0; /* Handled by section/container padding */
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column; /* Ensure vertical stacking for buttons */
    }

    /* 产品展示图区域 (features grid acts as product display) */
    .page-sports__features-grid,
    .page-sports__promotions-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-sports__promo-card img {
        height: 200px; /* Adjust height for mobile */
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-sports__article-body {
        padding: 0;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sports__article-body h3 {
        text-align: left;
        font-size: clamp(1.2em, 5vw, 1.6em);
    }
    .page-sports__article-body p {
        font-size: 0.95em;
        text-align: left;
    }
    .page-sports__figure-caption {
        font-size: 0.85em;
    }

    /* FAQ Section */
    details.page-sports__faq-item summary.page-sports__faq-question {
        padding: 15px;
    }
    .page-sports__faq-qtext {
        font-size: 15px;
    }
    .page-sports__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-sports__faq-item .page-sports__faq-answer {
        padding: 0 15px 15px;
    }
}

/* Specific for HERO image object-fit: contain on smaller screens, as per requirement */
@media (max-width: 849px) {
    .page-sports__hero-image img {
        object-fit: contain !important;
        aspect-ratio: unset !important;
    }
}