/* style/the-thao.css */

:root {
  --page-the-thao-primary-color: #2F6BFF;
  --page-the-thao-secondary-color: #6FA3FF;
  --page-the-thao-card-bg: #FFFFFF;
  --page-the-thao-background: #F4F7FB;
  --page-the-thao-text-main: #1F2D3D;
  --page-the-thao-text-black: #000000;
  --page-the-thao-border-color: #D6E2FF;
  --page-the-thao-glow-color: #A5C4FF;
}

.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-the-thao-text-main); /* Default text color for light background */
  background-color: var(--page-the-thao-background);
}

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

.page-the-thao__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

.page-the-thao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  overflow: hidden;
  background-color: var(--page-the-thao-primary-color);
}

.page-the-thao__hero-image-wrap {
  width: 100%;
  max-height: 675px; /* Max height for hero image */
  overflow: hidden;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for better text contrast, not changing color */
}

.page-the-thao__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 90%;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-the-thao__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

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

.page-the-thao__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn-secondary {
  background: #ffffff;
  color: var(--page-the-thao-primary-color);
  border: 2px solid var(--page-the-thao-primary-color);
}

.page-the-thao__btn-secondary:hover {
  background: var(--page-the-thao-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn-tertiary {
  background-color: var(--page-the-thao-secondary-color);
  color: #ffffff;
  border: 2px solid transparent;
  margin-top: 20px;
}

.page-the-thao__btn-tertiary:hover {
  background-color: #4a8bff; /* Slightly darker secondary color */
}

.page-the-thao__section-title {
  font-size: 2.2rem;
  color: var(--page-the-thao-text-black);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-the-thao__sub-title {
  font-size: 1.6rem;
  color: var(--page-the-thao-text-main);
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-the-thao__text-block {
  font-size: 1.1rem;
  color: var(--page-the-thao-text-main);
  margin-bottom: 15px;
  text-align: justify;
}

.page-the-thao__text-block strong {
  color: var(--page-the-thao-primary-color);
}

.page-the-thao__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-the-thao__ordered-list {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-the-thao__list-item {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  color: var(--page-the-thao-text-main);
}

.page-the-thao__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--page-the-thao-primary-color);
  font-weight: bold;
}

.page-the-thao__ordered-list .page-the-thao__list-item::before {
  content: none;
}

.page-the-thao__list-title {
  font-size: 1.3rem;
  color: var(--page-the-thao-text-black);
  margin-bottom: 5px;
  font-weight: bold;
}

.page-the-thao__list-text {
  font-size: 1rem;
  color: var(--page-the-thao-text-main);
}

.page-the-thao__figure {
  margin: 30px auto;
  text-align: center;
  max-width: 680px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-the-thao__figcaption {
  font-size: 0.9rem;
  color: var(--page-the-thao-text-main);
  padding: 10px;
  background-color: var(--page-the-thao-card-bg);
  border-top: 1px solid var(--page-the-thao-border-color);
}

.page-the-thao__dark-bg {
  background-color: var(--page-the-thao-primary-color);
  color: #ffffff;
}

.page-the-thao__dark-bg .page-the-thao__section-title,
.page-the-thao__dark-bg .page-the-thao__text-block,
.page-the-thao__dark-bg .page-the-thao__list-title,
.page-the-thao__dark-bg .page-the-thao__list-text {
  color: #ffffff;
}

.page-the-thao__dark-bg .page-the-thao__list-item::before {
  color: #ffffff;
}

.page-the-thao__promo-buttons,
.page-the-thao__support-buttons,
.page-the-thao__final-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-the-thao__contact-methods {
  list-style: none;
  padding: 0;
  text-align: center;
}

.page-the-thao__contact-methods .page-the-thao__list-item {
  padding-left: 0;
}

.page-the-thao__contact-methods .page-the-thao__list-item::before {
  content: none;
}

.page-the-thao__contact-methods a {
  color: var(--page-the-thao-primary-color);
  text-decoration: underline;
}

.page-the-thao__copyright-info {
  text-align: center;
  font-size: 0.9rem;
  color: var(--page-the-thao-text-main);
  padding: 20px;
  background-color: var(--page-the-thao-card-bg);
  margin-top: 40px;
  border-top: 1px solid var(--page-the-thao-border-color);
}

/* --- Responsive Styles --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-the-thao__article-wrap {
    padding: 0 15px;
  }

  .page-the-thao__section-title {
    font-size: 2rem;
  }

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

  .page-the-thao__hero-content {
    padding: 20px;
  }

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

  .page-the-thao__hero-description {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }
}

/* Mobile specific styles */
@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }
  .page-the-thao__hero-content {
    position: static;
    transform: none;
    padding: 30px 15px;
    background-color: rgba(47, 107, 255, 0.9); /* Add background to content for better readability if image is too bright */
    width: 100%;
    box-sizing: border-box;
  }
  .page-the-thao__hero-image-wrap {
    display: none; /* Hide large hero image on mobile if content is moved below */
  }
  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-the-thao__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1rem;
  }

  /* 2. 单栏长文容器 */
  .page-the-thao__article-wrap {
    padding: 0 15px !important;
  }
  .page-the-thao__section {
    padding: 30px 0;
  }
  .page-the-thao__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  .page-the-thao__sub-title {
    font-size: 1.2rem;
  }
  .page-the-thao__text-block {
    font-size: 1rem;
  }
  .page-the-thao__list-title {
    font-size: 1.1rem;
  }
  .page-the-thao__list-item {
    padding-left: 20px;
  }
  .page-the-thao__list-item::before {
    font-size: 0.9rem;
  }

  /* 3. 通用图片与 figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-the-thao__figure {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* 4. 按钮与按钮容器 */
  .page-the-thao__promo-buttons,
  .page-the-thao__support-buttons,
  .page-the-thao__final-cta {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-the-thao__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 5. 注册教程与 FAQ 区块 (Not explicit FAQ, but list items) */
  .page-the-thao__ordered-list {
    padding-left: 15px;
  }
  .page-the-thao__ordered-list .page-the-thao__list-item {
    padding-left: 0;
  }
  .page-the-thao__contact-methods {
    padding: 0 15px;
  }
  .page-the-thao__copyright-info {
    padding: 15px;
  }

  .page-the-thao__dark-bg .page-the-thao__hero-content {
    background-color: var(--page-the-thao-primary-color);
  }

  /* Responsive text adjustments */
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Ensure all containers are responsive */
  .page-the-thao__section,
  .page-the-thao__intro-section,
  .page-the-thao__sports-events-section,
  .page-the-thao__betting-types-section,
  .page-the-thao__promo-section,
  .page-the-thao__tips-section,
  .page-the-thao__support-section,
  .page-the-thao__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Contrast adjustments for light background (default) */
.page-the-thao {
  color: var(--page-the-thao-text-main); /* #1F2D3D */
}
.page-the-thao a {
  color: var(--page-the-thao-primary-color);
}
.page-the-thao a:hover {
  color: #4a8bff; /* Slightly darker primary color */
}