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

.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: #f5f7fa;
}

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

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

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

.page-the-thao__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  color: #E53935;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

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

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

.page-the-thao__cta-buttons--center {
  margin-top: 30px;
}

.page-the-thao__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%; /* Ensure button responsiveness */
  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: 2px solid transparent;
}

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

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

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

.page-the-thao__section {
  padding: 60px 0;
  text-align: center;
}

.page-the-thao__section--why-choose {
  background-color: #F5F7FA;
}

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

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

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

.page-the-thao__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

.page-the-thao__section-description {
  font-size: 1.05em;
  color: #333333;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__section-description--light {
  color: #f0f0f0;
}

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

.page-the-thao__feature-card, .page-the-thao__step-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #E0E0E0;
  position: relative;
  overflow: hidden;
}

.page-the-thao__feature-card:hover, .page-the-thao__step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

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

.page-the-thao__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-the-thao__card-text {
  font-size: 1em;
  color: #333333;
}

.page-the-thao__betting-types-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-the-thao__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FF5A4F;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-the-thao__list-item strong {
  color: #FF5A4F;
}

.page-the-thao__step-number {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #FF5A4F;
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  font-weight: 700;
}

.page-the-thao__section--how-to {
  background-color: #F5F7FA;
}

.page-the-thao__step-card .page-the-thao__card-title {
  color: #333333;
}

.page-the-thao__step-card .page-the-thao__card-text a {
  color: #E53935;
  text-decoration: underline;
  font-weight: 600;
}

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

.page-the-thao__advice-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #FF5A4F;
}

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

.page-the-thao__advice-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-the-thao__section--faq {
  background-color: #F5F7FA;
}

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

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #fcfcfc;
  border-bottom: 1px solid #E0E0E0;
  user-select: none;
  list-style: none;
}

.page-the-thao__faq-item[open] > .page-the-thao__faq-question {
  border-bottom: 1px solid #E0E0E0;
  background-color: #f0f0f0;
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  color: #E53935;
  margin-left: 15px;
  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: 15px 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: none;
}

.page-the-thao__faq-text {
  margin: 0;
}

.page-the-thao__final-cta {
  padding-bottom: 80px;
}

/* General image responsiveness */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-the-thao__section-title {
    font-size: clamp(1.6em, 4vw, 2.4em);
  }
  .page-the-thao__intro-text, .page-the-thao__section-description {
    font-size: 1em;
  }
  .page-the-thao__feature-grid, .page-the-thao__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-the-thao__feature-card, .page-the-thao__step-card {
    padding: 25px;
  }
  .page-the-thao__card-title {
    font-size: 1.3em;
  }
  .page-the-thao__card-image {
    height: 180px;
  }
  .page-the-thao__list-item {
    font-size: 1em;
    padding: 12px 18px;
  }
  .page-the-thao__advice-item {
    padding: 20px;
  }
  .page-the-thao__advice-title {
    font-size: 1.2em;
  }
  .page-the-thao__advice-text {
    font-size: 0.95em;
  }
  .page-the-thao__faq-question {
    font-size: 1.05em;
    padding: 15px 20px;
  }
  .page-the-thao__faq-answer {
    padding: 12px 20px 15px 20px;
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-the-thao__hero-image-wrapper {
    max-height: 400px;
  }
  .page-the-thao__hero-content {
    margin-top: 15px;
    padding: 0 15px;
  }
  .page-the-thao__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }
  .page-the-thao__intro-text {
    font-size: 0.95em;
    margin-bottom: 25px;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-the-thao__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* 2. 单栏长文容器 */
  .page-the-thao__section {
    padding: 40px 0;
  }
  .page-the-thao__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 15px;
  }
  .page-the-thao__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }
  .page-the-thao__feature-grid, .page-the-thao__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__feature-card, .page-the-thao__step-card {
    padding: 20px;
  }
  .page-the-thao__card-title {
    font-size: 1.2em;
  }
  .page-the-thao__card-image {
    height: 160px;
    min-height: 200px !important; /* Enforce minimum size for all images */
    width: 100% !important;
    max-width: 100% !important;
  }
  .page-the-thao__list-item {
    font-size: 0.95em;
    padding: 10px 15px;
    margin-bottom: 10px;
  }

  /* 3. 通用图片与 figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* 4. 按钮与按钮容器 */
  .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: 0px; /* Buttons handle their own padding */
    padding-right: 0px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column;
  }

  /* 5. 注册教程与 FAQ 区块 */
  .page-the-thao__advice-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__advice-item {
    padding: 20px;
  }
  .page-the-thao__advice-title {
    font-size: 1.1em;
  }
  .page-the-thao__advice-text {
    font-size: 0.9em;
  }
  .page-the-thao__faq-list {
    margin-top: 30px;
  }
  .page-the-thao__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-the-thao__faq-answer {
    padding: 12px 20px 15px 20px;
  }
  .page-the-thao__faq-toggle {
    font-size: 1.3em;
  }
  .page-the-thao__faq-text {
    font-size: 0.9em;
  }
  .page-the-thao__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
    top: 10px;
    right: 10px;
  }
  .page-the-thao__step-card .page-the-thao__card-text a {
    font-size: 0.95em;
  }
}