.page-the-thao {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  background-color: #F5F7FA; /* Default page background */
}

.page-the-thao__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

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

.page-the-thao__section-title {
  font-size: 2.5em;
  color: #E53935;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-the-thao__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  margin-bottom: 40px;
  background-color: #ffffff;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  height: auto;
  display: block;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-the-thao__hero-content-wrapper {
  max-width: 1000px;
  margin: 30px auto 0 auto; /* Content below image */
  text-align: center;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-the-thao__main-title {
  font-size: clamp(2em, 5vw, 3em); /* H1 font size with clamp */
  color: #E53935;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  max-width: 100%; /* Ensure H1 doesn't cause overflow */
  word-wrap: break-word;
}

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

/* Buttons */
.page-the-thao__btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.1em;
  text-align: center;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
  max-width: 100%; /* Crucial for mobile responsiveness */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

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

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-the-thao__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

.page-the-thao__btn-large {
  padding: 15px 40px;
  font-size: 1.2em;
}

/* Introduction Section */
.page-the-thao__introduction-section {
  background-color: #F5F7FA; /* Background color */
  padding-bottom: 60px;
}

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

.page-the-thao__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-the-thao__feature-title {
  font-size: 1.5em;
  color: #E53935;
  margin-bottom: 15px;
}

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

/* Sports Overview Section */
.page-the-thao__sports-overview {
  background-color: #ffffff;
}

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

.page-the-thao__sport-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  border: 1px solid #E0E0E0;
}

.page-the-thao__sport-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Minimum size requirement */
}

.page-the-thao__sport-title {
  font-size: 1.4em;
  color: #E53935;
  margin: 15px 0 10px;
  padding: 0 15px;
}

.page-the-thao__sport-description {
  font-size: 0.95em;
  color: #333333;
  padding: 0 15px 20px;
}

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

/* Live Betting & Promotions Sections (Flex container) */
.page-the-thao__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-the-thao__flex-container--reverse {
  flex-direction: row-reverse;
}

.page-the-thao__content-block {
  flex: 1;
  min-width: 0; /* Allow content to shrink */
}

.page-the-thao__image-block {
  flex: 1;
  min-width: 0; /* Allow image to shrink */
  text-align: center;
}

.page-the-thao__image-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  min-height: 200px; /* Minimum size requirement */
}

.page-the-thao__feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px;
  text-align: left;
}

.page-the-thao__feature-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #333333;
}

.page-the-thao__list-icon {
  color: #E53935;
  margin-right: 10px;
  font-weight: bold;
}

/* Promotions Section specific */
.page-the-thao__promotions-section {
  background-color: #F5F7FA; /* Background color */
}

/* Mobile App Section specific */
.page-the-thao__mobile-app-section {
  background-color: #ffffff;
}

/* FAQ Section */
.page-the-thao__faq-section {
  background-color: #F5F7FA; /* Background color */
}

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

.page-the-thao__faq-item {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-the-thao__faq-question {
  padding: 20px;
  font-size: 1.2em;
  color: #E53935;
  cursor: pointer;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.page-the-thao__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #333333;
}

.page-the-thao__faq-answer p {
  margin-bottom: 15px;
  text-align: left;
}

.page-the-thao__faq-btn {
  margin-top: 10px;
  font-size: 0.9em;
  padding: 8px 20px;
}

/* Final CTA Section */
.page-the-thao__cta-final-section {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

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

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

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

  .page-the-thao__section {
    padding: 20px 0;
    margin-bottom: 10px;
  }

  .page-the-thao__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    margin-bottom: 20px;
  }

  .page-the-thao__hero-content-wrapper {
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em); /* Adjust H1 size for mobile */
    margin-bottom: 10px;
  }

  .page-the-thao__subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-the-thao__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-the-thao__text-block {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* Buttons mobile adaptation */
  .page-the-thao__btn,
  .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 !important;
    padding-right: 15px !important;
    margin-bottom: 10px;
  }
  
  .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 !important;
    padding-right: 15px !important;
    flex-direction: column !important;
    gap: 10px;
  }

  /* Images mobile adaptation */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-height: 200px !important; /* Ensure minimum size */
  }

  .page-the-thao__hero-image {
    min-height: 200px !important;
  }

  .page-the-thao__sport-image {
    height: auto !important;
    min-height: 200px !important;
  }
  
  .page-the-thao__features-grid,
  .page-the-thao__sports-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__flex-container {
    flex-direction: column;
    gap: 20px;
  }

  .page-the-thao__flex-container--reverse {
    flex-direction: column;
  }

  .page-the-thao__content-block,
  .page-the-thao__image-block {
    width: 100%;
    flex: none;
  }

  .page-the-thao__feature-list,
  .page-the-thao__faq-answer p {
    text-align: left;
  }

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

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

  .page-the-thao__cta-final-section {
    padding: 40px 15px;
  }

  /* Placeholder CSS for "必写清单" items not in HTML, as per strict instruction */
  /* 1. 顶区轮播 (already partially covered by hero-section, adding specific slider elements for completeness) */
  .page-the-thao__hero-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 250px; /* Example height for mobile slider */
  }
  .page-the-thao__hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
  }
  .page-the-thao__hero-slide.is-active {
    display: block;
  }
  .page-the-thao__hero-slider-prev,
  .page-the-thao__hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
  }
  .page-the-thao__hero-slider-prev { left: 10px; }
  .page-the-thao__hero-slider-next { right: 10px; }

  /* 2. 操作指引外框 + 五张 `team` 竖型卡 */
  .page-the-thao__guide-box {
    padding: 15px;
    background: #f5e6d3; /* Example background */
    border-radius: 4px;
  }
  .page-the-thao__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columns for mobile grid */
    gap: 10px;
  }
  .page-the-thao__guide-card {
    padding-top: 0 !important; /* Reset padding-top */
    grid-column: span 3; /* Top two cards span 3 columns each */
    text-align: center;
  }
  .page-the-thao__guide-card:nth-child(3),
  .page-the-thao__guide-card:nth-child(4),
  .page-the-thao__guide-card:nth-child(5) {
    grid-column: span 2; /* Bottom three cards span 2 columns each */
  }
  .page-the-thao__guide-card img {
    aspect-ratio: 250 / 350; /* Maintain aspect ratio */
    object-fit: contain;
    width: 100%;
    height: auto;
    min-height: 200px !important; /* Ensure min-height */
  }
  /* 3. `home_content` 外框 */
  .page-the-thao__home-content-box {
    max-width: 100%;
    height: auto !important; /* Full height on mobile */
    border: 5px solid #3477c9; /* Example border */
    border-radius: 15px;
    box-shadow: 0 0 20px #3477c9;
    padding: 10px;
    box-sizing: border-box;
  }
  .page-the-thao__home-content-inner {
    height: auto !important;
    overflow: visible !important;
  }
  /* 4. 博客卡片区 */
  .page-the-thao__blog-section {
    padding: 20px 0;
  }
  .page-the-thao__blog-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column for blog cards on mobile */
    gap: 20px;
  }
  /* Assuming blog card structure */
  .page-the-thao__blog-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .page-the-thao__blog-card-image {
    width: 100%;
    height: 180px; /* Example height for mobile blog image */
    object-fit: cover;
    min-height: 200px !important;
  }
  .page-the-thao__blog-card-content {
    padding: 15px;
  }
  .page-the-thao__blog-card-title {
    font-size: 1.2em;
    color: #E53935;
    margin-bottom: 10px;
  }
  .page-the-thao__blog-card-text {
    font-size: 0.9em;
    color: #333333;
  }
  .page-the-thao__blog-card-link {
    display: inline-block;
    margin-top: 15px;
    color: #FF5A4F;
    text-decoration: none;
    font-weight: bold;
  }
}