:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --btn-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  --card-bg: #2A1212;
  --body-bg: #140C0C;
  --text-main: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red: #7E0D0D;
}

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

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

.page-the-thao__hero-section {
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  justify-content: center;
  position: relative;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  padding-bottom: 40px;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Adjust as needed */
  overflow: hidden;
}

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

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

.page-the-thao__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--gold-color);
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-the-thao__description {
  font-size: 1.15em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-the-thao__cta-buttons--center {
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-the-thao__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  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(--btn-gradient);
  color: #ffffff;
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

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

.page-the-thao__btn-secondary {
  background: var(--deep-red);
  color: #ffffff;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(126, 13, 13, 0.3);
}

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

.page-the-thao__section-title {
  font-size: 2.2em;
  color: var(--gold-color);
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-the-thao__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-main);
}

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

.page-the-thao__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-the-thao__feature-image,
.page-the-thao__sport-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-the-thao__feature-title,
.page-the-thao__sport-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-the-thao__feature-text,
.page-the-thao__sport-description {
  font-size: 0.95em;
  color: var(--text-main);
  flex-grow: 1; /* Ensures consistent card height */
}

.page-the-thao__sport-card {
  text-decoration: none;
  color: inherit;
}

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

.page-the-thao__step-item {
  padding: 30px;
}

.page-the-thao__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-color);
  color: var(--body-bg);
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(255, 176, 74, 0.6);
}

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

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

.page-the-thao__content-with-image {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-the-thao__content-with-image:nth-child(even) {
  flex-direction: row-reverse;
}

.page-the-thao__text-content {
  flex: 1;
}

.page-the-thao__image-content {
  flex: 1;
  min-width: 300px; /* Ensure image has some minimum width */
}

.page-the-thao__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-the-thao__cta-final {
  text-align: center;
  padding: 50px 20px;
  background-color: var(--deep-red);
  border-radius: 15px;
  margin-top: 60px;
  margin-bottom: 60px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-the-thao__cta-final .page-the-thao__section-title {
  margin-top: 0;
  margin-bottom: 20px;
}

.page-the-thao__cta-final .page-the-thao__description {
  font-size: 1.2em;
  margin-bottom: 40px;
}

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

@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: 2.8em;
  }
  .page-the-thao__section-title {
    font-size: 2em;
  }
  .page-the-thao__description {
    font-size: 1.05em;
  }
  .page-the-thao__features-grid,
  .page-the-thao__sport-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-the-thao__content-with-image {
    flex-direction: column;
    text-align: center;
  }
  .page-the-thao__content-with-image:nth-child(even) {
    flex-direction: column;
  }
  .page-the-thao__text-content, .page-the-thao__image-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body for header offset */
    padding-bottom: 20px;
  }
  .page-the-thao__main-title {
    font-size: 2.2em;
    margin-bottom: 10px;
  }
  .page-the-thao__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-the-thao__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
    font-size: 0.95em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-the-thao__cta-buttons--center {
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  /* 2. 单栏长文容器 */
  .page-the-thao__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-the-thao__text-block {
    font-size: 0.95em;
  }
  .page-the-thao__card {
    padding: 20px;
  }
  .page-the-thao__feature-title,
  .page-the-thao__sport-title {
    font-size: 1.2em;
  }
  .page-the-thao__feature-text,
  .page-the-thao__sport-description {
    font-size: 0.9em;
  }

  /* 3. 通用图片与 figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-the-thao__hero-image-wrapper,
  .page-the-thao__image-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__content-with-image {
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .page-the-thao__content-with-image:nth-child(even) {
    flex-direction: column;
  }

  /* 4. 按钮与按钮容器 (already covered in CTA section above) */
  .page-the-thao__features-grid,
  .page-the-thao__sport-cards-grid,
  .page-the-thao__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  /* 5. 注册教程与 FAQ 区块 (steps grid covers tutorial) */
  .page-the-thao__step-item {
    padding: 20px;
  }
  .page-the-thao__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    margin-bottom: 15px;
  }
  .page-the-thao__step-title {
    font-size: 1.3em;
  }
  .page-the-thao__cta-final {
    padding: 30px 15px;
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .page-the-thao__cta-final .page-the-thao__description {
    font-size: 1em;
  }
}