/* Base styles for the page */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Default text color for the page */
  background-color: #08162B; /* Default background, will be overridden by sections */
}

/* Define custom color variables */
:root {
  --Primary-Color: #113B7A;
  --Auxiliary-Color: #1D5FD1;
  --Button-Gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --Card-BG: #10233F;
  --Text-Main: #F3F8FF;
  --Text-Secondary: #AFC4E8;
  --Border: #244D84;
  --Glow: #4FA8FF;
  --Gold: #F2C14E;
  --Divider: #1B3357;
  --Deep-Navy: #08162B;
  --Auxiliary-Color-RGB: 29, 95, 209; /* For rgba usage */
  --Card-BG-RGB: 16, 35, 63;
}

/* HERO Section */
.page-the-thao__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body padding-top is from shared.css */
  background-color: var(--Deep-Navy);
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 40px;
}

.page-the-thao__hero-image {
  width: 100%;
  max-height: 600px; /* Limit height for desktop */
  overflow: hidden;
  margin-bottom: 20px;
}

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

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

.page-the-thao__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--Text-Main);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 1.15rem;
  color: var(--Text-Secondary);
  margin-bottom: 30px;
}

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

/* General Section Styling */
.page-the-thao__section {
  padding: 60px 0;
}

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

.page-the-thao__container--narrow {
  max-width: 800px;
}

.page-the-thao__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--Text-Main);
}

.page-the-thao__section-title--light {
  color: var(--Text-Main);
}

.page-the-thao__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--Text-Secondary);
}

.page-the-thao__section-description--light {
  color: var(--Text-Secondary);
}

/* Introduction Section (Light Background) */
.page-the-thao__introduction-section {
  background-color: #F3F8FF; /* Text Main as light background */
  color: #333333; /* Dark text for light background */
}

.page-the-thao__introduction-section .page-the-thao__section-title,
.page-the-thao__introduction-section .page-the-thao__section-description {
  color: #333333;
}

.page-the-thao__introduction-section .page-the-thao__text-block p {
  color: #333333;
}

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

.page-the-thao__text-block {
  flex: 1;
  font-size: 1.05rem;
  color: #333333;
}

.page-the-thao__text-block p {
  margin-bottom: 15px;
}

.page-the-thao__image-block {
  flex: 1;
  min-width: 200px;
}

.page-the-thao__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Bet Types Section (Dark Background) */
.page-the-thao__bet-types-section {
  background-color: var(--Deep-Navy);
}

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

.page-the-thao__card {
  background-color: var(--Card-BG);
  border: 1px solid var(--Border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-the-thao__card--dark {
  background-color: var(--Card-BG);
  color: var(--Text-Main);
}

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

.page-the-thao__card-text {
  font-size: 1rem;
  color: var(--Text-Secondary);
}

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

.page-the-thao__image-block--full-width {
  margin-top: 50px;
  text-align: center;
}

.page-the-thao__image-block--full-width img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Guide Section (Light Background) */
.page-the-thao__guide-section {
  background-color: #F3F8FF;
  color: #333333;
}

.page-the-thao__guide-section .page-the-thao__section-title,
.page-the-thao__guide-section .page-the-thao__section-description {
  color: #333333;
}

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

.page-the-thao__step-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__step-icon {
  width: 60px;
  height: 60px;
  background: var(--Button-Gradient);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__step-title {
  font-size: 1.4rem;
  color: var(--Primary-Color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-the-thao__step-text {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__step-link {
  color: var(--Auxiliary-Color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-the-thao__step-link:hover {
  color: #0d46a0;
}

.page-the-thao__image-block--center {
  margin-top: 50px;
  text-align: center;
}

.page-the-thao__image-block--center img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

/* Advantages Section (Dark Background) */
.page-the-thao__advantages-section {
  background-color: var(--Deep-Navy);
}

.page-the-thao__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-the-thao__advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background-color: var(--Card-BG);
  border: 1px solid var(--Border);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-the-thao__advantage-item:hover {
  transform: translateY(-5px);
}

.page-the-thao__advantage-icon {
  font-size: 1.5rem;
  color: var(--Gold);
  flex-shrink: 0;
}

.page-the-thao__advantage-item p {
  color: var(--Text-Secondary);
  font-size: 1rem;
  margin: 0;
}

.page-the-thao__advantage-item p strong {
  color: var(--Text-Main);
}

/* Promotions Section (Light Background) */
.page-the-thao__promotions-section {
  background-color: #F3F8FF;
  color: #333333;
}

.page-the-thao__promotions-section .page-the-thao__section-title,
.page-the-thao__promotions-section .page-the-thao__section-description {
  color: #333333;
}

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

.page-the-thao__promotions-section .page-the-thao__card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  color: #333333;
  text-align: left;
}

.page-the-thao__promotions-section .page-the-thao__card-title {
  color: var(--Primary-Color);
}

.page-the-thao__promotions-section .page-the-thao__card-text {
  color: #555555;
}

/* FAQ Section (Dark Background) */
.page-the-thao__faq-section {
  background-color: var(--Deep-Navy);
}

.page-the-thao__faq-section .page-the-thao__section-title,
.page-the-thao__faq-section .page-the-thao__section-description {
  color: var(--Text-Main);
}

.page-the-thao__faq-list {
  margin-top: 40px;
}

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--Border);
  overflow: hidden;
  background: var(--Card-BG);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
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;
  color: var(--Text-Main);
}
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: rgba(var(--Auxiliary-Color-RGB), 0.1);
}
.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: 24px;
  font-weight: bold;
  color: var(--Gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 20px 20px;
  background: rgba(var(--Card-BG-RGB), 0.5);
  border-radius: 0 0 5px 5px;
  color: var(--Text-Secondary);
}
.page-the-thao__faq-answer p {
  color: var(--Text-Secondary);
  margin-bottom: 10px;
}
.page-the-thao__faq-answer a {
  color: var(--Auxiliary-Color);
  text-decoration: none;
  font-weight: 600;
}
.page-the-thao__faq-answer a:hover {
  text-decoration: underline;
}

/* Conclusion Section (Dark Background) */
.page-the-thao__conclusion-section {
  background-color: var(--Deep-Navy);
  padding-bottom: 80px;
}

/* Buttons */
.page-the-thao__btn-primary {
  display: inline-block;
  background: var(--Button-Gradient);
  color: #ffffff;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 0 15px var(--Glow);
}

.page-the-thao__btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--Text-Main);
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--Auxiliary-Color);
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-secondary:hover {
  background: var(--Auxiliary-Color);
  color: #ffffff;
  box-shadow: 0 0 15px var(--Glow);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }
  .page-the-thao__hero-description {
    font-size: 1.05rem;
  }
  .page-the-thao__section {
    padding: 50px 0;
  }
  .page-the-thao__section-title {
    font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  }
  .page-the-thao__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-the-thao__image-block {
    order: -1;
  }
  .page-the-thao__advantage-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body padding-top is from shared.css */
    padding-bottom: 30px;
  }
  .page-the-thao__hero-image {
    max-height: 400px; /* Adjust height for mobile */
    margin-bottom: 15px;
  }
  .page-the-thao__hero-image img {
    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-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-the-thao__hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .page-the-thao__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    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;
  }

  /* 通用图片与容器 */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__section,
  .page-the-thao__container,
  .page-the-thao__content-wrapper,
  .page-the-thao__bet-type-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__advantage-list,
  .page-the-thao__promotion-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-the-thao__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 15px;
    word-break: break-word;
  }
  .page-the-thao__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-the-thao__text-block,
  .page-the-thao__article-body { /* Assuming __article-body for long text */
    font-size: 0.95rem;
    max-width: 100% !important;
    word-wrap: break-word;
  }
  .page-the-thao__article-figure { /* Assuming for images within long text */
    max-width: 100% !important;
    margin: 20px auto !important;
    text-align: center;
  }

  /* 产品展示图区域 (No gameshow, so general card grid) */
  .page-the-thao__bet-type-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__advantage-list,
  .page-the-thao__promotion-grid {
    grid-template-columns: 1fr; /* Single column for most grids on mobile */
    gap: 20px;
  }
  .page-the-thao__card {
    padding: 20px;
    min-height: unset;
  }
  .page-the-thao__card-title {
    font-size: 1.3rem;
  }

  /* FAQ */
  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px;
  }
  .page-the-thao__faq-qtext {
    font-size: 1rem;
  }
  details.page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 15px 15px;
  }
}