.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
  line-height: 1.6;
}

.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 550px; /* Max height for desktop hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

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

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-the-thao__intro-text {
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF1E8;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary,
.page-the-thao__btn-link,
.page-the-thao a[class*="button"],
.page-the-thao a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Base responsive rule */
  box-sizing: border-box; /* Base responsive rule */
  white-space: normal; /* Base responsive rule */
  word-wrap: break-word; /* Base responsive rule */
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button */
  color: #140C0C; /* Dark text for bright button */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-the-thao__btn-secondary {
  background: #C61F1F; /* Main Color */
  color: #FFF1E8; /* Text Main */
  border: 2px solid #F3C54D; /* Gold border */
}

.page-the-thao__btn-secondary:hover {
  background: #E53030; /* Auxiliary Color */
  transform: translateY(-2px);
}

.page-the-thao__btn-tertiary {
  background: #6A1E1E; /* Border Color */
  color: #FFF1E8; /* Text Main */
  border: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 5px;
}

.page-the-thao__btn-tertiary:hover {
  background: #7E0D0D; /* Deep Red */
}

.page-the-thao__btn-link {
  color: #F3C54D; /* Gold */
  text-decoration: underline;
  background: none;
  border: none;
  padding: 5px 0;
  font-weight: 600;
}

.page-the-thao__btn-link:hover {
  color: #FFB04A;
}

.page-the-thao__section {
  padding: 80px 0;
  background-color: #140C0C; /* Background */
  color: #FFF1E8; /* Text Main */
}

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

.page-the-thao__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #F3C54D; /* Gold */
  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, transparent, #F3C54D, transparent);
  border-radius: 2px;
}

.page-the-thao__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-the-thao__feature-item,
.page-the-thao__sport-card,
.page-the-thao__promo-card,
.page-the-thao__step-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__feature-icon,
.page-the-thao__sport-image,
.page-the-thao__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-the-thao__feature-title,
.page-the-thao__sport-title,
.page-the-thao__promo-title,
.page-the-thao__step-title {
  font-size: 1.4rem;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__sport-card p {
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-the-thao__bet-type-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 40px;
}

.page-the-thao__bet-type-list li {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-left: 5px solid #F3C54D; /* Gold accent */
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05rem;
}

.page-the-thao__image-with-text {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 60px;
}

.page-the-thao__image-inline {
  flex: 1;
  min-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  display: block;
}

.page-the-thao__text-content {
  flex: 1.5;
}

.page-the-thao__sub-title {
  font-size: 2rem;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
}

.page-the-thao__tips-list {
  list-style: disc inside;
  padding-left: 20px;
  margin-bottom: 40px;
}

.page-the-thao__tips-list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: #FFF1E8;
}

.page-the-thao__faq-list {
  margin-top: 40px;
}

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
  color: #FFF1E8; /* Text Main */
}

details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  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: rgba(255, 255, 255, 0.05);
}

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

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

details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 5px 5px;
}

.page-the-thao__faq-answer p {
  margin-top: 0;
  color: #FFF1E8;
}

.page-the-thao__faq-answer .page-the-thao__btn-link {
  margin-top: 10px;
  display: inline-block;
}

.page-the-thao__final-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-the-thao__hero-image-wrapper {
    max-height: 450px;
  }

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

  .page-the-thao__intro-text {
    font-size: 1rem;
  }

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

  .page-the-thao__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }

  .page-the-thao__image-with-text {
    flex-direction: column;
    gap: 30px;
  }

  .page-the-thao__image-inline {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px; /* 約10px頂距 */
    padding-bottom: 40px;
  }

  .page-the-thao__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-the-thao__hero-image {
    object-fit: contain !important; /* 移动端 contain */
    aspect-ratio: unset !important; /* 移除固定比例 */
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem); /* 移动端H1字号 */
    margin-bottom: 15px;
  }

  .page-the-thao__intro-text {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  /* 按钮与按钮容器 */
  .page-the-thao__cta-buttons,
  .page-the-thao__final-cta {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-tertiary,
  .page-the-thao__btn-link,
  .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__section {
    padding: 40px 0;
  }

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

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

  .page-the-thao__text-block {
    font-size: 1rem;
    text-align: left;
  }

  /* 通用图片与容器 */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__feature-item img,
  .page-the-thao__sport-card img,
  .page-the-thao__promo-card img {
     /* Adjust height for mobile cards */
  }

  .page-the-thao__feature-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__promo-grid,
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-the-thao__image-with-text {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }

  .page-the-thao__sub-title {
    font-size: 1.5rem;
  }

  .page-the-thao__tips-list,
  .page-the-thao__bet-type-list {
    padding-left: 0;
  }

  .page-the-thao__tips-list li,
  .page-the-thao__bet-type-list li {
    font-size: 0.95rem;
    padding: 12px 15px;
  }

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

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

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

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

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