/* style/ththao.css */
:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --text-main-color: #FFF5E1;
    --card-bg-color: #D32F2F;
    --background-section-color: #B71C1C;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red-color: #7A0E0E;
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
}

.page-ththao {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color);
    background-color: var(--background-section-color);
}

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

/* Hero Section */
.page-ththao__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
}

.page-ththao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-ththao__hero-content {
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay for text readability */
    border-radius: 8px;
    margin-top: -80px; /* Overlap slightly with image for visual flow */
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}

.page-ththao__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--gold-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 204, 102, 0.7);
}

.page-ththao__lead-text {
    font-size: 1.1rem;
    color: var(--light-text-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-ththao__btn-primary {
    background: var(--button-gradient);
    color: var(--deep-red-color);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-ththao__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
    opacity: 0.9;
}

.page-ththao__btn-secondary {
    background: var(--deep-red-color);
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 15px rgba(201, 31, 23, 0.4);
}

.page-ththao__btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--gold-color);
    color: var(--deep-red-color);
    box-shadow: 0 6px 20px rgba(201, 31, 23, 0.6);
}

.page-ththao__btn-tertiary {
    background: var(--gold-color);
    color: var(--deep-red-color);
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 5px;
}

.page-ththao__btn-tertiary:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* General Section Styling */
.page-ththao__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 204, 102, 0.5);
}

.page-ththao__section-description {
    font-size: 1.1rem;
    color: var(--light-text-color);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

.page-ththao__introduction-section,
.page-ththao__sports-types-section,
.page-ththao__bet-types-section,
.page-ththao__advantages-section,
.page-ththao__guide-section,
.page-ththao__tips-section,
.page-ththao__promotions-section,
.page-ththao__faq-section,
.page-ththao__cta-section {
    padding: 60px 0;
    position: relative;
}

.page-ththao__dark-section {
    background-color: var(--deep-red-color);
    color: var(--light-text-color);
}

/* Card Styling */
.page-ththao__card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-main-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ththao__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Sports Types Section */
.page-ththao__sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-ththao__sport-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-ththao__sport-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--gold-color);
}

.page-ththao__sport-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-ththao__sport-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text-color);
}

/* Bet Types Section */
.page-ththao__bet-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.page-ththao__bet-card {
    text-align: center;
}

.page-ththao__bet-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-ththao__bet-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text-color);
}

/* Advantages Section */
.page-ththao__advantages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-ththao__advantage-item {
    text-align: center;
}

.page-ththao__advantage-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-ththao__advantage-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text-color);
}

/* Guide Section */
.page-ththao__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-ththao__guide-step {
    text-align: center;
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-ththao__guide-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid var(--gold-color);
}

.page-ththao__guide-title {
    font-size: 1.6rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-ththao__guide-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text-color);
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Tips Section */
.page-ththao__tips-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-ththao__tip-item {
    text-align: left;
}

.page-ththao__tip-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-ththao__tip-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text-color);
}

/* Promotions Section */
.page-ththao__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-ththao__promo-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-ththao__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--gold-color);
}

.page-ththao__promo-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-ththao__promo-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text-color);
    flex-grow: 1;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-ththao__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-color);
    cursor: pointer;
    background-color: var(--deep-red-color);
    border-bottom: 1px solid var(--border-color);
    list-style: none;
    position: relative;
}

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

.page-ththao__faq-question::marker {
    display: none;
}

.page-ththao__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-ththao__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 15px;
    color: var(--gold-color);
}

.page-ththao__faq-answer {
    padding: 15px 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text-color);
    background-color: var(--card-bg-color);
}

.page-ththao__faq-answer p {
    margin: 0;
}

/* Ensure details toggle updates icon */
details[open] > .page-ththao__faq-question .page-ththao__faq-toggle {
    content: '−';
}

/* CTA Section */
.page-ththao__cta-section {
    text-align: center;
    padding-bottom: 80px;
}

/* Responsive Design - Desktop (1024px) */
@media (max-width: 1024px) {
    .page-ththao__container {
        padding: 15px;
    }

    .page-ththao__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }

    .page-ththao__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-ththao__lead-text {
        font-size: 1rem;
    }

    .page-ththao__section-title {
        font-size: 2rem;
    }

    .page-ththao__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-ththao__sports-grid,
    .page-ththao__bet-types-grid,
    .page-ththao__advantages-list,
    .page-ththao__guide-steps,
    .page-ththao__tips-list,
    .page-ththao__promotions-grid {
        gap: 20px;
    }

    .page-ththao__btn-primary,
    .page-ththao__btn-secondary,
    .page-ththao__btn-tertiary {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

/* Responsive Design - Mobile (768px) */
@media (max-width: 768px) {
    /* 1. HERO主图区域 */
    .page-ththao__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 30px;
    }

    .page-ththao__hero-image-wrapper {
        max-height: 400px;
    }

    .page-ththao__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
        border-radius: 5px;
    }

    .page-ththao__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-ththao__lead-text {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .page-ththao__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    /* 2. 产品展示图区域 (Sports Types Section) */
    .page-ththao__sports-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ththao__sport-image {
        height: 180px;
    }

    /* 3. 通用图片与容器 */
    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-ththao__section,
    .page-ththao__card,
    .page-ththao__container,
    .page-ththao__guide-step,
    .page-ththao__promo-card,
    .page-ththao__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 4. 按钮与按钮容器 */
    .page-ththao__btn-primary,
    .page-ththao__btn-secondary,
    .page-ththao__btn-tertiary,
    .page-ththao a[class*="button"],
    .page-ththao a[class*="btn"] {
        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;
    }
    
    .page-ththao__cta-buttons,
    .page-ththao__button-group,
    .page-ththao__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;
        flex-direction: column; /* Ensure buttons stack vertically */
    }

    /* 5. 其他内容模块 */
    .page-ththao__introduction-section,
    .page-ththao__sports-types-section,
    .page-ththao__bet-types-section,
    .page-ththao__advantages-section,
    .page-ththao__guide-section,
    .page-ththao__tips-section,
    .page-ththao__promotions-section,
    .page-ththao__faq-section,
    .page-ththao__cta-section {
        padding: 40px 0;
    }

    .page-ththao__section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .page-ththao__section-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .page-ththao__card {
        padding: 20px;
    }

    .page-ththao__sport-title,
    .page-ththao__bet-title,
    .page-ththao__advantage-title,
    .page-ththao__guide-title,
    .page-ththao__tip-title,
    .page-ththao__promo-title {
        font-size: 1.3rem;
    }

    .page-ththao__sport-text,
    .page-ththao__bet-text,
    .page-ththao__advantage-text,
    .page-ththao__guide-text,
    .page-ththao__tip-text,
    .page-ththao__promo-text {
        font-size: 0.9rem;
    }

    .page-ththao__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-ththao__faq-answer {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .page-ththao__bet-types-grid,
    .page-ththao__advantages-list,
    .page-ththao__guide-steps,
    .page-ththao__tips-list,
    .page-ththao__promotions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}