/* style/sports.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General page styling for dark background */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-sports__section-title {
    font-size: 2.5rem;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px; /* Default padding, header-offset handled below */
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4; /* Make image less prominent for text readability */
    filter: none; /* No CSS filter to change image color */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-sports__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text */
    border-radius: 10px;
}

.page-sports__hero-title {
    font-size: 3.5rem;
    color: #FFFFFF; /* White text for contrast */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-sports__hero-description {
    font-size: 1.3rem;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-sports__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports a[class*="button"],
.page-sports a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure buttons adapt to screen width */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    text-align: center; /* Center button text */
    min-width: 200px; /* Example minimum width for buttons, can be adjusted */
}

.page-sports__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-sports__btn-primary:hover {
    background-color: #1a7eb3;
    border-color: #1a7eb3;
}

.page-sports__btn-secondary {
    background-color: transparent;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
}

.page-sports__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-sports__btn-text {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-sports__btn-text:hover {
    color: #1a7eb3;
}

.page-sports__arrow {
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.page-sports__btn-text:hover .page-sports__arrow {
    margin-left: 10px;
}

/* Card Styling */
.page-sports__card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* White text on card */
}

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

.page-sports__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* No CSS filter to change image color */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-sports__card-title {
    font-size: 1.8rem;
    color: #26A9E0; /* Brand color for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__card-text {
    font-size: 1rem;
    color: #f0f0f0;
}

/* Intro Video Section */
.page-sports__intro-video-section {
    padding: 80px 20px;
    background-color: #0d0d0d; /* Slightly lighter dark background for this section */
    text-align: center;
}

.page-sports__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-sports__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer; /* Indicate video is clickable */
    filter: none; /* No CSS filter to change video color */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-sports__video-link {
    display: block;
    width: 100%;
    height: 100%;
}

.page-sports__video-caption {
    font-size: 0.95rem;
    color: #cccccc;
    margin-top: 15px;
}

/* Features Section */
.page-sports__features-section {
    padding: 80px 20px;
    background-color: #1a1a1a; /* Another dark background shade */
}

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

/* Sports Categories Section */
.page-sports__sports-categories {
    padding: 80px 20px;
    background-color: #000000; /* Darker background */
}

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

.page-sports__category-item {
    background-color: rgba(38, 169, 224, 0.1); /* Transparent brand color background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(38, 169, 224, 0.3);
}

.page-sports__category-item:hover {
    background-color: rgba(38, 169, 224, 0.2);
}

.page-sports__category-title {
    font-size: 1.6rem;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__category-text {
    font-size: 1rem;
    color: #e0e0e0;
}

/* Guide Section */
.page-sports__guide-section {
    padding: 80px 20px;
    background-color: #1a1a1a;
}

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

.page-sports__step-card {
    text-align: center;
}

.page-sports__step-card a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-sports__step-card a:hover {
    color: #1a7eb3;
}

.page-sports__step-title {
    font-size: 2rem;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__step-text {
    font-size: 1rem;
    color: #f0f0f0;
}

.page-sports__guide-cta {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 80px 20px;
    background-color: #0d0d0d;
}

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

.page-sports__promo-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__promo-card .page-sports__card-title {
    color: #FFFFFF;
}

.page-sports__promo-cta {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 80px 20px;
    background-color: #1a1a1a;
}

.page-sports__faq-list {
    margin-top: 40px;
}

.page-sports__faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for FAQ items */
}

.page-sports__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    outline: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFFFFF;
    background-color: rgba(38, 169, 224, 0.1); /* Brand color highlight for summary */
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.page-sports__faq-item summary:hover {
    background-color: rgba(38, 169, 224, 0.2);
}

.page-sports__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-sports__faq-item summary::marker {
    display: none;
}

.page-sports__faq-qtext {
    flex-grow: 1;
    color: #FFFFFF;
}

.page-sports__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 20px;
    color: #26A9E0;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    content: '−';
}

.page-sports__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.03); /* Even lighter background for answer content */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-sports__faq-answer p {
    margin-bottom: 10px;
}
.page-sports__faq-answer p:last-child {
    margin-bottom: 0;
}


/* CTA Section */
.page-sports__cta-section {
    padding: 80px 20px;
    background-color: #000000;
    text-align: center;
}

.page-sports__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Dark and Light Backgrounds for contrast - used for sections */
.page-sports__dark-bg {
    background-color: #000000;
    color: #ffffff;
}

.page-sports__light-bg {
    background-color: #1a1a1a;
    color: #ffffff;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3rem;
    }
    .page-sports__hero-description {
        font-size: 1.1rem;
    }
    .page-sports__section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* Fixed header offset for mobile */
    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* General mobile container padding */
    .page-sports__container,
    .page-sports__hero-section,
    .page-sports__intro-video-section,
    .page-sports__features-section,
    .page-sports__sports-categories,
    .page-sports__guide-section,
    .page-sports__promotions-section,
    .page-sports__faq-section,
    .page-sports__cta-section {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-sports__hero-title {
        font-size: 2.2rem;
    }
    .page-sports__hero-description {
        font-size: 1rem;
    }
    .page-sports__section-title {
        font-size: 1.8rem;
    }
    .page-sports__section-description {
        font-size: 0.9rem;
    }

    /* Image responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure width 100% for images within containers */
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }

    /* Video responsiveness */
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Button responsiveness */
    .page-sports__hero-buttons,
    .page-sports__guide-cta,
    .page-sports__promo-cta,
    .page-sports__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !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; /* Add some padding for text within buttons */
        padding-right: 15px;
        min-width: unset !important; /* Remove minimum width for mobile buttons */
    }

    .page-sports__card-image {
        height: 200px; /* Adjust card image height for mobile */
    }

    .page-sports__card-title {
        font-size: 1.5rem;
    }

    .page-sports__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-sports__faq-toggle {
        font-size: 1.5rem;
    }
    .page-sports__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8rem;
    }
    .page-sports__section-title {
        font-size: 1.5rem;
    }
    .page-sports__card-title {
        font-size: 1.3rem;
    }
}

/* Colors from custom palette */
.page-sports__login-color { color: #EA7C07; }
.page-sports__bg-color { background-color: #FFFFFF; } /* Note: this is for elements, not body */
.page-sports__text-color-black { color: #000000; }