.page-the-thao {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #FFF6D6); /* Default text color for dark background */
    background-color: var(--background-color, #0A0A0A); /* Inherit from shared or use default dark */
}

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

.page-the-thao__intro-section {
    padding-top: 10px; /* Small top padding as per common rules */
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--background-color, #0A0A0A);
    color: var(--text-main-color, #FFF6D6);
}

.page-the-thao__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--text-main-color, #FFF6D6);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.4);
}

.page-the-thao__description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

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

.page-the-thao__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
}

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-the-thao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-the-thao__btn-secondary {
    background: #111111;
    color: #F2C14E;
    border: 2px solid #3A2A12;
}

.page-the-thao__btn-secondary:hover {
    background: #222222;
    color: #FFD36B;
    border-color: #FFD36B;
    transform: translateY(-2px);
}

.page-the-thao__content-section {
    padding: 60px 0;
    background-color: var(--background-color, #0A0A0A);
    color: var(--text-main-color, #FFF6D6);
}

.page-the-thao__dark-section {
    background-color: var(--background-color, #0A0A0A);
    color: var(--text-main-color, #FFF6D6);
}

.page-the-thao__light-bg {
    background-color: #f8f8f8;
    color: #333333;
}

.page-the-thao__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    color: var(--glow-color, #FFD36B);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-the-thao__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD36B, transparent);
    margin: 15px auto 0;
}

.page-the-thao__sub-title {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    font-weight: 600;
    color: var(--text-main-color, #FFF6D6);
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-the-thao__light-bg .page-the-thao__sub-title {
    color: #333333;
}

.page-the-thao__text-block {
    font-size: 1.05em;
    margin-bottom: 15px;
    line-height: 1.7;
    color: #f0f0f0;
}

.page-the-thao__light-bg .page-the-thao__text-block {
    color: #444444;
}

.page-the-thao__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-the-thao__light-bg .page-the-thao__list {
    color: #444444;
}

.page-the-thao__list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-the-thao__figure {
    margin: 40px auto;
    text-align: center;
    max-width: 680px;
    background-color: var(--card-bg-color, #111111);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color, #3A2A12);
}

.page-the-thao__figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--border-color, #3A2A12);
}

.page-the-thao__figcaption {
    font-style: italic;
    font-size: 0.9em;
    color: #bbb;
    padding: 10px 15px;
}

.page-the-thao__how-to-play-section {
    padding: 60px 0;
    text-align: center;
}

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

.page-the-thao__step-card {
    background-color: var(--card-bg-color, #111111);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color, #3A2A12);
}

.page-the-thao__step-title {
    font-size: 1.4em;
    color: #FFD36B;
    margin-bottom: 15px;
}

.page-the-thao__step-description {
    font-size: 1em;
    color: #ccc;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-the-thao__promo-section {
    padding: 60px 0;
    text-align: center;
}

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

.page-the-thao__promo-card {
    background-color: var(--card-bg-color, #111111);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: left;
    border: 1px solid var(--border-color, #3A2A12);
}

.page-the-thao__promo-title {
    font-size: 1.4em;
    color: #FFD36B;
    margin-bottom: 15px;
}

.page-the-thao__promo-description {
    font-size: 1em;
    color: #ccc;
    line-height: 1.6;
}

.page-the-thao__responsible-gaming-section {
    padding: 60px 0;
    text-align: center;
}

.page-the-thao__faq-section {
    padding: 60px 0;
}

.page-the-thao__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.page-the-thao__faq-item {
    background-color: var(--card-bg-color, #111111);
    border: 1px solid var(--border-color, #3A2A12);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF6D6;
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    color: #FFD36B;
    background-color: #1a1a1a;
    position: relative;
    list-style: none; /* For details/summary */
}

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

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
    border-bottom: 1px solid var(--border-color, #3A2A12);
}

.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: 15px 25px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: #ccc;
    background-color: var(--card-bg-color, #111111);
}

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

.page-the-thao a {
    color: #FFD36B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-the-thao a:hover {
    color: #F2C14E;
    text-decoration: underline;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-the-thao__container {
        padding: 0 25px;
    }

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

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

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

    .page-the-thao__steps-grid,
    .page-the-thao__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .page-the-thao__main-title {
        font-size: clamp(1.8em, 7vw, 2.8em);
        margin-bottom: 15px;
    }

    .page-the-thao__description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .page-the-thao__btn {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
    }

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

    .page-the-thao__content-section,
    .page-the-thao__strategy-section,
    .page-the-thao__how-to-play-section,
    .page-the-thao__promo-section,
    .page-the-thao__responsible-gaming-section,
    .page-the-thao__faq-section {
        padding: 40px 0;
    }

    .page-the-thao__section-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
        margin-bottom: 30px;
    }

    .page-the-thao__sub-title {
        font-size: clamp(1.2em, 4.5vw, 1.6em);
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .page-the-thao__text-block,
    .page-the-thao__list li,
    .page-the-thao__figcaption,
    .page-the-thao__step-description,
    .page-the-thao__promo-description,
    .page-the-thao__faq-answer p {
        font-size: 1em;
    }

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

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

    .page-the-thao__figure {
        margin: 30px auto;
        box-shadow: none;
        border-radius: 0;
    }

    /* 4. 按钮与按钮容器 */
    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-the-thao__steps-grid,
    .page-the-thao__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-the-thao__step-card,
    .page-the-thao__promo-card {
        padding: 25px;
    }

    /* 5. 注册教程与 FAQ 区块 */
    .page-the-thao__step-title {
        font-size: 1.2em;
    }

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

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

    .page-the-thao__faq-toggle {
        font-size: 1.2em;
    }

    .page-the-thao__faq-answer {
        padding: 10px 20px 15px;
    }
}