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

.page-the-thao__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-bottom: 40px; /* Space for content below image */
  overflow: hidden;
  color: #ffffff; /* White text for dark background hero */
  background-color: #26A9E0; /* Brand color as fallback if image fails */
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit hero image height */
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 10; /* Ensure content is above image */
  padding: 20px 20px 0; /* Adjust padding to sit below the image */
  max-width: 900px;
  margin: 0 auto;
}

.page-the-thao__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-the-thao__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-the-thao__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  max-width: 100%;
  box-sizing: border-box;
}

.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: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-the-thao__btn-secondary:hover {
  background-color: #c96a06;
  border-color: #c96a06;
}

.page-the-thao__section {
  padding: 50px 0;
}

.page-the-thao__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-the-thao__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0;
}

.page-the-thao__subsection-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-the-thao__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-the-thao__figure {
  margin: 30px auto;
  max-width: 680px;
  text-align: center;
}

.page-the-thao__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto;
}

.page-the-thao__figcaption {
  font-size: 0.9em;
  color: #666;
  margin-top: 10px;
}

.page-the-thao__dark-section .page-the-thao__figcaption {
  color: #f0f0f0;
}

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

.page-the-thao__info-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-the-thao__info-card:hover {
  transform: translateY(-5px);
}

.page-the-thao__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-the-thao__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-the-thao__step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-the-thao__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 20px 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-the-thao__list-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-the-thao__list-text {
  font-size: 1em;
  line-height: 1.6;
  color: #444444;
  margin-bottom: 15px;
}

.page-the-thao__list-item .page-the-thao__btn {
  margin-top: 10px;
}

.page-the-thao__promo-list,
.page-the-thao__tips-list,
.page-the-thao__security-features,
.page-the-thao__contact-options {
  list-style: disc;
  padding-left: 25px;
  margin-top: 20px;
}

.page-the-thao__promo-list .page-the-thao__list-item,
.page-the-thao__tips-list .page-the-thao__list-item,
.page-the-thao__security-features .page-the-thao__list-item,
.page-the-thao__contact-options .page-the-thao__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
  line-height: 1.6;
  color: inherit; /* Inherit color from parent section */
  background-color: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.page-the-thao__btn-container {
  margin-top: 30px;
  text-align: center;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-the-thao__final-cta .page-the-thao__btn {
  min-width: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: clamp(2em, 5vw, 2.5em);
  }
  .page-the-thao__section-title {
    font-size: 1.8em;
  }
  .page-the-thao__subsection-title {
    font-size: 1.5em;
  }
  .page-the-thao__hero-image {
    max-height: 500px;
  }
  .page-the-thao__article-wrap {
    padding: 0 15px;
  }
}

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

  /* 顶区标题 + 双 CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-the-thao__hero-content {
    padding: 15px 15px 0;
  }
  .page-the-thao__main-title {
    font-size: clamp(1.8em, 6vw, 2.2em) !important;
    margin-bottom: 10px;
  }
  .page-the-thao__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-the-thao__hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  /* 单栏长文容器 */
  .page-the-thao__section {
    padding: 30px 0;
  }
  .page-the-thao__article-wrap,
  .page-the-thao__grid-cards {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__section-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }
  .page-the-thao__subsection-title {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-the-thao__text-block {
    font-size: 1em;
    margin-bottom: 15px;
  }

  /* 通用图片与 figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-the-thao__figure {
    margin: 20px auto;
  }
  .page-the-thao__figcaption {
    font-size: 0.85em;
  }

  /* 按钮与按钮容器 */
  .page-the-thao__btn,
  .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__btn-container,
  .page-the-thao__hero-cta {
    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 vertical stacking for buttons */
  }

  /* 注册教程与 FAQ 区块 (step-list, promo-list, tips-list, security-features, contact-options) */
  .page-the-thao__list-item {
    padding: 15px 20px;
    margin-bottom: 15px;
  }
  .page-the-thao__list-title {
    font-size: 1.2em;
    margin-bottom: 8px;
  }
  .page-the-thao__list-text {
    font-size: 0.95em;
    margin-bottom: 10px;
  }
  .page-the-thao__promo-list,
  .page-the-thao__tips-list,
  .page-the-thao__security-features,
  .page-the-thao__contact-options {
    padding-left: 20px;
    margin-top: 15px;
  }
  .page-the-thao__promo-list .page-the-thao__list-item,
  .page-the-thao__tips-list .page-the-thao__list-item,
  .page-the-thao__security-features .page-the-thao__list-item,
  .page-the-thao__contact-options .page-the-thao__list-item {
    font-size: 0.95em;
    margin-bottom: 8px;
  }
  .page-the-thao__info-card {
    padding: 20px;
  }
  .page-the-thao__card-title {
    font-size: 1.3em;
  }
  .page-the-thao__card-text {
    font-size: 0.95em;
  }
}