.page-the-thao {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --background-dark: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  color: var(--text-main);
  background-color: var(--background-dark);
}

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

.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px;
  padding-bottom: 50px;
  background-color: var(--background-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7);
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -100px; /* Adjust to overlap image slightly for visual flow */
  background: rgba(17, 17, 17, 0.9);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}

.page-the-thao__hero-title {
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-the-thao__hero-description {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-outline {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-the-thao__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-the-thao__btn-secondary {
  background-color: var(--card-bg);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 2px 10px rgba(255, 211, 107, 0.2);
}

.page-the-thao__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--background-dark);
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-the-thao__btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-the-thao__btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--background-dark);
}

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
  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: var(--primary-color);
  border-radius: 2px;
}

.page-the-thao__section-intro {
  font-size: 1.05rem;
  color: var(--text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.page-the-thao__about-section,
.page-the-thao__betting-types-section,
.page-the-thao__guide-section,
.page-the-thao__promotions-section,
.page-the-thao__blog-section,
.page-the-thao__faq-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

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

.page-the-thao__feature-item,
.page-the-thao__type-card,
.page-the-thao__promo-card,
.page-the-thao__blog-card,
.page-the-thao__step-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.page-the-thao__feature-title,
.page-the-thao__type-title,
.page-the-thao__promo-title,
.page-the-thao__blog-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.page-the-thao__feature-title a,
.page-the-thao__type-title a,
.page-the-thao__promo-title a,
.page-the-thao__blog-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-the-thao__feature-title a:hover,
.page-the-thao__type-title a:hover,
.page-the-thao__promo-title a:hover,
.page-the-thao__blog-title a:hover {
  color: var(--secondary-color);
}

.page-the-thao__feature-image,
.page-the-thao__type-image,
.page-the-thao__promo-image,
.page-the-thao__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.page-the-thao__feature-text,
.page-the-thao__type-description,
.page-the-thao__promo-description,
.page-the-thao__blog-description {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-the-thao__step-item {
  padding: 40px 25px;
}

.page-the-thao__step-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
  position: relative;
  line-height: 1;
}

.page-the-thao__step-number::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.page-the-thao__step-title {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__step-text {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 25px;
}

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

.page-the-thao__blog-card {
  text-align: left;
  padding: 20px;
  height: auto;
}

.page-the-thao__blog-card .page-the-thao__blog-image {
  height: 200px;
  margin-bottom: 15px;
}

.page-the-thao__blog-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-the-thao__blog-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
  line-height: 1.3;
}

.page-the-thao__blog-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-the-thao__blog-title a:hover {
  color: var(--secondary-color);
}

.page-the-thao__blog-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 10px;
}

.page-the-thao__blog-description {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-the-thao__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  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.15rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  user-select: none;
  background-color: #1a1a1a;
}

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

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

.page-the-thao__faq-qtext {
  flex-grow: 1;
}

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  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: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--card-bg);
}

.page-the-thao__faq-answer p {
  margin-top: 10px;
  margin-bottom: 10px;
}

.page-the-thao__faq-answer .page-the-thao__btn-secondary {
  margin-top: 15px;
}

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

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

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

  .page-the-thao__feature-grid,
  .page-the-thao__type-grid,
  .page-the-thao__promo-grid,
  .page-the-thao__blog-grid,
  .page-the-thao__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-the-thao__feature-item,
  .page-the-thao__type-card,
  .page-the-thao__promo-card,
  .page-the-thao__blog-card,
  .page-the-thao__step-item {
    padding: 25px;
  }

  .page-the-thao__feature-title,
  .page-the-thao__type-title,
  .page-the-thao__promo-title,
  .page-the-thao__blog-title {
    font-size: 1.4rem;
  }

  .page-the-thao__step-title {
    font-size: 1.4rem;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-outline {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

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

  .page-the-thao__hero-image-wrapper {
    max-height: 400px;
  }

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

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

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

  /* 通用内容区 padding */
  .page-the-thao__container {
    padding: 15px;
  }

  .page-the-thao__about-section,
  .page-the-thao__betting-types-section,
  .page-the-thao__guide-section,
  .page-the-thao__promotions-section,
  .page-the-thao__blog-section,
  .page-the-thao__faq-section {
    padding: 40px 0;
  }

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

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

  /* 通用图片与容器 */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__feature-grid,
  .page-the-thao__type-grid,
  .page-the-thao__promo-grid,
  .page-the-thao__blog-grid,
  .page-the-thao__steps-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .page-the-thao__feature-item,
  .page-the-thao__type-card,
  .page-the-thao__promo-card,
  .page-the-thao__blog-card,
  .page-the-thao__step-item {
    padding: 20px;
    align-items: stretch;
    text-align: left;
  }

  .page-the-thao__feature-image,
  .page-the-thao__type-image,
  .page-the-thao__promo-image,
  .page-the-thao__blog-image {
    height: 180px;
  }

  .page-the-thao__feature-title,
  .page-the-thao__type-title,
  .page-the-thao__promo-title,
  .page-the-thao__blog-title {
    font-size: 1.2rem;
  }

  .page-the-thao__step-number {
    font-size: 2.5rem;
    text-align: center;
  }

  .page-the-thao__step-title {
    font-size: 1.3rem;
    text-align: center;
  }

  .page-the-thao__step-text {
    text-align: left;
  }

  /* 按钮与按钮容器 */
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-outline {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 1rem;
  }

  .page-the-thao__cta-bottom {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ区域 */
  .page-the-thao__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

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

  .page-the-thao__faq-answer .page-the-thao__btn-secondary {
    width: auto !important;
    max-width: fit-content !important;
  }
}