/* style/the-thao.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --page-bg: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Default text color for dark background */
    background-color: var(--page-bg); /* Assume body background from shared.css is dark */
}

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

.page-the-thao__light-bg {
    background-color: #1a1a1a; /* Slightly lighter dark for contrast */
    color: var(--text-main-color);
}

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

.page-the-thao__top-section {
    padding-top: 10px; /* Small top padding as body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-the-thao__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-the-thao__subtitle {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #e0e0e0;
}

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

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

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

.page-the-thao__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

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

.page-the-thao__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(255, 211, 107, 0.2);
}

.page-the-thao__btn-secondary:hover {
    background: rgba(255, 211, 107, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 211, 107, 0.4);
}

.page-the-thao__btn-tertiary {
    background-color: var(--primary-color);
    color: #111111;
    border: none;
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 5px;
    margin-top: 15px;
}

.page-the-thao__btn-tertiary:hover {
    background-color: var(--secondary-color);
    opacity: 0.9;
}

.page-the-thao__section {
    padding: 80px 0;
}

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

.page-the-thao__text-block {
    font-size: 1.05em;
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-align: center;
    color: #e0e0e0;
}

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

.page-the-thao__card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 25px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-the-thao__card-figure {
    margin: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.page-the-thao__card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-the-thao__card:hover .page-the-thao__card-img {
    transform: scale(1.05);
}

.page-the-thao__card-caption {
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.9em;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: -30px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.page-the-thao__card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin: 20px 15px 10px;
    font-weight: 600;
}

.page-the-thao__card-text {
    font-size: 0.95em;
    color: #cccccc;
    margin: 0 20px 20px;
    flex-grow: 1;
}

.page-the-thao__card-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--btn-gradient);
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.page-the-thao__card-btn:hover {
    opacity: 0.9;
}

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

.page-the-thao__feature-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-the-thao__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-the-thao__feature-description {
    font-size: 1em;
    color: #cccccc;
}

.page-the-thao__step-by-step {
    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);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-the-thao__step-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    background: rgba(255, 211, 107, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid var(--primary-color);
}

.page-the-thao__step-title {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-the-thao__step-description {
    font-size: 0.95em;
    color: #cccccc;
    flex-grow: 1;
}

.page-the-thao__content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 40px;
    align-items: flex-start;
}

.page-the-thao__content-text {
    text-align: left;
}

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

.page-the-thao__content-text p {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.page-the-thao__content-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.page-the-thao__figure {
    margin: 0;
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-the-thao__img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-the-thao__figcaption {
    padding: 15px;
    font-size: 0.9em;
    color: #cccccc;
    text-align: center;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

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

.page-the-thao__promo-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-the-thao__promo-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-the-thao__promo-description {
    font-size: 1em;
    color: #cccccc;
    flex-grow: 1;
    margin-bottom: 20px;
}

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

.page-the-thao__responsibility-list li {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.page-the-thao__responsibility-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.page-the-thao__text-link {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: 600;
}

.page-the-thao__text-link:hover {
    color: var(--primary-color);
}

/* ===================================================================== */
/* Responsive Styles */
/* ===================================================================== */

@media (max-width: 1024px) {
    .page-the-thao__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-the-thao__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }
    .page-the-thao__content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .page-the-thao__content-image {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-the-thao {
        font-size: 16px;
        line-height: 1.6;
    }

    /* 1. 顶区标题 + 双 CTA */
    .page-the-thao__top-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }
    .page-the-thao__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em) !important;
        margin-bottom: 15px;
    }
    .page-the-thao__subtitle {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 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 20px !important;
        font-size: 1em !important;
    }
    .page-the-thao__cta-buttons--center {
        padding: 0 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 {
        padding: 40px 0;
    }
    .page-the-thao__section-title {
        font-size: clamp(1.5em, 6vw, 2em) !important;
        margin-bottom: 30px;
    }
    .page-the-thao__text-block {
        font-size: 0.95em;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    .page-the-thao__grid,
    .page-the-thao__features-list,
    .page-the-thao__step-by-step,
    .page-the-thao__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    .page-the-thao__card,
    .page-the-thao__feature-item,
    .page-the-thao__step-card,
    .page-the-thao__promo-card {
        padding: 20px;
    }
    .page-the-thao__card-title {
        font-size: 1.2em;
    }
    .page-the-thao__card-text {
        font-size: 0.9em;
    }
    .page-the-thao__feature-title,
    .page-the-thao__step-title,
    .page-the-thao__promo-title {
        font-size: 1.3em;
    }
    .page-the-thao__content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-the-thao__sub-title {
        font-size: 1.4em;
    }
    .page-the-thao__responsibility-list {
        margin-top: 20px;
        padding: 0 15px;
    }

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

    /* 4. 按钮与按钮容器 (already covered in section 1 and general .page-the-thao__btn) */
    .page-the-thao__cta-buttons,
    .page-the-thao__button-group,
    .page-the-thao__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-the-thao__cta-buttons {
        flex-direction: column;
    }

    /* 5. 注册教程与 FAQ 区块 (step-by-step is the registration tutorial) */
    .page-the-thao__step-card {
        margin: 0 auto;
    }
    .page-the-thao__step-description {
        font-size: 0.9em;
    }
    /* No explicit FAQ section, assuming content follows h3 paragraphs for now */
}

@media (max-width: 480px) {
    .page-the-thao__main-title {
        font-size: clamp(1.6em, 8vw, 2.2em) !important;
    }
    .page-the-thao__section-title {
        font-size: clamp(1.4em, 7vw, 1.8em) !important;
    }
    .page-the-thao__card-img {
        
    }
    .page-the-thao__card-title {
        font-size: 1.1em;
    }
    .page-the-thao__step-number {
        font-size: 2em;
        width: 50px;
        height: 50px;
    }
}