.page-the-thao {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
}

.page-the-thao__container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
  padding-bottom: 40px;
  background-color: #f5f5f5;
}

.page-the-thao__hero-image {
  width: 100%;
  max-height: 675px;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
}

.page-the-thao__hero-content {
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
  margin-top: -100px; /* Adjust to slightly overlap the image for visual flow */
  position: relative;
  z-index: 1;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-the-thao__main-title {
  font-size: 2.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-the-thao__subtitle {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
}

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

/* General Buttons */
.page-the-thao__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-the-thao__btn--primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-the-thao__btn--primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

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

.page-the-thao__btn--secondary:hover {
  background-color: #f0f8ff;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-the-thao__btn--small {
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-the-thao__btn--inline {
  margin-top: 15px;
  display: inline-flex; /* Use flex to center content if needed */
  align-items: center;
  justify-content: center;
}

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

/* Section Styling */
.page-the-thao__introduction-section,
.page-the-thao__guide-section,
.page-the-thao__promotions-section,
.page-the-thao__faq-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-the-thao__sports-categories,
.page-the-thao__advantages-section,
.page-the-thao__tips-section,
.page-the-thao__conclusion-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background from brand color */
  color: #ffffff;
}

.page-the-thao__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

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

.page-the-thao__light-bg .page-the-thao__section-title {
  color: #26A9E0;
}

.page-the-thao__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Sports Categories Grid */
.page-the-thao__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__sport-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

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

.page-the-thao__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin: 0 15px 10px;
  flex-grow: 1; /* Allow title to take available space */
}

.page-the-thao__card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__sport-card .page-the-thao__btn {
  margin-top: auto; /* Push button to the bottom */
  align-self: center;
}

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

.page-the-thao__guide-list li {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-the-thao__guide-step-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

.page-the-thao__feature-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

.page-the-thao__feature-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Promotions Section */
.page-the-thao__promo-list {
  list-style: disc inside;
  margin-top: 20px;
  font-size: 1.1em;
  padding-left: 20px;
}

.page-the-thao__promo-list li {
  margin-bottom: 10px;
}

/* Tips Section */
.page-the-thao__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-the-thao__tips-list li {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  color: #ffffff;
  font-size: 1.1em;
}

.page-the-thao__tips-list li strong {
  color: #ffd700; /* Highlight important points */
}

.page-the-thao__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  max-width: 680px; /* Specific size from requirement */
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-the-thao__faq-list {
  margin-top: 30px;
}

.page-the-thao__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  list-style: none; /* For <summary> tag */
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg);
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #555555;
}

.page-the-thao__faq-answer p {
  margin-bottom: 0;
}

/* Conclusion Section */
.page-the-thao__conclusion-section .page-the-thao__section-title {
  color: #ffffff;
}

.page-the-thao__conclusion-section .page-the-thao__paragraph {
  color: #ffffff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__conclusion-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    margin-top: -80px;
  }
  .page-the-thao__main-title {
    font-size: 2.5em;
  }
  .page-the-thao__section-title {
    font-size: 2em;
  }
  .page-the-thao__container {
    padding: 0 15px;
  }
  .page-the-thao__grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-the-thao__hero-content {
    margin-top: -60px; /* Adjust overlap */
    padding: 20px;
  }
  .page-the-thao__main-title {
    font-size: 2em;
  }
  .page-the-thao__subtitle {
    font-size: 1em;
  }
  .page-the-thao__hero-cta,
  .page-the-thao__conclusion-cta {
    flex-direction: column;
    gap: 10px;
  }
  .page-the-thao__btn {
    width: 100% !important;
    max-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__hero-cta .page-the-thao__btn,
  .page-the-thao__conclusion-cta .page-the-thao__btn {
    margin: 0 auto; /* Center buttons */
  }

  /* 2. 单栏长文容器 */
  .page-the-thao__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__introduction-section,
  .page-the-thao__sports-categories,
  .page-the-thao__guide-section,
  .page-the-thao__advantages-section,
  .page-the-thao__promotions-section,
  .page-the-thao__tips-section,
  .page-the-thao__faq-section,
  .page-the-thao__conclusion-section {
    padding: 40px 0;
  }
  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-the-thao__paragraph {
    font-size: 1em;
  }
  .page-the-thao__guide-step-title {
    font-size: 1.3em;
  }
  .page-the-thao__feature-title {
    font-size: 1.2em;
  }
  .page-the-thao__promo-list,
  .page-the-thao__tips-list {
    padding-left: 10px;
  }
  .page-the-thao__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-the-thao__faq-answer {
    font-size: 1em;
    padding: 0 20px 15px;
  }

  /* 3. 通用图片与 figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-the-thao__card-image {
    height: 180px; /* Adjust card image height for mobile */
  }
  .page-the-thao__hero-image {
    max-height: 400px; /* Adjust hero image height for mobile */
  }
  .page-the-thao__content-image {
    max-width: 100% !important;
  }

  /* 4. 按钮与按钮容器 (already covered by general btn rules above) */
  .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;
  }
  /* Specific centering for buttons in hero/conclusion */
  .page-the-thao__hero-cta .page-the-thao__btn,
  .page-the-thao__conclusion-cta .page-the-thao__btn {
    margin-left: auto;
    margin-right: auto;
  }
  .page-the-thao__btn--inline {
    width: auto; /* Allow inline buttons to shrink */
    max-width: calc(100% - 30px); /* Account for padding */
    margin-left: auto;
    margin-right: auto;
  }

  /* 5. 注册教程与 FAQ 区块 (FAQ is covered by general text/list/faq-item rules) */
  .page-the-thao__guide-list li {
    padding: 15px;
  }
  .page-the-thao__guide-list li p {
    font-size: 0.95em;
  }
  .page-the-thao__faq-item {
    margin-bottom: 10px;
  }
}

/* Color Contrast Fixes (if needed, applied automatically based on rules) */
.page-the-thao__light-bg {
  color: #333333;
  background: #ffffff;
}

.page-the-thao__dark-bg {
  color: #ffffff;
  background: #26A9E0;
}