.page-tai-xiu__hero-section {
  padding-top: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 40px;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  height: 600px;
  position: relative;
  overflow: hidden;
}

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

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  margin-top: -100px; /* Adjust to sit below image */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__main-title {
  font-size: 3.2em;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-tai-xiu__description {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-tai-xiu__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-tai-xiu__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-tai-xiu__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
}

.page-tai-xiu__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-tai-xiu__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-tai-xiu__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-tai-xiu__introduction-section,
.page-tai-xiu__how-to-play-section,
.page-tai-xiu__strategy-section,
.page-tai-xiu__promotions-section,
.page-tai-xiu__why-choose-section,
.page-tai-xiu__faq-section,
.page-tai-xiu__cta-final-section {
  padding: 60px 0;
}

.page-tai-xiu__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-tai-xiu__dark-section .page-tai-xiu__section-title {
  color: #ffffff;
}

.page-tai-xiu__dark-section .page-tai-xiu__section-title::after {
  background-color: #ffffff;
}

.page-tai-xiu__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333; /* Default for light background */
}

.page-tai-xiu__dark-section .page-tai-xiu__text-block {
  color: #ffffff; /* For dark background */
}

.page-tai-xiu__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__numbered-list,
.page-tai-xiu__bullet-list {
  list-style-position: inside;
  margin-bottom: 30px;
  padding-left: 0;
}

.page-tai-xiu__numbered-list li,
.page-tai-xiu__bullet-list li {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 10px;
  color: #333333;
}

.page-tai-xiu__dark-section .page-tai-xiu__numbered-list li,
.page-tai-xiu__dark-section .page-tai-xiu__bullet-list li {
  color: #ffffff;
}

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

.page-tai-xiu__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tai-xiu__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-tai-xiu__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-tai-xiu__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-tai-xiu__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tai-xiu__btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #017439;
  color: #017439;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: auto;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-outline:hover {
  background-color: #017439;
  color: #ffffff;
}

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

.page-tai-xiu__feature-item {
  text-align: center;
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-tai-xiu__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-tai-xiu__feature-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-tai-xiu__feature-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-tai-xiu__faq-list {
  margin-top: 30px;
}

.page-tai-xiu__faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-tai-xiu__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  list-style: none;
  outline: none;
  transition: background-color 0.3s ease;
}

.page-tai-xiu__faq-item summary:hover {
  background-color: #f5f5f5;
}

.page-tai-xiu__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-tai-xiu__faq-qtext {
  flex-grow: 1;
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  transform: rotate(45deg);
}

.page-tai-xiu__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-tai-xiu__cta-final-section {
  text-align: center;
}

/* --- General CSS for modules not used on this page, but required in output --- */
.page-tai-xiu__home-content { /* Placeholder for gold frame content */
  border: 1px solid #FBB00D;
  border-radius: 10px;
  height: auto;
  overflow-y: visible;
  padding: 20px;
  margin: 40px auto;
  max-width: 1200px;
}

.page-tai-xiu__row-games, .page-tai-xiu__row-sport, .page-tai-xiu__row-coop {
  background-color: #1A202C;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
}

.page-tai-xiu__games-title, .page-tai-xiu__sport-title, .page-tai-xiu__coop-title {
  color: #fff;
  text-align: center;
}

.page-tai-xiu__slider-wrapper {
  overflow: hidden;
  margin-top: 30px;
  position: relative;
  padding: 0 40px; /* Space for nav buttons */
}

.page-tai-xiu__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transition: transform 0.5s ease-in-out;
}

.page-tai-xiu__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  background-color: #333;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.page-tai-xiu__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 40px auto;
}

.page-tai-xiu__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.page-tai-xiu__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 30px;
}

.page-tai-xiu__blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.page-tai-xiu__blog-slider {
  position: relative;
  overflow: hidden;
  padding: 0 40px; /* Space for nav buttons */
}

.page-tai-xiu__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
}

.page-tai-xiu__blog-slide {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-tai-xiu__main-title {
    font-size: 2.8em;
  }

  .page-tai-xiu__section-title {
    font-size: 2em;
  }

  .page-tai-xiu__hero-image-wrapper {
    height: 500px;
  }

  .page-tai-xiu__hero-content {
    margin-top: -80px;
  }

  .page-tai-xiu__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-tai-xiu__feature-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container,
  .page-tai-xiu__hero-section,
  .page-tai-xiu__introduction-section,
  .page-tai-xiu__how-to-play-section,
  .page-tai-xiu__strategy-section,
  .page-tai-xiu__promotions-section,
  .page-tai-xiu__why-choose-section,
  .page-tai-xiu__faq-section,
  .page-tai-xiu__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* HERO 主图区域 */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 20px;
  }

  .page-tai-xiu__hero-image-wrapper {
    height: 300px;
  }

  .page-tai-xiu__hero-content {
    margin-top: -60px;
    padding: 15px;
  }

  .page-tai-xiu__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }

  .page-tai-xiu__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column !important; /* Buttons stack vertically */
    gap: 10px;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary,
  .page-tai-xiu a[class*="button"],
  .page-tai-xiu 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 !important;
    font-size: 1em !important;
  }

  .page-tai-xiu__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-tai-xiu__text-block,
  .page-tai-xiu__numbered-list li,
  .page-tai-xiu__bullet-list li,
  .page-tai-xiu__card-description,
  .page-tai-xiu__feature-description,
  .page-tai-xiu__faq-answer p {
    font-size: 1em;
  }

  /* Long text gold frame */
  .page-tai-xiu__home-content {
    height: auto !important;
    overflow-y: visible !important;
    padding: 15px !important;
  }

  /* Game carousel */
  .page-tai-xiu__row-games {
    padding: 20px 0 !important;
  }

  .page-tai-xiu__slider-wrapper {
    padding: 0 15px !important;
  }

  .page-tai-xiu__slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .page-tai-xiu__game-slide {
    flex: 0 0 160px !important;
    max-width: 160px !important;
  }

  /* Partner grid */
  .page-tai-xiu__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important; /* 3 columns */
    gap: 10px;
    margin: 20px auto;
  }

  .page-tai-xiu__banner-item img {
    
    
  }

  /* Blog card section */
  .page-tai-xiu__blog-masonry {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .page-tai-xiu__blog-slider {
    padding: 0 15px !important;
  }

  .page-tai-xiu__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
  }

  .page-tai-xiu__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .page-tai-xiu__card-grid {
    grid-template-columns: 1fr !important;
  }

  .page-tai-xiu__feature-list {
    grid-template-columns: 1fr !important;
  }

  .page-tai-xiu__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-tai-xiu__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-tai-xiu__faq-answer {
    padding: 0 20px 15px 20px;
  }
}