/* style/the-thao.css */

/* Base styles for the page content */
.page-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main */
    background-color: #0D0E12; /* Background */
    padding-bottom: 40px; /* Ensure some space before footer */
}

/* Top Section (Hero-like) */
.page-the-thao__top-section {
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 40px;
    text-align: center;
    background-color: #0D0E12; /* Match body background */
    position: relative;
    overflow: hidden;
}

.page-the-thao__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2; /* Ensure text is above any background elements */
}

.page-the-thao__main-title {
    font-size: 2.8em;
    font-weight: bold;
    color: #FF8C1A; /* Main color */
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__description {
    font-size: 1.1em;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.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 to wrap */
    word-wrap: break-word; /* Ensure long words break */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    text-align: center;
}

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6; /* Text Main */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-the-thao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-the-thao__btn-secondary {
    background: transparent;
    color: #FF8C1A; /* Main color */
    border: 2px solid #A84F0C; /* Border color */
}

.page-the-thao__btn-secondary:hover {
    background-color: rgba(255, 140, 26, 0.1);
    transform: translateY(-2px);
}

.page-the-thao__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Place behind text */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-the-thao__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1; /* Subtle background */
    filter: brightness(0.7); /* Darken for contrast, no color change */
}

/* Article Wrap (for main content) */
.page-the-thao__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

/* General Section Styling */
.page-the-thao__section {
    padding: 40px 0;
    background-color: #0D0E12; /* Consistent dark background */
}

.page-the-thao__section:nth-of-type(even) {
    background-color: #17191F; /* Card BG for alternating sections */
}

.page-the-thao__section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: #FF8C1A; /* Main color */
    margin-bottom: 25px;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__sub-title {
    font-size: 1.6em;
    font-weight: bold;
    color: #FFA53A; /* Accent color */
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
}

.page-the-thao__text-block {
    font-size: 1.05em;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 1em;
    text-align: justify;
}

/* Images and Figures */
.page-the-thao__figure {
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-the-thao__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.page-the-thao__figcaption {
    font-size: 0.9em;
    color: #A84F0C; /* Border color for caption */
    margin-top: 10px;
    text-align: center;
}

/* Lists */
.page-the-thao__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #FFF3E6; /* Text Main */
}

.page-the-thao__list-item {
    margin-bottom: 8px;
    font-size: 1.05em;
    color: #FFF3E6; /* Text Main */
}

.page-the-thao__list-item strong {
    color: #FFA53A; /* Accent color for strong text in lists */
}

/* Conclusion Section specific styles */
.page-the-thao__conclusion-section {
    padding-top: 50px;
    padding-bottom: 50px;
    text-align: center;
    background-color: #17191F; /* Card BG */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__main-title {
        font-size: 2.4em;
    }
    .page-the-thao__section-title {
        font-size: 2em;
    }
    .page-the-thao__sub-title {
        font-size: 1.4em;
    }
}

/* Mobile responsive styles - @media (max-width: 768px)必写清单 */
@media (max-width: 768px) {
    /* 1. 顶区标题 + 双 CTA */
    .page-the-thao__top-section {
        padding-top: 10px !important; /* Small top padding, assuming body handles header offset */
        padding-bottom: 30px;
    }

    .page-the-thao__main-title {
        font-size: 1.8em; /* Adjusted H1 font size for mobile */
        margin-bottom: 10px;
        padding: 0 10px; /* Add some padding to prevent text touching edges */
    }

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

    .page-the-thao__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px; /* Reduced gap */
        padding: 0 15px; /* Add padding to container */
        width: 100% !important; /* Ensure container takes full width */
        max-width: 100% !important; /* Ensure container takes full width */
        box-sizing: border-box !important;
    }

    /* 4. 按钮与按钮容器 */
    .page-the-thao__btn {
        max-width: 100% !important; /* Force full width for buttons */
        width: 100% !important; /* Force full width for buttons */
        box-sizing: border-box !important;
        white-space: normal !important; /* Allow text wrapping */
        word-wrap: break-word !important; /* Ensure long words break */
        padding: 12px 15px;
    }

    /* 2. 单栏长文容器 */
    .page-the-thao__article-wrap {
        padding: 0 15px !important; /* Adjusted padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__section-title {
        font-size: 1.6em;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .page-the-thao__sub-title {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 10px;
        padding: 0 5px;
    }

    .page-the-thao__text-block,
    .page-the-thao__list-item {
        font-size: 0.95em;
        padding: 0 5px;
        text-align: left;
    }

    /* 3. 通用图片与 figure */
    .page-the-thao__figure {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 5px;
    }

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

    .page-the-thao__figcaption {
        font-size: 0.8em;
        padding: 0 5px;
    }

    .page-the-thao__list {
        margin-left: 20px;
        padding: 0 5px;
    }

    /* 5. 注册教程与 FAQ 区块 (General text readability for mobile, covered by existing rules) */
    .page-the-thao__section {
        padding: 30px 0;
    }
}