.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D;
  line-height: 1.6;
  background-color: #F4F7FB;
}

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

.page-the-thao__hero-section {
  padding-top: 10px; /* Rely on body padding-top for header offset */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  background-color: #2F6BFF; /* Fallback */
  color: #ffffff;
}

.page-the-thao__hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

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

.page-the-thao__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over the image, but not covering text */
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for readability */
  border-radius: 10px;
}

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-the-thao__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 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: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

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

.page-the-thao__btn-secondary:hover {
  background: #f0f0f0;
  color: #2F6BFF;
  border-color: #2F6BFF;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-the-thao__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2F6BFF, #6FA3FF);
  border-radius: 2px;
}

.page-the-thao__section-description {
  font-size: 1.1rem;
  color: #1F2D3D;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.page-the-thao__overview-section,
.page-the-thao__guide-section,
.page-the-thao__odds-section,
.page-the-thao__faq-section,
.page-the-thao__contact-cta {
  padding: 60px 0;
  background-color: #F4F7FB;
}

.page-the-thao__sports-types-section,
.page-the-thao__promotions-section {
  padding: 60px 0;
  background-color: #2F6BFF;
  color: #ffffff;
}

.page-the-thao__sports-types-section .page-the-thao__section-title,
.page-the-thao__promotions-section .page-the-thao__section-title {
  color: #ffffff;
}

.page-the-thao__sports-types-section .page-the-thao__section-title::after,
.page-the-thao__promotions-section .page-the-thao__section-title::after {
  background: linear-gradient(90deg, #6FA3FF, #A5C4FF);
}

.page-the-thao__sports-types-section .page-the-thao__section-description,
.page-the-thao__promotions-section .page-the-thao__section-description {
  color: #f0f0f0;
}

.page-the-thao__article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-the-thao__article-body p {
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-the-thao__article-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.page-the-thao__article-body ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-the-thao__article-body li {
  margin-bottom: 10px;
  color: #1F2D3D;
}

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

.page-the-thao__content-image--center {
  text-align: center;
}

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

.page-the-thao__sport-card,
.page-the-thao__promo-card,
.page-the-thao__step-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-the-thao__sport-card img,
.page-the-thao__promo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-the-thao__sport-card .page-the-thao__card-title,
.page-the-thao__promo-card .page-the-thao__card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #000000;
  margin: 20px 15px 10px;
}

.page-the-thao__sport-card p,
.page-the-thao__promo-card p {
  font-size: 1rem;
  color: #1F2D3D;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-the-thao__sport-card .page-the-thao__btn-primary,
.page-the-thao__promo-card .page-the-thao__btn-primary {
  margin: 0 20px 20px;
  padding: 12px 25px;
  font-size: 1rem;
}

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

.page-the-thao__step-card {
  position: relative;
  padding: 30px 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-the-thao__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.5);
}

.page-the-thao__step-card .page-the-thao__card-title {
  margin-top: 20px;
  font-size: 1.3rem;
}

.page-the-thao__step-card p {
  font-size: 1rem;
  color: #1F2D3D;
  margin-bottom: 25px;
}

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

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

details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: #f5f8ff;
}

.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #000000;
}

.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 25px 20px;
  background: #f9fbfd;
  border-top: 1px solid #D6E2FF;
  border-radius: 0 0 10px 10px;
}

details.page-the-thao__faq-item .page-the-thao__faq-answer p {
  color: #1F2D3D;
  font-size: 1rem;
}

.page-the-thao__contact-cta {
  text-align: center;
  background: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #ffffff;
  padding: 80px 20px;
}

.page-the-thao__contact-cta .page-the-thao__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-the-thao__contact-cta .page-the-thao__section-title::after {
  background: #ffffff;
}

.page-the-thao__contact-cta .page-the-thao__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-the-thao__btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
  border-radius: 10px;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }

  .page-the-thao__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
  }

  .page-the-thao__hero-description {
    font-size: 1.1rem;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
  }

  .page-the-thao__article-body h3 {
    font-size: 1.4rem;
  }

  .page-the-thao__sports-grid,
  .page-the-thao__promotions-list,
  .page-the-thao__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .page-the-thao__sport-card img,
  .page-the-thao__promo-card img {
    height: 200px;
  }

  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px 20px;
  }

  .page-the-thao__faq-qtext {
    font-size: 1rem;
  }
}

@media (max-width: 849px) {
  .page-the-thao__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px;
    min-height: 400px;
  }

  .page-the-thao__hero-image img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }

  .page-the-thao__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-the-thao__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 !important; /* Override potential margin from flex gap */
  }

  /* 通用图片与容器 */
  .page-the-thao__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__overview-section,
  .page-the-thao__guide-section,
  .page-the-thao__odds-section,
  .page-the-thao__faq-section,
  .page-the-thao__contact-cta,
  .page-the-thao__sports-types-section,
  .page-the-thao__promotions-section {
    padding: 40px 0;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
    padding-bottom: 10px;
  }

  .page-the-thao__section-description {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

  /* 产品展示图区域 (Sports Grid) */
  .page-the-thao__sports-grid,
  .page-the-thao__promotions-list,
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    overflow-x: hidden;
  }

  .page-the-thao__sport-card,
  .page-the-thao__promo-card,
  .page-the-thao__step-card {
    margin-left: 10px;
    margin-right: 10px;
  }

  .page-the-thao__sport-card img,
  .page-the-thao__promo-card img {
    
  }

  .page-the-thao__sport-card .page-the-thao__card-title,
  .page-the-thao__promo-card .page-the-thao__card-title {
    font-size: 1.2rem;
    margin: 15px 10px 8px;
  }

  .page-the-thao__sport-card p,
  .page-the-thao__promo-card p {
    font-size: 0.9rem;
    padding: 0 15px 15px;
  }

  .page-the-thao__sport-card .page-the-thao__btn-primary,
  .page-the-thao__promo-card .page-the-thao__btn-primary {
    margin: 0 15px 15px;
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .page-the-thao__article-body {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .page-the-thao__article-body h3 {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-the-thao__content-image {
    margin: 25px auto;
  }

  .page-the-thao__step-number {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
    top: -15px;
  }

  .page-the-thao__step-card .page-the-thao__card-title {
    margin-top: 15px;
    font-size: 1.2rem;
  }

  .page-the-thao__step-card p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

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

  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px;
  }

  .page-the-thao__faq-qtext {
    font-size: 0.95rem;
  }

  .page-the-thao__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

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

  .page-the-thao__contact-cta {
    padding: 60px 15px;
  }

  .page-the-thao__btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
  }
}