/* style/the-thao.css */

:root {
  --page-the-thao-primary-color: #C61F1F;
  --page-the-thao-accent-color: #E53030;
  --page-the-thao-button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  --page-the-thao-card-bg: #2A1212;
  --page-the-thao-background: #140C0C;
  --page-the-thao-text-main: #FFF1E8;
  --page-the-thao-border-color: #6A1E1E;
  --page-the-thao-gold-color: #F3C54D;
  --page-the-thao-deep-red: #7E0D0D;
  --page-the-thao-light-text: #ffffff;
  --page-the-thao-dark-text: #333333;
}

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

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

.page-the-thao__top-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background: var(--page-the-thao-deep-red);
  color: var(--page-the-thao-light-text);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

.page-the-thao__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-the-thao-gold-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-the-thao__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-the-thao-text-main);
}

.page-the-thao__top-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

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

.page-the-thao__btn-primary {
  background: var(--page-the-thao-button-gradient);
  color: var(--page-the-thao-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: var(--page-the-thao-gold-color);
  border: 2px solid var(--page-the-thao-gold-color);
  box-shadow: 0 4px 15px rgba(243, 197, 77, 0.2);
}

.page-the-thao__btn-secondary:hover {
  background: var(--page-the-thao-gold-color);
  color: var(--page-the-thao-dark-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 197, 77, 0.4);
}

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

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

.page-the-thao__section {
  padding: 60px 0;
  background-color: var(--page-the-thao-background);
  color: var(--page-the-thao-text-main);
}

.page-the-thao__article-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-the-thao__section-title {
  font-size: 2.2em;
  color: var(--page-the-thao-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-the-thao__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--page-the-thao-text-main);
}

.page-the-thao__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--page-the-thao-text-main);
}

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

.page-the-thao__image-figure {
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-the-thao__content-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-the-thao__image-caption {
  font-size: 0.9em;
  color: rgba(255, 241, 232, 0.7);
  padding: 10px;
  background-color: rgba(42, 18, 18, 0.8);
}

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

.page-the-thao__info-card {
  background-color: var(--page-the-thao-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--page-the-thao-border-color);
}

.page-the-thao__card-title {
  font-size: 1.5em;
  color: var(--page-the-thao-gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

.page-the-thao__step-item {
  background-color: var(--page-the-thao-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-the-thao-border-color);
}

.page-the-thao__step-title {
  font-size: 1.4em;
  color: var(--page-the-thao-gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-the-thao__promo-box {
  background-color: var(--page-the-thao-card-bg);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  text-align: center;
  border: 1px solid var(--page-the-thao-border-color);
}

.page-the-thao__promo-title {
  font-size: 1.6em;
  color: var(--page-the-thao-gold-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-the-thao__promo-text {
  font-size: 1.1em;
  color: var(--page-the-thao-text-main);
  margin-bottom: 25px;
}

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

.page-the-thao__faq-item {
  background-color: var(--page-the-thao-card-bg);
  border: 1px solid var(--page-the-thao-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.2em;
  font-weight: 600;
  color: var(--page-the-thao-gold-color);
  cursor: pointer;
  background-color: var(--page-the-thao-deep-red);
  position: relative;
  list-style: none;
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transform: rotate(0deg);
  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: 15px 25px 20px;
  font-size: 1em;
  color: var(--page-the-thao-text-main);
  background-color: rgba(42, 18, 18, 0.7);
}

.page-the-thao__cta-bottom {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: clamp(2em, 5vw, 2.5em);
  }
  .page-the-thao__hero-description {
    font-size: clamp(1em, 1.8vw, 1.1em);
  }
  .page-the-thao__section-title {
    font-size: 2em;
  }
  .page-the-thao__info-cards, .page-the-thao__steps-guide {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-the-thao__top-section {
    padding-top: 10px !important;
  }
  .page-the-thao__hero-content {
    padding: 40px 15px;
  }
  .page-the-thao__main-title {
    font-size: 2em !important;
    margin-bottom: 15px;
  }
  .page-the-thao__hero-description {
    font-size: 1em !important;
    margin-bottom: 20px;
  }
  .page-the-thao__top-cta {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-the-thao__btn {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. 单栏长文容器 */
  .page-the-thao__article-wrap {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__section {
    padding: 40px 0;
  }
  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-the-thao__text-block {
    font-size: 0.95em;
  }
  .page-the-thao__list-item {
    font-size: 0.95em;
  }
  .page-the-thao__info-card, .page-the-thao__step-item, .page-the-thao__promo-box {
    padding: 20px;
  }
  .page-the-thao__card-title, .page-the-thao__step-title, .page-the-thao__promo-title {
    font-size: 1.3em;
  }

  /* 3. 通用图片与 figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__image-figure {
    margin: 20px auto;
    max-width: 100%;
  }

  /* 4. 按钮与按钮容器 */
  .page-the-thao__cta-bottom {
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-the-thao__cta-button, .page-the-thao__btn-primary, .page-the-thao__btn-secondary,
  .page-the-thao a[class*="button"], .page-the-thao a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-the-thao__cta-buttons, .page-the-thao__button-group, .page-the-thao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Ensure vertical stacking for buttons on mobile */
  }

  /* 5. FAQ 区块 */
  .page-the-thao__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-the-thao__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95em;
  }
  .page-the-thao__faq-section {
    margin-top: 30px;
    margin-bottom: 30px;
  }
}