:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy-color: #08162B; /* This is the body background from shared.css */
}

.page-the-thao {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Light text for dark body background */
    background-color: var(--deep-navy-color); /* Inherited from body, but explicitly set for clarity */
}

/* 1. 顶区标题 + 双 CTA (Hero Section) */
.page-the-thao__hero-section {
    position: relative;
    padding-top: 10px; /* Specific requirement: 10px top padding */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.page-the-thao__hero-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Constrain content width */
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    gap: 20px;
    z-index: 2; /* Ensure content is above any potential background effects */
}

.page-the-thao__hero-image {
    width: 100%;
    height: auto;
    max-width: 1200px; /* Ensure image doesn't overflow */
    display: block;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 20px; /* Space between image and text */
}

.page-the-thao__text-content {
    padding: 0 20px;
    max-width: 800px;
}

.page-the-thao__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size clamp */
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

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

.page-the-thao__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Important for mobile responsiveness */
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
}

.page-the-thao__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Important for mobile responsiveness */
    min-width: 180px;
    font-size: 1rem;
}

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

.page-the-thao__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-the-thao__btn--secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-the-thao__btn--secondary:hover {
    background: var(--gold-color);
    color: var(--deep-navy-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* General Content Sections */
.page-the-thao__content-section {
    padding: 60px 0;
    background-color: var(--deep-navy-color); /* Default background, ensuring text-main contrast */
}

.page-the-thao__dark-bg {
    background-color: var(--card-bg); /* Darker background for some sections */
    color: var(--text-main);
}

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

.page-the-thao__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-the-thao__features-grid,
.page-the-thao__bet-types-grid,
.page-the-thao__promo-grid,
.page-the-thao__tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-the-thao__feature-item,
.page-the-thao__tip-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.page-the-thao__feature-title,
.page-the-thao__bet-type-title,
.page-the-thao__promo-title,
.page-the-thao__guide-title,
.page-the-thao__tip-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-the-thao__bet-type-item.page-the-thao__card,
.page-the-thao__promo-card.page-the-thao__card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-the-thao__bet-type-item p,
.page-the-thao__promo-card p,
.page-the-thao__feature-item p,
.page-the-thao__tip-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

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

.page-the-thao__guide-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-the-thao__guide-item p {
    margin-bottom: 20px;
}

.page-the-thao__btn--small {
    padding: 10px 20px;
    font-size: 0.9rem;
    align-self: flex-start; /* Align button to start */
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
}

.page-the-thao__btn--small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn--promo {
    padding: 12px 25px;
    font-size: 0.95rem;
    align-self: flex-start;
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
}

.page-the-thao__btn--promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__image-figure {
    margin: 40px auto;
    max-width: 680px;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-the-thao__content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-the-thao__image-caption {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-secondary);
    padding: 15px;
    font-size: 0.9rem;
    font-style: italic;
}

.page-the-thao__call-to-action {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: var(--text-main);
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__cta-title {
    font-size: 2.8rem;
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-the-thao__cta-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary);
}

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

/* Mobile adaptation for all images */
.page-the-thao img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile adaptation for buttons */
.page-the-thao__cta-button,
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao a[class*="button"],
.page-the-thao a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Button containers */
.page-the-thao__cta-buttons,
.page-the-thao__button-group,
.page-the-thao__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}


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

    .page-the-thao__hero-content-wrapper {
        gap: 15px;
    }

    .page-the-thao__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 10px;
    }

    .page-the-thao__description {
        font-size: 1rem;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .page-the-thao__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-the-thao__btn {
        width: 100% !important; /* Force full width for mobile buttons */
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 2. 单栏长文容器 (Generic content containers) */
    .page-the-thao__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__content-section {
        padding: 40px 0;
    }

    .page-the-thao__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .page-the-thao__feature-item,
    .page-the-thao__bet-type-item.page-the-thao__card,
    .page-the-thao__promo-card.page-the-thao__card,
    .page-the-thao__guide-item,
    .page-the-thao__tip-item {
        padding: 20px;
    }

    .page-the-thao__feature-title,
    .page-the-thao__bet-type-title,
    .page-the-thao__promo-title,
    .page-the-thao__guide-title,
    .page-the-thao__tip-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .page-the-thao__bet-type-item p,
    .page-the-thao__promo-card p,
    .page-the-thao__feature-item p,
    .page-the-thao__tip-item p {
        font-size: 0.95rem;
    }

    /* 3. 通用图片与 figure */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-the-thao__image-figure {
        margin: 20px auto;
        max-width: 100%;
        border-radius: 5px;
    }

    .page-the-thao__image-caption {
        font-size: 0.85rem;
        padding: 10px;
    }

    /* 4. 按钮与按钮容器 (already handled in top-cta and general button styles, but explicit for checklist) */
    .page-the-thao__btn--small,
    .page-the-thao__btn--promo {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* For button groups that are not simple flex-column */
    .page-the-thao__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* 5. 注册教程与 FAQ 区块 (Guide Steps is the tutorial) */
    .page-the-thao__guide-steps {
        grid-template-columns: 1fr; /* Stack guide items vertically */
    }

    .page-the-thao__guide-item {
        padding: 20px;
    }

    .page-the-thao__guide-title {
        font-size: 1.4rem;
    }

    .page-the-thao__call-to-action {
        padding: 50px 0;
    }

    .page-the-thao__cta-title {
        font-size: 2rem;
        margin-bottom: 15px;
        padding: 0 15px;
    }

    .page-the-thao__cta-description {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }
}