/* Base styles for the Thể Thao page */
.page-the-thao {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light background */
    background-color: #F5F7FA; /* Custom background color */
}

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

.page-the-thao__section {
    padding: 60px 0;
    position: relative;
}

.page-the-thao__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #E53935; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-the-thao__text-block {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.page-the-thao__keyword-highlight {
    font-weight: bold;
    color: #E53935;
}

/* Hero Section */
.page-the-thao__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, not --header-offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #F5F7FA;
    overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-the-thao__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-the-thao__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #E53935; /* Brand color */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-the-thao__subtitle {
    font-size: 18px;
    color: #333333;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-the-thao__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
    transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-secondary:hover {
    background: #E53935;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
    transform: translateY(-2px);
}

.page-the-thao__btn-large {
    padding: 18px 35px;
    font-size: 20px;
}

/* Introduction Section */
.page-the-thao__introduction-section .page-the-thao__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-the-thao__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Bet Types Section */
.page-the-thao__bet-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-the-thao__card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-the-thao__card-title {
    font-size: 22px;
    font-weight: 600;
    color: #E53935;
    margin-bottom: 15px;
}

.page-the-thao__card-text {
    font-size: 15px;
    line-height: 1.7;
    color: #333333;
}

/* Guide Section */
.page-the-thao__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-the-thao__guide-item {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.page-the-thao__guide-step-title {
    font-size: 20px;
    font-weight: 600;
    color: #E53935;
    margin-bottom: 10px;
}

.page-the-thao__guide-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 15px;
}

.page-the-thao__guide-item .page-the-thao__btn-secondary {
    font-size: 16px;
    padding: 10px 20px;
}

/* Advantages Section (Dark Background) */
.page-the-thao__dark-section {
    background: #E53935;
    color: #ffffff; /* White text for dark background */
}

.page-the-thao__dark-section .page-the-thao__section-title {
    color: #ffffff;
}

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

.page-the-thao__advantage-card {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards on dark bg */
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.page-the-thao__advantage-card .page-the-thao__card-title {
    color: #ffffff;
}

.page-the-thao__advantage-card .page-the-thao__card-text {
    color: #f0f0f0;
}

/* Promotions Section */
.page-the-thao__promotion-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-the-thao__promotion-item {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.page-the-thao__promotion-title {
    font-size: 20px;
    font-weight: 600;
    color: #E53935;
    margin-bottom: 10px;
}

.page-the-thao__promotion-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
}

/* FAQ Section */
details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question::-webkit-details-marker {
  display: none;
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question:hover {
  background: #f5f5f5;
}
.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* CTA Section */
.page-the-thao__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-the-thao__cta-content {
    max-width: 800px;
}

.page-the-thao__cta-section .page-the-thao__section-title {
    color: #ffffff;
    margin-bottom: 30px;
}

.page-the-thao__cta-section .page-the-thao__text-block {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-the-thao__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__container {
        padding: 20px 30px;
    }
    .page-the-thao__section-title {
        font-size: 32px;
    }
    .page-the-thao__main-title {
        font-size: clamp(2.2rem, 4.5vw, 3rem);
    }
    .page-the-thao__btn-primary, .page-the-thao__btn-secondary {
        font-size: 16px;
        padding: 12px 25px;
    }
    .page-the-thao__btn-large {
        font-size: 18px;
        padding: 15px 30px;
    }
    .page-the-thao__hero-image-wrapper {
        max-height: 500px;
    }
    .page-the-thao__bet-type-grid, .page-the-thao__advantage-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-the-thao__hero-section {
        padding-top: 10px;
        padding-bottom: 40px;
    }
    .page-the-thao__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }
    .page-the-thao__hero-image {
        object-fit: contain !important; /* Mobile: prevent cropping */
        aspect-ratio: unset !important;
    }
    .page-the-thao__hero-content {
        padding: 0 15px;
    }
    .page-the-thao__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-the-thao__subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }

    /* 通用图片与容器 */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container,
    .page-the-thao__hero-section,
    .page-the-thao__introduction-section,
    .page-the-thao__bet-types-section,
    .page-the-thao__guide-section,
    .page-the-thao__advantages-section,
    .page-the-thao__promotions-section,
    .page-the-thao__faq-section,
    .page-the-thao__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-the-thao__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-the-thao__text-block {
        font-size: 15px;
        line-height: 1.7;
        text-align: left;
    }

    /* 产品展示图区域 (General grid adaptation) */
    .page-the-thao__bet-type-grid,
    .page-the-thao__advantage-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
        overflow-x: hidden;
    }

    /* 按钮与按钮容器 */
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary,
    .page-the-thao a[class*="button"],
    .page-the-thao 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-the-thao__button-group {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-the-thao__guide-item .page-the-thao__btn-secondary {
        width: auto !important; /* Allow smaller width for inline buttons in list */
        max-width: unset !important;
    }

    /* FAQ */
    details.page-the-thao__faq-item summary.page-the-thao__faq-question { padding: 15px; }
    .page-the-thao__faq-qtext { font-size: 15px; }
    details.page-the-thao__faq-item .page-the-thao__faq-answer { padding: 0 15px 15px; }

    /* Sections */
    .page-the-thao__section {
        padding: 40px 0;
    }
    .page-the-thao__card {
        padding: 20px;
    }
    .page-the-thao__card-title {
        font-size: 20px;
    }
    .page-the-thao__guide-item {
        padding: 20px;
    }
    .page-the-thao__guide-step-title {
        font-size: 18px;
    }
    .page-the-thao__promotion-item {
        padding: 20px;
    }
    .page-the-thao__promotion-title {
        font-size: 18px;
    }
    .page-the-thao__cta-section {
        padding: 60px 0;
    }
}

/* Ensure contrast for dark background elements */
.page-the-thao__dark-bg {
  color: #ffffff; /* Deep contrast for dark background */
  background: #E53935; /* Using brand color for dark bg */
}

.page-the-thao__light-bg {
  color: #333333; /* Deep contrast for light background */
  background: #ffffff;
}

.page-the-thao__medium-bg {
  color: #000000; /* Default to dark text for medium brightness */
  background: #FF5A4F;
}

/* Contrast for main content and cards */
.page-the-thao__content-area,
.page-the-thao__text-block {
  color: #333333; /* Standard text color */
}

.page-the-thao__card {
  background: #ffffff; /* Default white card background */
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-the-thao__dark-section {
  background: #E53935;
  color: #ffffff;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-the-thao__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

/* Contrast fix classes (if needed, though design should prevent) */
.page-the-thao__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-the-thao__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}