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

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

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

.page-the-thao__section-title {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-the-thao__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

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

/* Buttons */
.page-the-thao__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-the-thao__btn--primary {
  background: var(--button-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-the-thao__btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-the-thao__btn--secondary {
  background: var(--deep-green-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(17, 168, 78, 0.2);
}

.page-the-thao__btn--secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(17, 168, 78, 0.4);
}

.page-the-thao__btn--small {
  padding: 8px 18px;
  font-size: 15px;
  border-radius: 6px;
}

.page-the-thao__btn-center {
  display: block;
  margin: 40px auto;
  width: fit-content;
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Fixed header spacing */
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

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

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

.page-the-thao__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -150px; /* Overlap with image slightly for visual effect */
  background: rgba(8, 22, 15, 0.9); /* Dark background from custom colors */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}

.page-the-thao__main-title {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-the-thao__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  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;
}

/* Card Grid */
.page-the-thao__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-the-thao__card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

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

.page-the-thao__card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-the-thao__card-description {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Image Full Width */
.page-the-thao__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: block;
}

/* List Grid (for sports variety) */
.page-the-thao__list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.page-the-thao__list-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-the-thao__list-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-the-thao__list-content {
  padding: 25px;
}

.page-the-thao__list-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-the-thao__list-description {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Guide Section */
.page-the-thao__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-the-thao__step-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-the-thao__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 15px var(--glow-color);
}

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

.page-the-thao__step-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Promotions Section */
.page-the-thao__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-the-thao__promo-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: var(--text-main);
}

.page-the-thao__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-the-thao__promo-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-the-thao__promo-description {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 25px;
  padding: 0 20px;
}

/* Tips Section */
.page-the-thao__tips-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-the-thao__tips-list li {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.page-the-thao__list-item-title {
  font-size: 20px;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-the-thao__tips-list li p {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: left;
  margin: 0;
}

/* Support Section */
.page-the-thao__support-contact {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-the-thao__support-contact p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

/* FAQ Section */
details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  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 20px;
  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-color);
}
.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 18px;
  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(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 20px 20px;
  background: var(--deep-green-color);
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary);
}
details.page-the-thao__faq-item .page-the-thao__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}

/* Global image reset for content area */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
  }
  .page-the-thao__main-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }
  .page-the-thao__hero-description {
    font-size: clamp(15px, 1.8vw, 18px);
  }
  .page-the-thao__section-title {
    font-size: clamp(26px, 3.5vw, 34px);
  }
  .page-the-thao__text-block {
    font-size: 16px;
  }
  .page-the-thao__cards-grid, .page-the-thao__list-grid, .page-the-thao__steps-grid, .page-the-thao__promotions-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    margin-bottom: 40px;
  }
  .page-the-thao__hero-image-wrapper {
    height: 400px;
  }
  .page-the-thao__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__hero-content {
    margin-top: -80px;
    padding: 25px 15px;
    border-radius: 10px;
  }
  .page-the-thao__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }
  .page-the-thao__hero-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  /* General content sections */
  .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: clamp(24px, 7vw, 32px);
    margin-bottom: 20px;
    padding-bottom: 10px;
  }
  .page-the-thao__text-block {
    font-size: 15px;
    margin-bottom: 30px;
    text-align: left;
    max-width: 100%;
  }

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

  /* Cards Grid */
  .page-the-thao__cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .page-the-thao__card {
    padding: 25px;
  }
  .page-the-thao__card-title {
    font-size: 20px;
  }
  .page-the-thao__card-description {
    font-size: 14px;
  }

  /* List Grid (for sports variety) */
  .page-the-thao__list-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
  }
  .page-the-thao__list-item {
    flex-direction: column;
  }
  .page-the-thao__list-image {
    height: 200px;
  }
  .page-the-thao__list-content {
    padding: 20px;
  }
  .page-the-thao__list-title {
    font-size: 20px;
  }
  .page-the-thao__list-description {
    font-size: 14px;
  }

  /* Guide Section */
  .page-the-thao__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
  }
  .page-the-thao__step-item {
    padding: 25px;
  }
  .page-the-thao__step-number {
    width: 50px;
    height: 50px;
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-the-thao__step-title {
    font-size: 20px;
  }
  .page-the-thao__step-description {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .page-the-thao__btn--small {
    padding: 10px 18px;
    font-size: 14px;
  }

  /* Promotions Section */
  .page-the-thao__promotions-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
  }
  .page-the-thao__promo-image {
    height: 180px;
  }
  .page-the-thao__promo-title {
    font-size: 20px;
  }
  .page-the-thao__promo-description {
    font-size: 14px;
  }

  /* Tips Section */
  .page-the-thao__tips-list li {
    padding: 20px;
    margin-bottom: 15px;
  }
  .page-the-thao__list-item-title {
    font-size: 18px;
  }
  .page-the-thao__tips-list li p {
    font-size: 14px;
  }

  /* Support Section */
  .page-the-thao__support-contact {
    padding: 30px 20px;
    margin-bottom: 40px;
  }
  .page-the-thao__support-contact p {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-the-thao__support-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* FAQ Section */
  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px;
  }
  .page-the-thao__faq-qtext {
    font-size: 16px;
  }
  .page-the-thao__faq-toggle {
    font-size: 24px;
    width: 25px;
    margin-left: 10px;
  }
  details.page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 15px 15px;
  }
  details.page-the-thao__faq-item .page-the-thao__faq-answer p {
    font-size: 14px;
  }

  /* 按钮与按钮容器 */
  .page-the-thao__btn,
  .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__hero-cta-buttons,
  .page-the-thao__support-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }
}