/* 智能文字颜色选择器 - 必须实现（使用BEM命名规则） */
.page-the-thao__card,
.page-the-thao__section,
.page-the-thao__box {
  /* System will automatically analyze background brightness and choose the best text color */
}

/* Brightness calculation and color selection principles (using BEM naming rules) */
.page-the-thao__dark-bg {
  color: #ffffff; /* Deep background with light text */
  background: #2F6BFF; /* Use brand color but ensure contrast */
}

.page-the-thao__light-bg {
  color: #1F2D3D; /* Light background with dark text */
  background: #F4F7FB;
}

.page-the-thao__medium-bg {
  /* Medium brightness background needs smart analysis */
  color: #1F2D3D; /* Default to dark text */
  background: #6FA3FF;
}

/* 正文内容区域 - 最高优先级（使用BEM命名规则） */
.page-the-thao__content-area,
.page-the-thao__text-block {
  color: #1F2D3D; /* Ensure readability on most backgrounds */
  background: #F4F7FB; /* Default light background */
}

/* 页面内容区域内的段落和列表项 */
.page-the-thao p,
.page-the-thao li {
  color: #1F2D3D; /* Ensure readability on most backgrounds */
}

/* 卡片和容器 - 智能背景选择（使用BEM命名规则） */
.page-the-thao__card {
  background: #FFFFFF; /* Prioritize white background for readability */
  color: #1F2D3D;
  border: 1px solid #D6E2FF; /* Add border to enhance readability */
}

/* 深色区域特殊处理（使用BEM命名规则） */
.page-the-thao__dark-section {
  background: #2F6BFF;
  color: #ffffff; /* Force white text */
}

/* 按钮文字对比度保障（使用BEM命名规则） */
.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff; /* Button text always white */
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-the-thao__btn-secondary {
  background: #ffffff;
  color: #2F6BFF; /* Use brand color to ensure contrast */
  border: 2px solid #2F6BFF;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease, color 0.3s ease;
}

.page-the-thao__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
}

.page-the-thao__btn-small {
  padding: 8px 18px;
  font-size: 14px;
}

.page-the-thao__btn-large {
  padding: 15px 35px;
  font-size: 18px;
}

/* HERO Section Styles */
.page-the-thao__hero-section {
  position: relative;
  width: 100%;
  height: 500px; /* Adjusted height for desktop */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding for fixed header */
  margin-bottom: 40px;
}

.page-the-thao__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.page-the-thao__hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff; /* White text on hero image */
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-the-thao__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.page-the-thao__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

/* General Section Styles */
.page-the-thao__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 30px;
  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, #4A8BFF 0%, #2F6BFF 100%);
  border-radius: 2px;
}

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

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

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

.page-the-thao__text-block {
  font-size: 1rem;
  line-height: 1.7;
  color: #1F2D3D;
  margin-bottom: 20px;
  text-align: justify;
}

.page-the-thao__text-block--white {
  color: #ffffff;
}

/* Intro Section */
.page-the-thao__intro-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

/* Bet Types Section */
.page-the-thao__bet-types-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-the-thao__card {
  background: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-the-thao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-the-thao__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-the-thao__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2F6BFF;
  padding: 15px 20px 10px;
}

.page-the-thao__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1F2D3D;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-the-thao__card--dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-the-thao__card--dark .page-the-thao__card-title {
  color: #A5C4FF;
}

.page-the-thao__card--dark .page-the-thao__card-text {
  color: #ffffff;
}

/* Sports Highlight Section */
.page-the-thao__sports-highlight-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-the-thao__sport-card {
  background: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.page-the-thao__sport-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-the-thao__sport-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2F6BFF;
  padding: 15px 20px 10px;
}

.page-the-thao__sport-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1F2D3D;
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* How-To-Play Section */
.page-the-thao__how-to-play-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-the-thao__step-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-the-thao__step-number {
  font-size: 3rem;
  font-weight: bold;
  color: #A5C4FF;
  margin-bottom: 15px;
  display: block;
}

.page-the-thao__step-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #A5C4FF;
  margin-bottom: 15px;
}

.page-the-thao__step-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Strategy Section */
.page-the-thao__strategy-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-the-thao__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-the-thao__strategy-item {
  background: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
  height: 100%;
}

.page-the-thao__strategy-item:hover {
  transform: translateY(-5px);
}

.page-the-thao__strategy-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2F6BFF;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-the-thao__strategy-icon {
  font-size: 1.8rem;
  color: #6FA3FF;
}

.page-the-thao__strategy-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1F2D3D;
}

/* Promo Section */
.page-the-thao__promo-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-the-thao__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.page-the-thao__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}