/* Base styles for the Tài Xỉu page, adhering to BEM naming and color scheme */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

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

.page-tai-xiu__section-title {
  font-size: 2.5em;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-tai-xiu__sub-title {
  font-size: 1.8em;
  color: #1F2D3D; /* Text Main */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-tai-xiu__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #1F2D3D; /* Text Main */
}

.page-tai-xiu__list,
.page-tai-xiu__ordered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #1F2D3D; /* Text Main */
}

.page-tai-xiu__list li,
.page-tai-xiu__ordered-list li {
  margin-bottom: 10px;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary,
.page-tai-xiu__btn-outline {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-tai-xiu__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background-color: #FFFFFF; /* Card BG */
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.1);
}

.page-tai-xiu__btn-secondary:hover {
  background-color: #2F6BFF;
  color: #FFFFFF;
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-tai-xiu__btn-outline {
  background: transparent;
  color: #2F6BFF;
  border: 1px solid #2F6BFF;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-tai-xiu__btn-outline:hover {
  background-color: #2F6BFF;
  color: #FFFFFF;
}

.page-tai-xiu__btn-center {
  display: block;
  margin: 30px auto;
  width: fit-content;
}

/* HERO Section */
.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: #F4F7FB; /* Background */
  text-align: center;
}

.page-tai-xiu__hero-image-wrapper {
  margin-bottom: 30px;
}

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

.page-tai-xiu__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__hero-description {
  font-size: 1.3em;
  color: #1F2D3D; /* Text Main */
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-tai-xiu__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Content Sections */
.page-tai-xiu__content-section {
  padding: 60px 0;
}

.page-tai-xiu__dark-bg {
  background-color: #2F6BFF; /* Main color */
  color: #FFFFFF; /* White text for dark background */
}

.page-tai-xiu__dark-bg .page-tai-xiu__section-title,
.page-tai-xiu__dark-bg .page-tai-xiu__sub-title,
.page-tai-xiu__dark-bg .page-tai-xiu__text-block,
.page-tai-xiu__dark-bg .page-tai-xiu__list li,
.page-tai-xiu__dark-bg .page-tai-xiu__ordered-list li {
  color: #FFFFFF;
}

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

.page-tai-xiu__feature-item {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: left;
  color: #1F2D3D;
}

.page-tai-xiu__feature-item .page-tai-xiu__feature-title {
  color: #2F6BFF;
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
}

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

/* Promotion Section */
.page-tai-xiu__promotion-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

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

.page-tai-xiu__promotion-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-tai-xiu__promotion-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.page-tai-xiu__promotion-title {
  font-size: 1.4em;
  color: #2F6BFF;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-tai-xiu__promotion-card p {
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #1F2D3D;
}

/* Mobile App Section */
.page-tai-xiu__mobile-app-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.page-tai-xiu__mobile-app-content {
  flex: 1;
  text-align: left;
}

.page-tai-xiu__mobile-app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-tai-xiu__mobile-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-tai-xiu__faq-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

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

.page-tai-xiu__faq-item {
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
  background-color: #FFFFFF;
  list-style: none;
  user-select: none;
}

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

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #2F6BFF;
  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 20px 20px 20px;
  font-size: 1.1em;
  color: #1F2D3D;
}

/* Related Articles Section */
.page-tai-xiu__related-articles-section {
  padding: 60px 0;
  background-color: #2F6BFF;
}

.page-tai-xiu__related-articles-section .page-tai-xiu__section-title {
  color: #FFFFFF;
}

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

.page-tai-xiu__blog-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-tai-xiu__blog-card-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 15px;
}

.page-tai-xiu__blog-card-title {
  font-size: 1.3em;
  color: #2F6BFF;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-tai-xiu__blog-card-excerpt {
  font-size: 0.95em;
  color: #1F2D3D;
  margin-bottom: 20px;
  padding: 0 20px;
  flex-grow: 1;
}

.page-tai-xiu__blog-card .page-tai-xiu__btn-outline {
  margin-top: auto;
  align-self: flex-start;
  margin-left: 20px;
  margin-bottom: 20px;
}

/* CTA Section */
.page-tai-xiu__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #F4F7FB;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Generic Slider styles (for potential future use or if a non-game slider is added) */
.page-tai-xiu__slider-wrapper {
  overflow: hidden;
  margin: 40px auto;
  max-width: 100%;
}

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

.page-tai-xiu__slider-item {
  flex: 0 0 calc(33.333% - 14px); /* Example for 3 items per view */
  max-width: calc(33.333% - 14px);
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* Generic Banner Grid styles (for potential future use or if a non-gameshow grid is added) */
.page-tai-xiu__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* Default for 6 columns */
  gap: 15px;
  margin: 40px auto;
  max-width: 100%;
}

.page-tai-xiu__banner-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

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

  .page-tai-xiu__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-tai-xiu__hero-description {
    font-size: 1.15em;
  }

  .page-tai-xiu__mobile-app-flex {
    flex-direction: column;
    gap: 30px;
  }

  .page-tai-xiu__mobile-app-content,
  .page-tai-xiu__mobile-app-image-wrapper {
    text-align: center;
  }

  .page-tai-xiu__blog-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-tai-xiu__slider-item {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

  .page-tai-xiu__banners-top-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* HERO 主图区域 */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
    margin-bottom: 15px;
  }

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

  .page-tai-xiu__hero-cta-buttons,
  .page-tai-xiu__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    margin-top: 20px;
  }

  /* 按钮与按钮容器 */
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary,
  .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;
  }

  .page-tai-xiu__hero-cta-buttons,
  .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;
    gap: 10px !important;
  }

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

  .page-tai-xiu__sub-title {
    font-size: 1.4em !important;
  }

  .page-tai-xiu__text-block {
    font-size: 1em !important;
  }

  /* 长文金框区 (adapted for general content section) */
  .page-tai-xiu__content-section {
    padding: 40px 0 !important;
  }

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

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

  .page-tai-xiu__mobile-app-flex {
    flex-direction: column !important;
    gap: 30px !important;
  }

  /* 通用图片与容器 */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-tai-xiu__hero-image-wrapper,
  .page-tai-xiu__feature-item,
  .page-tai-xiu__promotion-card,
  .page-tai-xiu__mobile-app-image-wrapper,
  .page-tai-xiu__blog-card,
  .page-tai-xiu__slider-item,
  .page-tai-xiu__banner-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 博客卡片区 */
  .page-tai-xiu__blog-masonry {
    grid-template-columns: 1fr !important;
  }

  /* 游戏轮播 (adapted for generic slider) */
  .page-tai-xiu__slider-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-tai-xiu__slider-track {
    display: flex !important;
    flex-wrap: nowrap !important; /* Ensure horizontal scroll */
  }
  .page-tai-xiu__slider-item {
    flex: 0 0 80% !important; /* Show one item + peek of next */
    max-width: 80% !important;
  }

  /* 合作品牌六宫格 (adapted for generic grid) */
  .page-tai-xiu__banners-top-wrapper {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile */
    gap: 10px !important;
  }
  .page-tai-xiu__banner-item img {
    
  }
}