/* Base styles for the Tài Xỉu page */
.page-tai-xiu {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default body background is white */
}

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: #26A9E0; /* Brand color for hero background */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 500px;
  justify-content: center;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-tai-xiu__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

.page-tai-xiu__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-tai-xiu__hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-tai-xiu__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-tai-xiu__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-tai-xiu__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 300px;
}

.page-tai-xiu__btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.page-tai-xiu__section {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: left;
}

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

.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-tai-xiu__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-tai-xiu__paragraph {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

.page-tai-xiu__list,
.page-tai-xiu__ordered-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333;
}

.page-tai-xiu__ordered-list {
  list-style-type: decimal;
}

.page-tai-xiu__list-item {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

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

/* Advantages Grid */
.page-tai-xiu__advantages {
  background-color: #f8f8f8;
}

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

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

.page-tai-xiu__advantage-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px;
  min-height: 200px;
}

.page-tai-xiu__advantage-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-tai-xiu__advantage-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

/* FAQ Section */
.page-tai-xiu__faq-section {
  background-color: #ffffff;
}

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

.page-tai-xiu__faq-item {
  background-color: #f0f8ff; /* Light blue background for FAQ item */
  border: 1px solid #e0f2ff;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  list-style: none;
}

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

.page-tai-xiu__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  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;
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  border-top: 1px solid #e0f2ff;
  background-color: #ffffff;
}

.page-tai-xiu__faq-answer p {
  margin-top: 15px;
  margin-bottom: 0;
}

/* Final CTA Section */
.page-tai-xiu__cta-final {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.page-tai-xiu__cta-final .page-tai-xiu__section-title {
  color: #ffffff;
}

.page-tai-xiu__cta-final .page-tai-xiu__paragraph {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Placeholder CSS for homepage-specific modules (as per requirements) */
.page-tai-xiu__home-content { /* Placeholder for homepage long text area */
  border: 1px solid #FBB00D;
  border-radius: 10px;
  height: auto; /* Adjusted for non-homepage flexibility */
  overflow-y: visible; /* Adjusted for non-homepage flexibility */
  padding: 20px;
  margin: 40px auto;
  max-width: 1200px;
}

.page-tai-xiu__row-games, .page-tai-xiu__row-sport, .page-tai-xiu__row-coop { /* Placeholder for game/sport/coop rows */
  background-color: #1A202C;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 40px auto;
}

.page-tai-xiu__games-title, .page-tai-xiu__sport-title, .page-tai-xiu__coop-title { /* Placeholder titles */
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
}

.page-tai-xiu__slider-wrapper { /* Placeholder for game slider */
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-tai-xiu__game-slide { /* Placeholder for game slide item */
  flex: 0 0 200px;
  max-width: 200px;
  background-color: #333;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

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

.page-tai-xiu__banner-item img { /* Placeholder for banner images */
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.page-tai-xiu__blog-masonry { /* Placeholder for blog masonry layout */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin: 40px auto;
  max-width: 1200px;
}

.page-tai-xiu__blog-card-link { /* Placeholder for blog card link */
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-tai-xiu__btn-outline { /* Placeholder for outline button */
  margin-top: auto;
  padding: 10px 15px;
  border: 1px solid #26A9E0;
  color: #26A9E0;
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}

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

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

.page-tai-xiu__blog-slide { /* Placeholder for blog slide item */
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-content {
    max-width: 700px;
  }

  .page-tai-xiu__main-title {
    font-size: 2.8rem;
  }

  .page-tai-xiu__hero-description {
    font-size: 1.1rem;
  }

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

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

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Small top padding */
    min-height: 400px;
  }

  .page-tai-xiu__hero-content {
    padding: 15px;
    width: 90%;
  }

  .page-tai-xiu__main-title {
    font-size: 2rem !important;
    margin-bottom: 15px;
  }

  .page-tai-xiu__hero-description {
    font-size: 0.95rem !important;
    margin-bottom: 20px;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* 按钮与按钮容器 */
  .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-left: 15px;
    padding-right: 15px;
  }

  .page-tai-xiu__cta-buttons,
  .page-tai-xiu__button-group,
  .page-tai-xiu__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;
  }
  .page-tai-xiu__cta-buttons { /* Specific for this page's hero CTA */
    display: flex;
    flex-direction: column;
  }

  /* 通用图片与容器 */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-tai-xiu__section,
  .page-tai-xiu__container,
  .page-tai-xiu__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tai-xiu__section {
    padding: 40px 0;
  }

  .page-tai-xiu__section-title {
    font-size: 1.6rem !important;
    margin-bottom: 30px;
  }

  .page-tai-xiu__sub-title {
    font-size: 1.2rem !important;
  }

  .page-tai-xiu__paragraph,
  .page-tai-xiu__list-item,
  .page-tai-xiu__advantage-description {
    font-size: 1rem !important;
  }

  .page-tai-xiu__advantages-grid {
    grid-template-columns: 1fr;
  }

  .page-tai-xiu__advantage-item {
    padding: 25px;
  }

  .page-tai-xiu__faq-question {
    font-size: 1rem !important;
    padding: 15px 20px;
  }

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

  .page-tai-xiu__cta-final {
    padding: 60px 15px;
  }

  /* 长文金框区 - Placeholder for homepage-specific long text */
  .page-tai-xiu__home-content {
    height: auto !important;
    overflow-y: visible !important;
    padding: 15px !important;
    margin: 20px auto !important;
  }

  /* 游戏轮播 - Placeholder for homepage-specific game slider */
  .page-tai-xiu__slider-wrapper { /* Ensure basic responsiveness */ }
  .page-tai-xiu__slider-track { /* Placeholder for game slider track */
    display: flex !important; /* Ensure flex for horizontal scroll */
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-tai-xiu__game-slide {
    flex: 0 0 160px !important;
    max-width: 160px !important;
    scroll-snap-align: start;
  }

  /* 合作品牌六宫格 - Placeholder for homepage-specific banners */
  .page-tai-xiu__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 20px auto !important;
  }
  .page-tai-xiu__banner-item img {
    
    
  }

  /* 博客卡片区 - Placeholder for homepage-specific blog cards */
  .page-tai-xiu__blog-masonry {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    margin: 20px auto !important;
  }
  .page-tai-xiu__blog-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-tai-xiu__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    scroll-snap-align: start;
  }
}