:root {
    --color-primary: #C91F17;
    --color-secondary: #E53935;
    --color-button-gradient-start: #FFD86A;
    --color-button-gradient-end: #E6B800;
    --color-card-bg: #D32F2F;
    --color-background: #B71C1C;
    --color-text-main: #FFF5E1;
    --color-border: #F2B544;
    --color-glow: #FFCC66;
    --color-gold: #F4D34D;
    --color-deep-red: #7A0E0E;
    --header-offset: 122px; /* Default fallback, actual value from shared.css */
}

/* Base styles for the page, assuming a dark body background from shared.css */
.page-the-thao {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Prioritize custom text color for dark background */
    background-color: var(--color-background); /* Specific background for this page sections */
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

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

.page-the-thao__article-wrap {
    max-width: 900px; /* Narrower for long-form content */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
    text-align: center;
    background-color: var(--color-deep-red); /* Darker background for hero */
    position: relative;
    overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
    margin-bottom: 30px;
}

.page-the-thao__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    width: 100%; /* Ensure it takes full width of its container */
}

.page-the-thao__hero-content {
    padding: 0 20px;
}

.page-the-thao__main-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--color-gold); /* Gold for main title */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__description {
    font-size: 1.1em;
    color: var(--color-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 20px;
}

.page-the-thao__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 300px; /* Limit individual button width */
}

.page-the-thao__btn-primary {
    background: var(--color-button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-deep-red); /* Deep Red text on gold button */
    border: 2px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--color-glow);
}

.page-the-thao__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 20px var(--color-glow);
    opacity: 0.9;
}

.page-the-thao__btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-text-main);
    border: 2px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background-color: var(--color-secondary);
}

.page-the-thao__section {
    padding: 60px 0;
    background-color: var(--color-background);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-the-thao__section:last-of-type {
    border-bottom: none;
}

.page-the-thao__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-the-thao__sub-title {
    font-size: 1.6em;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 5px solid var(--color-gold);
    padding-left: 15px;
}

.page-the-thao p {
    margin-bottom: 1em;
    color: var(--color-text-main);
}

.page-the-thao strong {
    color: var(--color-gold);
}

.page-the-thao ul,
.page-the-thao ol {
    list-style-position: inside;
    margin-bottom: 1em;
    padding-left: 20px;
}

.page-the-thao li {
    margin-bottom: 0.5em;
    color: var(--color-text-main);
}

.page-the-thao__figure {
    margin: 40px auto;
    text-align: center;
    max-width: 700px; /* Limit figure width */
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    width: 100%; /* Ensure it takes full width of its container */
    min-height: 200px; /* Minimum size requirement */
}

.page-the-thao__figcaption {
    padding: 15px;
    font-style: italic;
    font-size: 0.9em;
    color: var(--color-text-main);
    background-color: var(--color-card-bg); /* Use card background for figcaption */
}

/* FAQ Section */
.page-the-thao__faq {
    background-color: var(--color-deep-red); /* Different background for FAQ */
}

.page-the-thao__faq-list {
    margin-top: 30px;
}

.page-the-thao__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-gold);
    cursor: pointer;
    position: relative;
    list-style: none; /* Remove default marker for details summary */
}

.page-the-thao__faq-question::-webkit-details-marker {
    display: none;
}

.page-the-thao__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--color-gold);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-the-thao__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--color-text-main);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-answer {
    max-height: 500px; /* Adjust as needed for content length */
    transition: max-height 0.4s ease-in;
}

.page-the-thao__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Final CTA */
.page-the-thao__final-cta {
    padding-top: 50px;
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--color-background);
}

.page-the-thao__cta-buttons--bottom {
    margin-top: 40px;
}


/* --- Responsive Styles --- */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-the-thao__container,
    .page-the-thao__article-wrap {
        padding: 0 15px;
    }

    .page-the-thao__main-title {
        font-size: 2.4em;
    }

    .page-the-thao__description {
        font-size: 1em;
    }

    .page-the-thao__section-title {
        font-size: 2em;
    }

    .page-the-thao__sub-title {
        font-size: 1.4em;
    }

    .page-the-thao__btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-the-thao__hero-image {
        width: 100%;
        height: auto;
    }

    .page-the-thao__image {
        width: 100%;
        height: auto;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. 顶区标题 + 双 CTA */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }

    .page-the-thao__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em); /* Using clamp for H1 */
        margin-bottom: 10px;
    }

    .page-the-thao__description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-the-thao__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-the-thao__btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 1em;
    }

    /* 2. 单栏长文容器 */
    .page-the-thao__article-wrap,
    .page-the-thao__section,
    .page-the-thao__intro,
    .page-the-thao__bet-types,
    .page-the-thao__reading-odds,
    .page-the-thao__strategies,
    .page-the-thao__why-choose,
    .page-the-thao__faq,
    .page-the-thao__final-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .page-the-thao__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-the-thao__sub-title {
        font-size: 1.3em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-the-thao p,
    .page-the-thao li {
        font-size: 15px;
        line-height: 1.5;
    }

    /* 3. 通用图片与 figure */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important; /* Ensure minimum size */
    }

    .page-the-thao__figure {
        margin: 25px auto;
        max-width: 100%;
    }

    .page-the-thao__figcaption {
        font-size: 0.85em;
        padding: 10px;
    }

    /* 4. 按钮与按钮容器 (already covered in top section CTA) */
    .page-the-thao__cta-buttons {
        gap: 10px;
    }
    .page-the-thao__cta-buttons--bottom {
        margin-top: 30px;
    }

    /* 5. 注册教程与 FAQ 区块 (FAQ specifics) */
    .page-the-thao__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-the-thao__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }
}

/* Ensure no email-related styles are present */
.page-the-thao a[href*="mailto"],
.page-the-thao .__cf_email__,
.page-the-thao [data-cfemail__] {
    display: none !important; /* Absolute prohibition */
}