.page-the-thao {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: #f8f8f8; /* Light background for the page */
}

.page-the-thao__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
}

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

.page-the-thao__hero-content {
  max-width: 1150px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white for readability */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-50px); /* Lift slightly above the image */
  position: relative; /* Ensure it's above the image, not overlapping */
  z-index: 10;
  color: #333333;
}

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

.page-the-thao__description {
  font-size: 1.1em;
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

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

.page-the-thao__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  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: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: 2px solid #F4D34D;
  box-shadow: 0 4px 10px rgba(255, 216, 106, 0.4);
}

.page-the-thao__btn--primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 6px 15px rgba(255, 216, 106, 0.6);
}

.page-the-thao__btn--secondary {
  background: #C91F17;
  color: #FFF5E1;
  border: 2px solid #E53935;
  box-shadow: 0 4px 10px rgba(201, 31, 23, 0.4);
}

.page-the-thao__btn--secondary:hover {
  background: #E53935;
  box-shadow: 0 6px 15px rgba(201, 31, 23, 0.6);
}

.page-the-thao__section {
  padding: 50px 0;
  margin-bottom: 30px;
}

.page-the-thao__section:nth-of-type(even) {
  background-color: #f2f2f2;
}

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

.page-the-thao__section-title {
  font-size: 2.2em;
  color: #C91F17;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-the-thao__introduction-section p {
  font-size: 1.05em;
  text-align: justify;
  margin-bottom: 15px;
  color: #333333;
}

.page-the-thao__introduction-section p strong {
  color: #C91F17;
}

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

.page-the-thao__sport-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-the-thao__sport-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-the-thao__sport-card-title {
  font-size: 1.5em;
  color: #C91F17;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-the-thao__sport-card p {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__btn--small {
  padding: 8px 18px;
  font-size: 0.9em;
  border-radius: 20px;
  background: #E53935;
  color: #FFF5E1;
  border: 1px solid #C91F17;
}

.page-the-thao__btn--small:hover {
  background: #C91F17;
}

.page-the-thao__dark-section {
  background-color: #B71C1C; /* Custom Background color */
  color: #FFF5E1; /* Text Main color */
}

.page-the-thao__dark-section .page-the-thao__section-title,
.page-the-thao__dark-section h3 {
  color: #FFD86A; /* Gold color for titles on dark background */
}

.page-the-thao__dark-section p {
  color: #FFF5E1;
}

.page-the-thao__guide-section a {
  color: #FFD86A;
  text-decoration: underline;
}

.page-the-thao__guide-section a:hover {
  color: #F4D34D;
}

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

.page-the-thao__step-card {
  background: #D32F2F; /* Card BG color */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__step-number {
  width: 50px;
  height: 50px;
  background: #FFD86A; /* Button color */
  color: #7A0E0E; /* Deep Red for text on number */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  border: 3px solid #F4D34D; /* Gold border */
}

.page-the-thao__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: 600;
  color: #FFD86A; /* Gold color */
}

.page-the-thao__guide-cta {
  text-align: center;
  margin-top: 40px;
}

.page-the-thao__btn--gold {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red */
  border: 2px solid #F4D34D;
  box-shadow: 0 5px 15px rgba(255, 216, 106, 0.5);
  padding: 15px 35px;
  font-size: 1.15em;
}

.page-the-thao__btn--gold:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 8px 20px rgba(255, 216, 106, 0.7);
}

.page-the-thao__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-the-thao__promo-card {
  background: #D32F2F; /* Card BG color */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFF5E1; /* Text Main color */
}

.page-the-thao__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-the-thao__promo-title {
  font-size: 1.4em;
  color: #FFD86A; /* Gold color */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-the-thao__promo-card p {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__btn--promo {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red */
  border: 2px solid #F4D34D;
  padding: 10px 22px;
  font-size: 0.95em;
  border-radius: 25px;
}

.page-the-thao__btn--promo:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
}

.page-the-thao__tips-section {
  background-color: #f8f8f8;
}

.page-the-thao__tips-content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 30px;
}

.page-the-thao__tips-text {
  flex: 2;
  color: #333333;
}

.page-the-thao__tips-text h3 {
  font-size: 1.5em;
  color: #C91F17;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-the-thao__tips-text p {
  font-size: 1em;
  margin-bottom: 15px;
}

.page-the-thao__tips-image {
  flex: 1;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__faq-section {
  background-color: #B71C1C; /* Background color */
  color: #FFF5E1; /* Text Main color */
}

.page-the-thao__faq-section .page-the-thao__section-title {
  color: #FFD86A; /* Gold color */
}

.page-the-thao__faq-list {
  max-width: 900px;
  margin: 30px auto 0 auto;
}

.page-the-thao__faq-item {
  background: #D32F2F; /* Card BG color */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  color: #FFF5E1;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: #FFD86A; /* Gold color for question */
  user-select: none;
  list-style: none;
  position: relative;
}

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

.page-the-thao__faq-item[open] > .page-the-thao__faq-question {
  background-color: #7A0E0E; /* Deep Red for active question */
  border-bottom: 1px solid #E53935;
  color: #FFD86A;
}

.page-the-thao__faq-qtext {
  flex-grow: 1;
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #FFF5E1;
}

.page-the-thao__faq-answer p {
  margin-top: 10px;
}

.page-the-thao__cta-final {
  background-color: #f2f2f2;
  padding: 60px 0;
  text-align: center;
}

.page-the-thao__cta-wrap {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-the-thao__cta-final p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #333333;
}

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

/* Universal image responsive styles */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-the-thao__hero-image {
    max-height: 400px;
  }

  .page-the-thao__hero-content {
    transform: translateY(-30px);
    padding: 15px;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8em, 3.8vw, 2.5em);
  }

  .page-the-thao__description {
    font-size: 1em;
  }

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

  .page-the-thao__tips-content {
    flex-direction: column;
    align-items: center;
  }

  .page-the-thao__tips-image {
    flex: none;
    width: 80%;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 顶区标题 + 双 CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }

  .page-the-thao__hero-image {
    max-height: 300px;
  }

  .page-the-thao__hero-content {
    transform: translateY(-20px);
    padding: 15px;
    margin-left: 15px;
    margin-right: 15px;
    max-width: calc(100% - 30px) !important;
  }

  .page-the-thao__main-title {
    font-size: 1.8em !important;
    margin-bottom: 10px;
  }

  .page-the-thao__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-the-thao__hero-cta-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-the-thao__btn,
  .page-the-thao__btn--primary,
  .page-the-thao__btn--secondary,
  .page-the-thao__btn--gold,
  .page-the-thao__btn--small,
  .page-the-thao__btn--promo,
  .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__section {
    padding: 30px 0;
    margin-bottom: 20px;
  }

  /* 单栏长文容器 */
  .page-the-thao__article-wrap,
  .page-the-thao__cta-wrap {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

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

  .page-the-thao__sport-grid,
  .page-the-thao__step-grid,
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__sport-image,
  .page-the-thao__promo-image {
    height: auto;
  }

  .page-the-thao__tips-content {
    flex-direction: column;
    align-items: center;
  }

  .page-the-thao__tips-image {
    width: 100%;
    margin-top: 20px;
  }

  /* 按钮与按钮容器 */
  .page-the-thao__cta-group,
  .page-the-thao__hero-cta-group,
  .page-the-thao__guide-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* For multiple buttons in a group */
    gap: 10px !important;
  }

  /* 注册教程与 FAQ 区块 */
  .page-the-thao__step-card {
    padding: 20px;
  }

  .page-the-thao__step-title {
    font-size: 1.2em;
  }

  .page-the-thao__faq-list {
    margin-left: 15px;
    margin-right: 15px;
    max-width: calc(100% - 30px) !important;
  }

  .page-the-thao__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-the-thao__faq-answer {
    padding: 0 20px 15px;
  }

  .page-the-thao__cta-final {
    padding: 40px 0;
  }
}