/* style/the-thao.css */

:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --text-main-color: #F3F8FF;
  --text-secondary-color: #AFC4E8;
  --card-bg: #10233F;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Body background is dark (var(--deep-navy) from shared), so text should be light */
  background-color: var(--deep-navy);
  padding-bottom: 40px; /* Ensure some space at the bottom before footer */
}

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

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

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

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

.page-the-thao__hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-the-thao__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-the-thao__btn--primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

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

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

.page-the-thao__content-section {
  padding: 60px 0;
  background-color: var(--deep-navy);
  color: var(--text-secondary-color);
}

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

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 0 8px rgba(79, 168, 255, 0.3);
}

.page-the-thao__content-section h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--text-main-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__content-section p {
  margin-bottom: 20px;
  color: var(--text-secondary-color);
}

.page-the-thao__content-section a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
}

.page-the-thao__content-section a:hover {
  text-decoration: underline;
}

.page-the-thao__figure {
  margin: 40px auto;
  text-align: center;
  background-color: var(--card-bg);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  max-width: fit-content;
}

.page-the-thao__figure-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-the-thao__figcaption {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  margin-top: 10px;
}

.page-the-thao__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--text-secondary-color);
}

.page-the-thao__list li {
  margin-bottom: 10px;
  color: var(--text-secondary-color);
}

.page-the-thao__list li strong {
  color: var(--text-main-color);
}

.page-the-thao__step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-the-thao__step-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__step-title {
  color: var(--gold-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.page-the-thao__btn--inline {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 6px;
}

.page-the-thao__promo-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-the-thao__promo-title {
  color: var(--gold-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.page-the-thao__faq-section {
  margin-top: 50px;
  border-top: 1px solid var(--divider-color);
  padding-top: 30px;
}

.page-the-thao__faq-question {
  font-size: 1.3rem;
  color: var(--text-main-color);
  cursor: pointer;
  margin-bottom: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--divider-color);
  position: relative;
  padding-right: 30px;
}

.page-the-thao__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold-color);
  transition: transform 0.3s ease;
}

.page-the-thao__faq-answer {
  font-size: 1rem;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  padding-left: 15px;
  border-bottom: 1px solid var(--divider-color);
  padding-bottom: 20px;
}

.page-the-thao__call-to-action-bottom {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-the-thao__call-to-action-bottom .page-the-thao__section-title {
  margin-bottom: 25px;
}

.page-the-thao__call-to-action-bottom p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-secondary-color);
}

.page-the-thao__btn--large {
  padding: 16px 40px;
  font-size: 1.15rem;
  border-radius: 10px;
}

.page-the-thao__copyright {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary-color);
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--divider-color);
}

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

@media (max-width: 1024px) {
  .page-the-thao__article-wrap {
    padding: 0 20px;
  }
  .page-the-thao__hero-content {
    padding: 0 20px;
  }
  .page-the-thao__main-title {
    font-size: 3rem;
  }
  .page-the-thao__section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    padding-bottom: 30px;
  }
  .page-the-thao__main-title {
    font-size: 2.5rem !important;
    margin-bottom: 10px;
  }
  .page-the-thao__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-the-thao__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  /* 2. 单栏长文容器 */
  .page-the-thao__article-wrap {
    padding: 0 15px;
  }
  .page-the-thao__content-section {
    padding: 40px 0;
  }
  .page-the-thao__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 30px;
  }
  .page-the-thao__content-section h3 {
    font-size: 1.3rem;
  }
  .page-the-thao__content-section p,
  .page-the-thao__list li,
  .page-the-thao__figcaption,
  .page-the-thao__faq-answer {
    font-size: 0.95rem;
  }

  /* 3. 通用图片与 figure */
  .page-the-thao__figure {
    margin: 30px auto;
    padding: 10px;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .page-the-thao__figure-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 4. 按钮与按钮容器 */
  .page-the-thao__btn--inline {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  .page-the-thao__promo-box .page-the-thao__btn--inline {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  /* 5. 注册教程与 FAQ 区块 */
  .page-the-thao__step-item {
    padding: 20px;
  }
  .page-the-thao__step-title {
    font-size: 1.3rem;
  }
  .page-the-thao__faq-question {
    font-size: 1.1rem;
    padding-right: 25px;
  }
  .page-the-thao__faq-question::after {
    font-size: 1.3rem;
  }
  .page-the-thao__faq-answer {
    padding-left: 10px;
  }
  .page-the-thao__call-to-action-bottom {
    padding: 30px 15px;
  }
  .page-the-thao__btn--large {
    font-size: 1.05rem;
    padding: 14px 25px;
  }
}