/* style/the-thao.css */
:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --background-page-color: #F5F7FA;
  --border-color: #E0E0E0;
  --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

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

.page-the-thao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Consistent small top padding */
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden;
  color: #ffffff; /* Text on dark background */
  background-color: var(--primary-color);
}

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

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

.page-the-thao__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  margin-top: -80px; /* Overlap slightly for visual effect, but not text on image */
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text readability */
  border-radius: 10px;
}

.page-the-thao__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-the-thao__description {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-the-thao__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  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: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-the-thao__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

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

.page-the-thao__content-area {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

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

.page-the-thao__light-bg {
  background-color: var(--background-page-color);
  color: var(--text-main-color);
}

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-the-thao__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-the-thao__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.page-the-thao__figure {
  margin: 30px auto;
  text-align: center;
  max-width: 680px;
  background-color: var(--card-bg-color);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.page-the-thao__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.page-the-thao__figcaption {
  font-size: 0.9em;
  color: #666;
  margin-top: 10px;
}

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

.page-the-thao__list-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-the-thao__promo-box {
  background: var(--button-gradient);
  color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin: 50px auto;
  max-width: 800px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.page-the-thao__promo-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-the-thao__promo-text {
  font-size: 1.2em;
  margin-bottom: 30px;
}

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

.page-the-thao__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid var(--border-color);
  list-style: none; /* For details/summary */
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  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 20px 20px;
  font-size: 1.1em;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
  border-bottom: none;
}

.page-the-thao__conclusion {
  padding: 60px;
  text-align: center;
  border-radius: 12px;
  margin-top: 60px;
  background: var(--button-gradient);
  color: #ffffff;
}

.page-the-thao__conclusion-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

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

/* Tablet/Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    margin-top: -60px;
  }
  .page-the-thao__main-title {
    font-size: clamp(2em, 3.5vw, 3em);
  }
  .page-the-thao__description {
    font-size: 1.1em;
  }
  .page-the-thao__section-title {
    font-size: 2em;
  }
  .page-the-thao__promo-box {
    padding: 30px;
  }
  .page-the-thao__promo-title {
    font-size: 2em;
  }
  .page-the-thao__conclusion-title {
    font-size: 2.2em;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 20px;
  }
  .page-the-thao__hero-content {
    margin-top: -40px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
  }
  .page-the-thao__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 10px;
  }
  .page-the-thao__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  /* 4. 按钮与按钮容器 */
  .page-the-thao__btn {
    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: 1em;
  }

  /* 2. 单栏长文容器 */
  .page-the-thao__article-wrap {
    padding: 0 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__section {
    padding: 30px 0;
  }
  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-the-thao__paragraph,
  .page-the-thao__list-item {
    font-size: 1em;
    line-height: 1.5;
  }
  .page-the-thao__list {
    margin-left: 20px;
  }

  /* 3. 通用图片与 figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-the-thao__figure {
    margin: 20px auto;
    padding: 5px;
    max-width: 100%;
  }
  .page-the-thao__figcaption {
    font-size: 0.85em;
  }

  /* 5. 注册教程与 FAQ 区块 (FAQ here) */
  .page-the-thao__promo-box {
    padding: 30px 15px;
    margin: 30px auto;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-the-thao__promo-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }
  .page-the-thao__promo-text {
    font-size: 1.1em;
    margin-bottom: 20px;
  }
  .page-the-thao__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }
  .page-the-thao__faq-answer {
    padding: 0 15px 15px;
    font-size: 1em;
  }
  .page-the-thao__conclusion {
    padding: 40px 15px;
    margin-top: 40px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-the-thao__conclusion-title {
    font-size: 1.8em;
  }
}