/* CSS Reset & Base Styles for .page-tai-xiu */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: var(--background-color, #FFFFFF);
}

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

.page-tai-xiu__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-tai-xiu__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__text-block p,
.page-tai-xiu ul,
.page-tai-xiu ol {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
}

.page-tai-xiu ul,
.page-tai-xiu ol {
  padding-left: 25px;
}

.page-tai-xiu ul li,
.page-tai-xiu ol li {
  margin-bottom: 8px;
}

/* Color Contrast Specifics */
.page-tai-xiu__dark-bg {
  background-color: #26A9E0; /* Main brand color as background */
  color: #ffffff; /* White text for contrast */
}

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

.page-tai-xiu__dark-bg .page-tai-xiu__section-description {
  color: #f0f0f0;
}

.page-tai-xiu__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-tai-xiu__text-block--white-text p,
.page-tai-xiu__text-block--white-text ul li,
.page-tai-xiu__text-block--white-text ol li {
  color: #ffffff;
}

/* Buttons */
.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.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: #d46b00;
  border-color: #d46b00;
}

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

.page-tai-xiu__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a8cc4;
  border-color: #1a8cc4;
}

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

.page-tai-xiu__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero */
  padding-bottom: 50px;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

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

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  background-color: rgba(38, 169, 224, 0.85); /* Semi-transparent brand color background */
  border-radius: 15px;
  padding-bottom: 40px;
}

.page-tai-xiu__main-title {
  font-size: clamp(32px, 4.5vw, 56px);
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.1;
}

.page-tai-xiu__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 25px;
}

/* Content Sections */
.page-tai-xiu__introduction-section,
.page-tai-xiu__rules-section,
.page-tai-xiu__bet-types-section,
.page-tai-xiu__strategy-section,
.page-tai-xiu__promotions-section,
.page-tai-xiu__guide-section,
.page-tai-xiu__faq-section,
.page-tai-xiu__conclusion-section {
  padding: 60px 0;
}

.page-tai-xiu__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

.page-tai-xiu__content-grid--reversed .page-tai-xiu__text-block {
  order: 2;
}

.page-tai-xiu__content-grid--reversed .page-tai-xiu__image-block {
  order: 1;
}

.page-tai-xiu__image-block {
  text-align: center;
}

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

/* Promo Cards */
.page-tai-xiu__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tai-xiu__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  color: #333333;
}

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

.page-tai-xiu__promo-card .page-tai-xiu__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-tai-xiu__promo-card p {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tai-xiu__promo-card .page-tai-xiu__btn-primary {
  margin-top: auto;
  width: auto;
}

/* FAQ Section */
.page-tai-xiu__faq-list {
  margin-top: 40px;
}

.page-tai-xiu__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* Hide default marker for details summary */
}

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

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

.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  content: '-';
  transform: rotate(45deg); /* Simple rotation for plus/minus effect */
}

.page-tai-xiu__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  color: #555555;
}

/* Conclusion Section */
.page-tai-xiu__conclusion-section {
  padding: 80px 0;
}

/* Placeholder CSS from prompt (not used in HTML for this page but included for completeness as per rules) */
.page-tai-xiu__home-content { /* This is typically for homepage long text, not used on tai-xiu page HTML */
  border: 1px solid #26A9E0; /* Using brand color for consistency */
  border-radius: 10px;
  padding: 20px;
  height: auto; /* Adjusted for non-homepage context */
  overflow-y: visible;
  color: #333333;
}

.page-tai-xiu__row-games, .page-tai-xiu__row-sport, .page-tai-xiu__row-coop { /* These are typically for homepage game/sport/coop sections */
  background-color: #F8F8F8; /* Lighter background for non-homepage context */
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
}

.page-tai-xiu__games-title, .page-tai-xiu__sport-title, .page-tai-xiu__coop-title { /* Titles for the above sections */
  color: #26A9E0;
  text-align: center;
}

.page-tai-xiu__slider-wrapper { /* For game sliders, not used on tai-xiu page HTML */
  overflow: hidden;
}

.page-tai-xiu__slider-track { /* For game sliders, not used on tai-xiu page HTML */
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
}

.page-tai-xiu__game-slide { /* For game sliders, not used on tai-xiu page HTML */
  flex: 0 0 200px;
  max-width: 200px;
}

.page-tai-xiu__banners-top-wrapper { /* For partner banners, not used on tai-xiu page HTML */
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.page-tai-xiu__banner-item img { /* For partner banners, not used on tai-xiu page HTML */
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.page-tai-xiu__blog-masonry { /* For blog section, not used on tai-xiu page HTML */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.page-tai-xiu__blog-card-link { /* For blog section, not used on tai-xiu page HTML */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-tai-xiu__btn-outline { /* For blog section, not used on tai-xiu page HTML */
  margin-top: auto;
}

.page-tai-xiu__blog-slider-track { /* For blog section, not used on tai-xiu page HTML */
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
}

.page-tai-xiu__blog-slide { /* For blog section, not used on tai-xiu page HTML */
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__container {
    padding: 15px;
  }

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

  .page-tai-xiu__content-grid--reversed .page-tai-xiu__text-block {
    order: unset;
  }

  .page-tai-xiu__content-grid--reversed .page-tai-xiu__image-block {
    order: unset;
  }

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

  .page-tai-xiu__main-title {
    font-size: clamp(30px, 4.5vw, 48px);
  }

  .page-tai-xiu__hero-description {
    font-size: 18px;
  }

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

  /* Placeholder CSS from prompt for 1024px */
  .page-tai-xiu__home-content { height: auto; overflow-y: visible; }
  .page-tai-xiu__slider-track { gap: 12px; }
  .page-tai-xiu__game-slide { flex: 0 0 180px; max-width: 180px; }
  .page-tai-xiu__banners-top-wrapper { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-tai-xiu__banner-item img {   }
  .page-tai-xiu__blog-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-tai-xiu__blog-slide { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); }
}

@media (max-width: 768px) {
  .page-tai-xiu {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-tai-xiu__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* HERO 主图区域 */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important;
    min-height: 400px;
  }
  .page-tai-xiu__hero-image {
    max-height: 400px;
  }
  .page-tai-xiu__hero-content {
    margin-top: -60px;
    padding: 15px;
    max-width: 95%;
  }
  .page-tai-xiu__main-title {
    font-size: 32px !important;
  }
  .page-tai-xiu__hero-description {
    font-size: 16px !important;
  }

  /* 长文金框区 (Placeholder for homepage, ensuring it's handled if ever present) */
  .page-tai-xiu__home-content {
    height: auto !important;
    overflow-y: visible !important;
    padding: 15px !important;
    font-size: 16px !important;
  }
  .page-tai-xiu__home-content h2 {
    font-size: 24px !important;
  }

  /* 游戏轮播 (Placeholder for homepage, ensuring it's handled if ever present) */
  .page-tai-xiu__slider-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .page-tai-xiu__slider-track {
    display: flex !important;
    flex-wrap: nowrap !important; /* Ensure horizontal scrolling */
    gap: 10px !important;
  }
  .page-tai-xiu__game-slide {
    flex: 0 0 160px !important;
    max-width: 160px !important;
  }

  /* 合作品牌六宫格 (Placeholder for homepage, ensuring it's handled if ever present) */
  .page-tai-xiu__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    max-width: 100% !important;
  }
  .page-tai-xiu__banner-item img {
    
    
  }

  /* 博客卡片区 (Placeholder for homepage, ensuring it's handled if ever present) */
  .page-tai-xiu__blog-masonry {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-tai-xiu__blog-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
  }
  .page-tai-xiu__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

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

  /* 按钮与按钮容器 */
  .page-tai-xiu__cta-button,
  .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 !important;
    padding-right: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    flex-direction: column !important; /* Stack buttons vertically on mobile */
    gap: 10px !important;
  }

  .page-tai-xiu__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .page-tai-xiu__faq-item {
    padding: 0 !important;
  }
  .page-tai-xiu__faq-question {
    padding: 15px !important;
    font-size: 16px !important;
  }
  .page-tai-xiu__faq-answer {
    padding: 10px 15px 15px !important;
    font-size: 15px !important;
  }
}