:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --body-bg: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

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

.page-the-thao__section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

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

.page-the-thao__light-bg {
  background-color: #11271B; /* Slightly lighter dark background for contrast */
  color: var(--text-main);
}

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

/* HERO Section */
.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  padding-bottom: 60px;
  overflow: hidden;
  position: relative;
}

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

.page-the-thao__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the area, may crop sides */
  display: block;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-the-thao__hero-content {
  max-width: 900px;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.6);
}

.page-the-thao__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao a[class*="button"],
.page-the-thao a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  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);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  filter: brightness(1.1);
}

.page-the-thao__btn-secondary {
  background: none;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-the-thao__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--body-bg);
  transform: translateY(-3px);
}

/* Section Titles */
.page-the-thao__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.5);
}

.page-the-thao__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--text-secondary);
}

/* Sports Grid */
.page-the-thao__sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__sports-item {
  text-align: center;
}

.page-the-thao__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text-main); /* Ensure card text is light */
}

.page-the-thao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(17, 168, 78, 0.4);
}

.page-the-thao__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
  width: 100%;
  min-height: 200px; /* Enforce minimum image size */
}

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

.page-the-thao__card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1;
}

.page-the-thao__card-description a {
  color: var(--glow-color);
  text-decoration: underline;
}

.page-the-thao__card-description a:hover {
  color: var(--gold-color);
}

.page-the-thao__center-buttons {
  margin-top: 40px;
}

/* Features Grid */
.page-the-thao__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__feature-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
  width: 100%;
  min-height: 200px; /* Enforce minimum image size */
}

/* Guide Steps */
.page-the-thao__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__guide-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
  width: 100%;
  min-height: 200px; /* Enforce minimum image size */
}

/* Strategy Grid */
.page-the-thao__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__strategy-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
  width: 100%;
  min-height: 200px; /* Enforce minimum image size */
}

/* FAQ Section */
.page-the-thao__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-the-thao__faq-item summary.page-the-thao__faq-question:hover {
  background: var(--deep-green);
}

.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}

.page-the-thao__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--glow-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}

details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 25px 25px;
  background: var(--deep-green);
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary);
}

.page-the-thao__faq-answer p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.page-the-thao__faq-answer a {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-the-thao__faq-answer a:hover {
  color: var(--text-main);
}

/* CTA Banner */
.page-the-thao__cta-banner {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-the-thao__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  z-index: 0;
}

.page-the-thao__cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.5);
  padding: 40px;
  border-radius: 10px;
}

.page-the-thao__cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-the-thao__cta-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-the-thao__cta-btn {
  padding: 18px 40px;
  font-size: 1.2rem;
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.5);
}

/* Global image and container responsive styles */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

.page-the-thao__section,
.page-the-thao__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    padding: 30px 15px;
  }

  .page-the-thao__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-the-thao__hero-description {
    font-size: 1rem;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-the-thao__text-block {
    font-size: 0.95rem;
  }

  .page-the-thao__card-title {
    font-size: 1.3rem;
  }

  .page-the-thao__card-description {
    font-size: 0.9rem;
  }

  .page-the-thao__cta-content {
    padding: 30px;
  }

  .page-the-thao__cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-the-thao__cta-description {
    font-size: 1rem;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao a[class*="button"],
  .page-the-thao a[class*="btn"] {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-the-thao__faq-qtext {
    font-size: 1rem;
  }

  .page-the-thao__faq-toggle {
    font-size: 24px;
    width: 28px;
  }
}

@media (max-width: 849px) {
  .page-the-thao__hero-image img {
    object-fit: contain !important; /* Prevent cropping on smaller screens */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-the-thao__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust for mobile readability */
    margin-bottom: 15px;
  }

  .page-the-thao__hero-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  /* Section general */
  .page-the-thao__section {
    padding: 40px 0;
  }

  .page-the-thao__container {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-the-thao__text-block {
    font-size: 0.9rem;
    margin-bottom: 40px;
  }

  /* 产品展示图区域 - Sports Grid */
  .page-the-thao__sports-grid,
  .page-the-thao__features-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__strategy-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-the-thao__sports-item,
  .page-the-thao__feature-item,
  .page-the-thao__guide-item,
  .page-the-thao__strategy-item {
    width: 100%;
    box-sizing: border-box;
  }

  .page-the-thao__card {
    padding: 20px;
    border-radius: 10px;
  }

  .page-the-thao__card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min- /* Adjusted min-height for mobile cards */
  }

  .page-the-thao__card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .page-the-thao__card-description {
    font-size: 0.9rem;
  }

  /* 通用图片与容器 */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-the-thao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .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: 12px 20px;
    font-size: 1rem;
  }

  /* FAQ Section */
  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px;
  }

  .page-the-thao__faq-qtext {
    font-size: 1rem;
  }

  .page-the-thao__faq-toggle {
    font-size: 24px;
    width: 28px;
    margin-left: 10px;
  }

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

  /* CTA Banner */
  .page-the-thao__cta-banner {
    padding: 50px 0;
  }

  .page-the-thao__cta-content {
    padding: 30px 20px;
  }

  .page-the-thao__cta-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-the-thao__cta-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .page-the-thao__cta-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
  }
}