/* Base styles for the Tài Xỉu page */
.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
}

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

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

.page-tai-xiu__dark-bg {
  background-color: #140C0C; /* Background */
  color: #FFF1E8; /* Text Main */
}

.page-tai-xiu__light-bg {
  background-color: #2A1212; /* Card BG */
  color: #FFF1E8; /* Text Main */
}

.page-tai-xiu__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F3C54D; /* Gold */
}

.page-tai-xiu__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F3C54D; /* Gold */
  max-width: 90%;
  margin: 0 auto 20px auto;
  text-align: center;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-tai-xiu__hero-content {
  text-align: center;
  padding: 30px 20px;
  max-width: 800px;
  box-sizing: border-box;
}

.page-tai-xiu__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF1E8;
}

/* Buttons */
.page-tai-xiu__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Blocks */
.page-tai-xiu__content-block p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #FFF1E8;
}

.page-tai-xiu__content-block strong {
  color: #F3C54D;
}

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

/* Benefits Grid */
.page-tai-xiu__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tai-xiu__card {
  background-color: #2A1212; /* Card BG */
  color: #FFF1E8; /* Text Main */
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

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

.page-tai-xiu__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F3C54D; /* Gold */
}

.page-tai-xiu__card p {
  font-size: 0.95em;
  line-height: 1.5;
  color: #FFF1E8;
  flex-grow: 1;
}

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

/* Guide Steps */
.page-tai-xiu__guide-steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-tai-xiu__guide-steps li {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__guide-steps h3 {
  font-size: 1.5em;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
}

.page-tai-xiu__guide-steps p {
  font-size: 1em;
  line-height: 1.6;
  color: #FFF1E8;
}

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

.page-tai-xiu__strategy-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-tai-xiu__strategy-image {
  max-width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-tai-xiu__strategy-item h3 {
  font-size: 1.4em;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
}

.page-tai-xiu__strategy-item p {
  font-size: 1em;
  line-height: 1.6;
  color: #FFF1E8;
  flex-grow: 1;
}

/* Promotions */
.page-tai-xiu__promo-details {
  text-align: center;
  max-width: 800px;
  margin: 40px auto 0 auto;
  padding: 30px;
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__promo-details h3 {
  font-size: 1.8em;
  color: #F3C54D; /* Gold */
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-tai-xiu__promo-details p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF1E8;
}

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

.page-tai-xiu__faq-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  cursor: pointer;
  list-style: none;
  user-select: none;
  position: relative;
  transition: background-color 0.3s ease;
}

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

.page-tai-xiu__faq-question:hover {
  background-color: #3a1a1a;
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFF1E8;
  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: #FFF1E8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-answer {
  max-height: 1000px; /* Sufficiently large to show content */
}

/* Call to Action */
.page-tai-xiu__cta {
  text-align: center;
}

.page-tai-xiu__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #FFF1E8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Required CSS for other modules (even if not explicitly in HTML for tai-xiu.html) --- */
/* Long text gold box */
.page-tai-xiu__home-content {
  border: 1px solid #F3C54D; /* Gold */
  border-radius: 10px;
  height: auto;
  max-height: 650px; /* Adjusted for content, can be auto */
  overflow-y: auto;
  padding: 30px;
  background-color: #2A1212;
  margin: 40px auto;
  box-sizing: border-box;
}

/* Game carousel */
.page-tai-xiu__row-games, .page-tai-xiu__row-sport, .page-tai-xiu__row-coop {
  background-color: #1A202C; /* Example background, adjust if needed */
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

.page-tai-xiu__slider-wrapper {
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}

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

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

/* Cooperative brands six-grid */
.page-tai-xiu__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 20px 0;
}

.page-tai-xiu__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: grayscale(100%); /* Example style */
  opacity: 0.7;
  transition: all 0.3s ease;
}

.page-tai-xiu__banner-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Blog card area */
.page-tai-xiu__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 40px;
  box-sizing: border-box;
}

.page-tai-xiu__blog-card {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-tai-xiu__blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-tai-xiu__blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-tai-xiu__blog-card-title {
  font-size: 1.3em;
  color: #F3C54D;
  margin-bottom: 10px;
}

.page-tai-xiu__blog-card-text {
  font-size: 0.95em;
  color: #FFF1E8;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-tai-xiu__btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #F3C54D;
  color: #F3C54D;
  text-decoration: none;
  border-radius: 6px;
  margin-top: auto;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-outline:hover {
  background-color: #F3C54D;
  color: #140C0C;
}

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

.page-tai-xiu__blog-slide {
  flex: 0 0 calc(33.333% - 14px); /* Approx 3 items with gap */
  max-width: calc(33.333% - 14px);
  box-sizing: border-box;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-tai-xiu__container {
    padding: 20px 30px;
  }
  .page-tai-xiu__section-title {
    font-size: 2em;
  }
  .page-tai-xiu__main-title {
    font-size: 2.5em;
  }
  .page-tai-xiu__benefits-grid, .page-tai-xiu__strategy-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .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__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) {
  /* HERO 主图区域 */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-tai-xiu__main-title {
    font-size: 1.8em !important;
    margin-bottom: 15px !important;
  }
  .page-tai-xiu__hero-description {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }

  /* 长文金框区 */
  .page-tai-xiu__home-content {
    height: auto !important;
    max-height: none !important;
    padding: 20px !important;
    margin: 30px auto !important;
  }
  .page-tai-xiu__home-content h2 {
    font-size: 1.5em !important;
  }

  /* 游戏轮播 */
  .page-tai-xiu__row-games, .page-tai-xiu__row-sport, .page-tai-xiu__row-coop {
    padding: 30px 15px !important;
  }
  .page-tai-xiu__games-title, .page-tai-xiu__sport-title, .page-tai-xiu__coop-title {
    font-size: 1.5em !important;
  }
  .page-tai-xiu__slider-track {
    display: flex !important;
    flex-wrap: nowrap !important; /* Ensure horizontal scroll */
    gap: 10px !important;
  }
  .page-tai-xiu__game-slide {
    flex: 0 0 160px !important;
    max-width: 160px !important;
  }

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

  /* 博客卡片区 */
  .page-tai-xiu__blog-masonry {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-tai-xiu__blog-card-image {
    height: 180px !important;
  }
  .page-tai-xiu__blog-card-title {
    font-size: 1.1em !important;
  }
  .page-tai-xiu__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .page-tai-xiu__blog-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
  }

  /* 通用图片与容器 */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container,
  .page-tai-xiu__promo-details,
  .page-tai-xiu__faq-item,
  .page-tai-xiu__strategy-item,
  .page-tai-xiu__guide-steps li {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-tai-xiu__section {
    padding: 40px 0 !important;
  }
  .page-tai-xiu__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px !important;
  }
  .page-tai-xiu__card-image {
    height: 150px !important;
  }
  .page-tai-xiu__strategy-image {
    height: 200px !important;
  }
  .page-tai-xiu__guide-steps h3 {
    font-size: 1.2em !important;
  }
  .page-tai-xiu__faq-question {
    font-size: 1.1em !important;
    padding: 15px 20px !important;
  }

  /* 按钮与按钮容器 */
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-outline,
  .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;
    font-size: 1em !important;
  }
  .page-tai-xiu__cta-wrapper,
  .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;
    gap: 10px !important;
    display: flex;
    flex-direction: column;
  }
  .page-tai-xiu__hero-content .page-tai-xiu__btn-primary {
    padding: 12px 20px !important;
  }
}