.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Main text color based on dark background */
  background-color: #140C0C; /* Overall background from custom colors */
}

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

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as per requirement */
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden;
  background-color: #140C0C; /* Ensure consistent background */
}

.page-tai-xiu__hero-image-wrapper {
  margin-bottom: 20px; /* Separates image from text */
}

.page-tai-xiu__hero-image {
  width: 100%;
  max-width: 1200px; /* Adjust based on container */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

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

.page-tai-xiu__main-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #F3C54D; /* Gold color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-tai-xiu__description {
  font-size: 1.1em;
  color: #FFF1E8;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  width: auto; /* Default width */
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom button gradient */
  color: #FFF1E8;
  border: none;
  box-shadow: 0 4px 10px rgba(255, 176, 74, 0.4);
}

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

.page-tai-xiu__btn-secondary {
  background: #2A1212; /* Card BG as secondary button background */
  color: #F3C54D; /* Gold text for secondary button */
  border: 2px solid #F3C54D; /* Gold border */
  box-shadow: 0 4px 10px rgba(243, 197, 77, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
  background: #F3C54D;
  color: #140C0C;
  transform: translateY(-2px);
}

/* General Sections */
.page-tai-xiu__section {
  padding: 60px 0;
  background-color: #140C0C; /* Default background */
}

.page-tai-xiu__section:nth-child(even) {
  background-color: #2A1212; /* Alternate section background */
}

.page-tai-xiu__dark-section {
  background-color: #C61F1F; /* Deep Red from brand color */
  color: #FFF1E8;
}

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

.page-tai-xiu__sub-title {
  font-size: 1.6em;
  color: #E53030; /* Auxiliary red for sub titles */
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-tai-xiu__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: #FFF1E8; /* Main text color */
}

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

.page-tai-xiu__highlight-gold {
  color: #F3C54D; /* Specific gold highlight */
  font-weight: bold;
}

.page-tai-xiu__ordered-list,
.page-tai-xiu__unordered-list {
  list-style-position: inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #FFF1E8;
}

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

.page-tai-xiu__unordered-list {
  list-style-type: disc;
}

.page-tai-xiu__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-tai-xiu__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 800px; /* Recommended size for content images */
}

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

.page-tai-xiu__card {
  background: #2A1212; /* Card BG from custom colors */
  color: #FFF1E8; /* Text Main color */
  border: 1px solid #6A1E1E; /* Border from custom colors */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tai-xiu__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

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

.page-tai-xiu__card-text {
  font-size: 1em;
  color: #FFF1E8;
}

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

.page-tai-xiu__faq-item {
  background: #2A1212; /* Card BG for FAQ item */
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF1E8;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #2A1212; /* Card BG */
  color: #F3C54D; /* Gold for FAQ question */
  list-style: none; /* Hide default marker for details summary */
}

.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit */
}

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

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #F3C54D;
  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;
  color: #FFF1E8;
}

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

/* Conclusion Section */
.page-tai-xiu__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

/* General image rules for content */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
  .page-tai-xiu {
    font-size: 16px;
    line-height: 1.5;
  }

  .page-tai-xiu__container {
    padding: 15px;
  }

  /* HERO 主图区域 */
  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 30px;
  }

  .page-tai-xiu__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }

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

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* 按钮与按钮容器 */
  .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: 12px 20px;
    font-size: 1em;
  }

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

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

  .page-tai-xiu__card-grid {
    grid-template-columns: 1fr; /* Single column for cards */
    gap: 20px;
  }

  .page-tai-xiu__card {
    padding: 20px;
  }

  .page-tai-xiu__card-title {
    font-size: 1.2em;
  }

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

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

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

  /* 游戏轮播 (placeholder for checklist - not used in HTML for this page) */
  .page-tai-xiu__slider-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 10px; /* For scrollbar */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-tai-xiu__slider-track {
    display: flex;
    flex-wrap: nowrap; /* Ensure horizontal scroll */
  }
  .page-tai-xiu__game-slide {
    flex: 0 0 160px; /* Smaller fixed width for mobile */
    max-width: 160px;
  }

  /* 合作品牌六宫格 (placeholder for checklist - not used in HTML for this page) */
  .page-tai-xiu__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns for mobile */
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__banner-item img {
     /* Smaller max-width for mobile */
    
  }

  /* 博客卡片区 (placeholder for checklist - not used in HTML for this page) */
  .page-tai-xiu__blog-masonry {
    grid-template-columns: 1fr; /* Single column for mobile blog cards */
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  .page-tai-xiu__blog-slide {
    flex: 0 0 100%; /* Full width for mobile blog slides */
    max-width: 100%;
    padding: 0 10px; /* Add some spacing */
  }

  /* Long text gold border area (placeholder for checklist - if it were on this page) */
  .page-tai-xiu__home-content { /* Placeholder, as this is for homepage long text */
    height: auto !important;
    overflow-y: visible !important;
    padding: 20px !important;
    font-size: 1em !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__home-content h2 {
    font-size: 1.6em !important;
  }
}