:root {
    /* Custom Colors */
    --color-primary: #113B7A;
    --color-secondary: #1D5FD1;
    --color-text-main: #F3F8FF;
    --color-text-secondary: #AFC4E8;
    --color-card-bg: #10233F;
    --color-border: #244D84;
    --color-glow: #4FA8FF;
    --color-gold: #F2C14E;
    --color-divider: #1B3357;
    --color-deep-navy: #08162B;

    /* Button Gradient */
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-the-thao {
    background-color: transparent; /* Body background from shared.css #000 */
    color: var(--color-text-main); /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-the-thao h1,
.page-the-thao h2,
.page-the-thao h3,
.page-the-thao h4,
.page-the-thao h5,
.page-the-thao h6 {
    color: var(--color-text-main);
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--color-deep-navy); /* Dark background for hero */
}

.page-the-thao__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 15px;
    gap: 40px;
}

.page-the-thao__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: left;
}

.page-the-thao__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-gold); /* Using gold for main title for impact */
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-the-thao__description {
    font-size: 1.125rem;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}

.page-the-thao__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-the-thao__btn-primary {
    background: var(--button-gradient);
    color: var(--color-text-main);
    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);
}

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

.page-the-thao__btn-secondary:hover {
    background: var(--color-secondary);
    color: var(--color-text-main);
}

.page-the-thao__btn-tertiary {
    background: var(--color-secondary);
    color: var(--color-text-main);
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 5px;
}

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

.page-the-thao__hero-image {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-the-thao__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-the-thao__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 15px;
}

.page-the-thao__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-gold);
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-the-thao__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
    text-align: justify;
}

/* Sports Categories Section */
.page-the-thao__sports-categories {
    background-color: var(--color-card-bg); /* Darker background for contrast */
    padding-bottom: 60px;
}

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

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

.page-the-thao__category-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-the-thao__category-title {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-the-thao__category-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Advantages Section */
.page-the-thao__advantages-section {
    padding-bottom: 60px;
}

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

.page-the-thao__advantage-item {
    background-color: var(--color-primary);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-the-thao__advantage-title {
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-the-thao__advantage-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* Guide Section */
.page-the-thao__guide-section {
    background-color: var(--color-card-bg);
    padding-bottom: 60px;
}

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

.page-the-thao__guide-step {
    background-color: var(--color-primary);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.page-the-thao__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--button-gradient);
    color: var(--color-text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--color-gold);
}

.page-the-thao__step-title {
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-the-thao__step-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.page-the-thao__guide-cta {
    text-align: center;
    margin-top: 50px;
}

/* Promotion Section */
.page-the-thao__promo-section {
    padding-bottom: 60px;
}

.page-the-thao__promo-card-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(--color-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 20px;
}

.page-the-thao__promo-image {
    width: 100%;
    height: 250px; /* Consistent image height */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-the-thao__promo-title {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-the-thao__promo-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-the-thao__faq-section {
    background-color: var(--color-deep-navy);
    padding-bottom: 60px;
}

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

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

.page-the-thao__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.page-the-thao__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-the-thao__faq-qtext {
    flex-grow: 1;
}

.page-the-thao__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    transform: rotate(45deg); /* Rotate + to X */
}

.page-the-thao__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-divider);
    margin-top: -1px; /* Overlap border for clean look */
}

.page-the-thao__faq-answer p {
    margin: 0;
    padding-top: 20px;
}

/* Final CTA Section */
.page-the-thao__final-cta-section {
    padding-bottom: 80px;
    text-align: center;
}

.page-the-thao__final-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* General Image Responsiveness */
.page-the-thao img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-the-thao__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-the-thao__hero-content {
        flex: 1 1 100%;
        text-align: center;
    }
    .page-the-thao__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* HERO 双栏 */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }
    .page-the-thao__hero-container {
        padding: 30px 15px;
        gap: 30px;
    }
    .page-the-thao__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust font size for smaller screens */
    }
    .page-the-thao__description {
        font-size: 1rem;
    }
    .page-the-thao__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container */
    }
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary,
    .page-the-thao__btn-tertiary {
        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;
    }

    /* Universal image responsiveness for content area */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important; /* Ensure padding is included */
    }

    /* 教程长文 / 促销 / 信任 / FAQ / 博客 / intro 排版 */
    .page-the-thao__content-area {
        padding: 40px 15px;
    }
    .page-the-thao__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }
    .page-the-thao__text-block {
        font-size: 0.95rem;
    }

    .page-the-thao__category-grid,
    .page-the-thao__advantage-grid,
    .page-the-thao__guide-steps,
    .page-the-thao__promo-card-grid {
        grid-template-columns: 1fr; /* Stack all grids into single column */
        gap: 20px;
    }
    .page-the-thao__category-image,
    .page-the-thao__promo-image {
        height: 180px; /* Adjust height for mobile */
    }
    .page-the-thao__category-title,
    .page-the-thao__advantage-title,
    .page-the-thao__step-title,
    .page-the-thao__promo-title {
        font-size: 1.2rem;
    }
    .page-the-thao__faq-item summary {
        font-size: 1rem;
        padding: 15px;
    }
    .page-the-thao__faq-answer {
        padding: 0 15px 15px;
    }

    /* All containers that might hold images/buttons */
    .page-the-thao__hero-container,
    .page-the-thao__content-area,
    .page-the-thao__category-card,
    .page-the-thao__advantage-item,
    .page-the-thao__guide-step,
    .page-the-thao__promo-card,
    .page-the-thao__faq-item,
    .page-the-thao__final-cta-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-the-thao__final-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
}