/* Base styles for the Tài Xỉu page */
.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default for light background */
  background-color: var(--background-color, #f5f5f5); /* Inherit from shared, fallback to light grey */
}

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

.page-tai-xiu__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

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

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-tai-xiu__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFF5E1;
}

.page-tai-xiu__description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-tai-xiu__cta-buttons--center {
  margin-top: 30px;
}

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

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red text for contrast */
  border: 2px solid #F2B544;
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__btn-secondary {
  background: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544;
}

.page-tai-xiu__btn-secondary:hover {
  background-color: #7A0E0E; /* Deep Red */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-tai-xiu__dark-section {
  background-color: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
}

.page-tai-xiu__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 30px;
  font-weight: 700;
  color: inherit;
}

.page-tai-xiu__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
  color: inherit;
}

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

.page-tai-xiu__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

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

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

.page-tai-xiu__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-tai-xiu__highlight-text {
  color: #FFD86A; /* Gold color */
  font-weight: bold;
}

.page-tai-xiu__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 1.1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-tai-xiu__numbered-list {
  list-style: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 1.1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__numbered-list li {
  margin-bottom: 15px;
  font-weight: bold;
}

.page-tai-xiu__numbered-list li strong {
  color: #FFD86A;
}

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

.page-tai-xiu__card {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-tai-xiu__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-tai-xiu__card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFD86A;
}

.page-tai-xiu__card-text {
  font-size: 1rem;
  line-height: 1.5;
  text-align: justify;
}

.page-tai-xiu__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

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

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFF5E1; /* Text Main */
  background-color: #C91F17; /* Main Color */
  border-bottom: 1px solid #7A0E0E;
  list-style: none;
}

.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: 1.5rem;
  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: 20px 25px;
  font-size: 1.1rem;
  color: #f0f0f0;
  background-color: #D32F2F; /* Card BG */
  border-top: 1px solid #7A0E0E;
}

.page-tai-xiu__conclusion-section {
  padding-bottom: 80px;
}

.page-tai-xiu__conclusion-content {
  max-width: 900px;
}

/* Ensure all images are responsive by default */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-content {
    padding: 15px;
  }

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

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

  .page-tai-xiu__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-tai-xiu__sub-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  }

  .page-tai-xiu__text-block,
  .page-tai-xiu__list,
  .page-tai-xiu__numbered-list li,
  .page-tai-xiu__card-text,
  .page-tai-xiu__faq-answer {
    font-size: 1rem;
  }

  .page-tai-xiu__card-title {
    font-size: 1.3rem;
  }

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

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

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

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

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

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

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 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__section {
    padding: 40px 15px;
  }

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

  .page-tai-xiu__sub-title {
    font-size: 1.4rem !important;
    margin-top: 25px;
  }

  .page-tai-xiu__text-block,
  .page-tai-xiu__list,
  .page-tai-xiu__numbered-list,
  .page-tai-xiu__card-text,
  .page-tai-xiu__faq-answer {
    font-size: 1rem !important;
    text-align: left;
  }

  .page-tai-xiu__container {
    padding: 0;
  }

  /* 通用图片与容器 */
  .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__content-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-tai-xiu__card-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

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

  /* 首页模块3-6必出CSS模板 - Not applicable for non-homepage, but including required selectors as per instruction for completeness, ensuring they don't break layout */
  .page-tai-xiu__row-games, .page-tai-xiu__row-sport, .page-tai-xiu__row-coop {
    padding: 20px 15px;
  }
  .page-tai-xiu__games-title, .page-tai-xiu__sport-title, .page-tai-xiu__coop-title {
    font-size: 1.8rem !important;
  }
  .page-tai-xiu__slider-wrapper {
    padding: 0 15px;
  }
  .page-tai-xiu__slider-track {
    display: flex;
    flex-wrap: nowrap; /* Keep horizontal scroll */
    gap: 10px;
  }
  .page-tai-xiu__game-slide {
    flex: 0 0 160px !important;
    max-width: 160px !important;
  }
  .page-tai-xiu__banners-top-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important; /* 3 columns for mobile */
    gap: 10px;
    max-width: 100% !important;
    padding: 0 15px;
  }
  .page-tai-xiu__banner-item img {
    
    
  }
  .page-tai-xiu__blog-masonry {
    grid-template-columns: 1fr !important; /* Single column for mobile */
    gap: 20px;
  }
  .page-tai-xiu__blog-slider-track {
    display: flex;
    flex-wrap: nowrap; /* Keep horizontal scroll */
    gap: 15px;
  }
  .page-tai-xiu__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  /* No long text gold frame for this page type */
  .page-tai-xiu__home-content {
    height: auto !important;
    overflow-y: visible !important;
    padding: 20px 15px !important;
  }
}