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

.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small padding-top as shared.css handles body padding */
  padding-bottom: 60px;
  background-color: var(--deep-navy);
  color: var(--text-main);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height to prevent excessive size */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-the-thao__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-the-thao__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
}

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

.page-the-thao__hero-cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.page-the-thao__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  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: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: var(--text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-the-thao__btn-secondary {
  background: var(--card-bg);
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

.page-the-thao__section {
  padding: 60px 0;
}

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

.page-the-thao__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary);
}

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

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

.page-the-thao__dark-bg .page-the-thao__section-title {
  color: var(--gold);
}

.page-the-thao__dark-bg .page-the-thao__section-intro {
  color: var(--text-secondary);
}

.page-the-thao__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  height: 100%; /* Ensure cards in a grid have equal height */
  display: flex;
  flex-direction: column;
}

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

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

.page-the-thao__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-the-thao__advantage-card p {
  color: var(--text-secondary);
}

/* Bet Types Section */
.page-the-thao__bet-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-the-thao__bet-type-card p {
  color: var(--text-secondary);
}

/* How-to Section */
.page-the-thao__how-to-section {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-the-thao__how-to-section .page-the-thao__section-title {
  color: var(--gold);
}

.page-the-thao__how-to-section .page-the-thao__section-intro {
  color: var(--text-secondary);
}

.page-the-thao__step-card {
  margin-bottom: 40px;
  padding: 40px;
  background-color: var(--deep-navy);
  border-color: var(--divider);
}

.page-the-thao__step-card:last-child {
  margin-bottom: 0;
}

.page-the-thao__step-card .page-the-thao__card-title {
  color: var(--gold);
  font-size: 1.8em;
  margin-bottom: 25px;
}

.page-the-thao__step-card p {
  color: var(--text-secondary);
  font-size: 1.1em;
}

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

.page-the-thao__step-card a:hover {
  color: #fff;
}

.page-the-thao__figure {
  margin: 20px 0;
  text-align: center;
}

.page-the-thao__figure-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-the-thao__figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-top: 10px;
}

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

.page-the-thao__promo-card p {
  color: var(--text-secondary);
}

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

.page-the-thao__promo-card a:hover {
  color: #fff;
}

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

.page-the-thao__tip-card p {
  color: var(--text-secondary);
}

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

.page-the-thao__tip-card a:hover {
  color: #fff;
}

/* Responsible Gambling Section */
.page-the-thao__info-card {
  margin-bottom: 30px;
  padding: 30px;
  background-color: var(--deep-navy);
  border-color: var(--divider);
}

.page-the-thao__info-card:last-child {
  margin-bottom: 0;
}

.page-the-thao__info-card .page-the-thao__card-title {
  color: var(--gold);
}

.page-the-thao__info-card p {
  color: var(--text-secondary);
}

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

.page-the-thao__info-card a:hover {
  color: #fff;
}

/* FAQ Section */
.page-the-thao__faq-section {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-the-thao__faq-section .page-the-thao__section-title {
  color: var(--gold);
}

.page-the-thao__faq-section .page-the-thao__section-intro {
  color: var(--text-secondary);
}

.page-the-thao__faq-list {
  display: grid;
  gap: 20px;
}

.page-the-thao__faq-item {
  padding: 25px;
  background-color: var(--deep-navy);
  border-color: var(--divider);
}

.page-the-thao__faq-question {
  font-size: 1.25em;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 15px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-the-thao__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--gold);
}

.page-the-thao__faq-item.active .page-the-thao__faq-question::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-the-thao__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  color: var(--text-secondary);
  font-size: 1em;
}

.page-the-thao__faq-item.active .page-the-thao__faq-answer {
  max-height: 2000px; /* Large enough to show all content */
  margin-top: 15px;
}

/* Conclusion Section */
.page-the-thao__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-the-thao__conclusion-section .page-the-thao__section-title {
  color: var(--gold);
}

.page-the-thao__conclusion-section .page-the-thao__section-intro {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.page-the-thao__conclusion-cta .page-the-thao__btn {
  min-width: 250px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

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

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

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

  .page-the-thao__step-card .page-the-thao__card-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  /* 顶区标题 + 双 CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small padding-top */
    padding-bottom: 40px;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

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

  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 90%;
    padding: 0 15px;
  }

  .page-the-thao__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 单栏长文容器 */
  .page-the-thao__container,
  .page-the-thao__section-intro {
    padding-left: 15px !important;
    padding-right: 15px !important;
    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: 15px;
  }

  .page-the-thao__section-intro {
    margin-bottom: 30px;
  }

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

  .page-the-thao__figure-image {
    border-radius: 6px;
  }

  /* 按钮与按钮容器 */
  .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;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  /* 注册教程与 FAQ 区块 */
  .page-the-thao__advantages-grid,
  .page-the-thao__bet-types-grid,
  .page-the-thao__promotions-grid,
  .page-the-thao__tips-grid,
  .page-the-thao__faq-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-the-thao__step-card {
    padding: 25px;
    margin-bottom: 25px;
  }

  .page-the-thao__step-card .page-the-thao__card-title {
    font-size: 1.3em;
    margin-bottom: 15px;
  }

  .page-the-thao__step-card p {
    font-size: 0.95em;
  }

  .page-the-thao__info-card {
    padding: 25px;
    margin-bottom: 25px;
  }

  .page-the-thao__info-card .page-the-thao__card-title {
    font-size: 1.3em;
  }

  .page-the-thao__faq-item {
    padding: 20px;
  }

  .page-the-thao__faq-question {
    font-size: 1.1em;
    padding-right: 25px;
  }

  .page-the-thao__faq-question::after {
    font-size: 1.2em;
  }

  .page-the-thao__faq-answer {
    font-size: 0.95em;
  }

  .page-the-thao__conclusion-section {
    padding-bottom: 60px;
  }

  .page-the-thao__conclusion-cta .page-the-thao__btn {
    min-width: unset;
  }

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