/* style/the-thao.css */

:root {
    --color-primary: #C61F1F;
    --color-secondary: #E53030;
    --color-button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --color-card-bg: #2A1212;
    --color-background: #140C0C;
    --color-text-main: #FFF1E8;
    --color-border: #6A1E1E;
    --color-gold: #F3C54D;
    --color-deep-red: #7E0D0D;
    --text-color-dark-bg: #FFF1E8;
    --text-color-light-bg: #333333;
}

.page-the-thao {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    background-color: var(--color-background); /* Body background from shared.css, but setting a fallback for consistency */
    line-height: 1.6;
    font-size: 1rem;
}

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

.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
    background-color: var(--color-background);
    color: var(--text-color-dark-bg);
}

.page-the-thao__dark-bg {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-the-thao__card-bg {
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
}

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

.page-the-thao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-the-thao__hero-content {
    text-align: center;
    padding-bottom: 40px;
}

.page-the-thao__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Using clamp for responsive H1 */
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-the-thao__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.page-the-thao__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1em;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-the-thao__btn-primary {
    background: var(--color-button-gradient);
    color: #ffffff;
    border: 2px solid var(--color-gold);
    box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-the-thao__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-the-thao__btn-secondary {
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    box-shadow: 0 4px 10px rgba(243, 197, 77, 0.2);
}

.page-the-thao__btn-secondary:hover {
    background-color: rgba(243, 197, 77, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(243, 197, 77, 0.4);
}

.page-the-thao__section {
    padding: 60px 0;
    margin-bottom: 0;
}

.page-the-thao__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-the-thao__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    line-height: 1.7;
    opacity: 0.85;
}

.page-the-thao__image-wrapper {
    margin: 40px auto;
    text-align: center;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-the-thao__content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-the-thao__image-caption {
    font-size: 0.9em;
    color: var(--color-text-main);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px 15px;
    text-align: center;
    opacity: 0.7;
}

.page-the-thao__list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

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

.page-the-thao__list-title {
    font-size: 1.4em;
    color: var(--color-gold);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-the-thao__list-item p {
    font-size: 1em;
    line-height: 1.6;
    opacity: 0.85;
}

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

.page-the-thao__info-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-the-thao__info-card:hover {
    transform: translateY(-5px);
}

.page-the-thao__card-title {
    font-size: 1.5em;
    color: var(--color-gold);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-the-thao__info-card p {
    font-size: 1em;
    line-height: 1.6;
    opacity: 0.85;
}

.page-the-thao__numbered-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    counter-reset: step-counter;
}

.page-the-thao__numbered-list .page-the-thao__list-item {
    position: relative;
    padding-left: 50px;
    text-align: left;
}

.page-the-thao__numbered-list .page-the-thao__list-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 20px;
    background: var(--color-gold);
    color: var(--color-background);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-the-thao__promo-list .page-the-thao__list-item {
    text-align: left;
}

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

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

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-gold);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-the-thao__faq-question:hover {
    background-color: rgba(243, 197, 77, 0.1);
}

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    transform: rotate(45deg);
}

.page-the-thao__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    opacity: 0.85;
}

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

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

@media (max-width: 1024px) {
    .page-the-thao__container {
        padding: 0 20px;
    }

    .page-the-thao__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-the-thao__section-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }

    .page-the-thao__grid-layout {
        gap: 20px;
    }

    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        min-width: unset;
        padding: 12px 25px;
        font-size: 1em;
    }
}

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

    .page-the-thao__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em) !important;
        margin-bottom: 10px;
    }

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

    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        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;
    }

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

    .page-the-thao__section-title {
        font-size: clamp(1.5em, 5vw, 2em) !important;
        margin-bottom: 30px;
    }

    .page-the-thao__text-block {
        font-size: 0.95em;
    }

    .page-the-thao__list-item,
    .page-the-thao__info-card {
        padding: 20px;
    }

    .page-the-thao__list-title,
    .page-the-thao__card-title {
        font-size: 1.3em;
    }

    .page-the-thao__grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 3. 通用图片与 figure */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-the-thao__image-wrapper {
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 0;
        box-shadow: none;
    }

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

    /* 4. 按钮与按钮容器 - Already handled in top-section's cta-buttons */

    /* 5. 注册教程与 FAQ 区块 */
    .page-the-thao__numbered-list .page-the-thao__list-item {
        padding-left: 45px;
    }

    .page-the-thao__numbered-list .page-the-thao__list-item::before {
        width: 30px;
        height: 30px;
        font-size: 1.1em;
        top: 15px;
    }

    .page-the-thao__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

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