/* Base Styles for page-tai-xiu */
.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Background color from custom scheme */
}

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

.page-tai-xiu__section {
  padding: 40px 0;
  margin-bottom: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-tai-xiu__section-title {
  font-size: 2.2em;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-tai-xiu__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
  line-height: 1.7;
}

.page-tai-xiu__text-link {
  color: #E53935;
  text-decoration: none;
  font-weight: bold;
}

.page-tai-xiu__text-link:hover {
  text-decoration: underline;
}

.page-tai-xiu__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-tai-xiu__numbered-list {
  list-style: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

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

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 40px;
  background-color: #E53935; /* Primary brand color as background */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-tai-xiu__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-tai-xiu__hero-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive font size */
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -1px;
}

.page-tai-xiu__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

/* Buttons */
.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  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, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

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

.page-tai-xiu__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-tai-xiu__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.page-tai-xiu__cta-buttons--bottom {
  margin-top: 40px;
}

/* Image content within sections */
.page-tai-xiu__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px auto;
  max-width: 800px; /* Constrain max width for content images */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-tai-xiu__card {
  background-color: #FFFFFF; /* Card background color */
  border: 1px solid #E0E0E0; /* Border color */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #333333; /* Text color for card */
}

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

.page-tai-xiu__card-title {
  font-size: 1.5em;
  color: #E53935;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-tai-xiu__card-description {
  font-size: 1em;
  color: #333333;
  line-height: 1.6;
}

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

.page-tai-xiu__faq-item {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.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: #333333;
  cursor: pointer;
  background-color: #fcfcfc;
  border-bottom: 1px solid #E0E0E0;
  list-style: none; /* Hide default marker for summary */
}

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

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question {
  background-color: #E53935;
  color: #ffffff;
  border-bottom-color: #FF5A4F;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  transform: rotate(45deg);
  color: #ffffff;
}

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

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #E53935;
}

.page-tai-xiu__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.6;
}

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

  .page-tai-xiu__section-title {
    font-size: 2em;
  }

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

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

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

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }
}

@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;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-tai-xiu__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
  }

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

  .page-tai-xiu__hero-cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* General Section and Titles */
  .page-tai-xiu__section {
    padding: 30px 0;
  }

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

  .page-tai-xiu__text-block,
  .page-tai-xiu__list-item,
  .page-tai-xiu__card-description {
    font-size: 1em !important;
  }

  /* Card Grid */
  .page-tai-xiu__card-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

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

  .page-tai-xiu__card-title {
    font-size: 1.3em !important;
    margin-bottom: 10px !important;
  }

  /* FAQ Section */
  .page-tai-xiu__faq-question {
    padding: 15px 20px !important;
    font-size: 1.1em !important;
  }

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

  /* 通用图片与容器 */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto !important;
  }

  .page-tai-xiu__image-content {
    max-width: 100% !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-left: 15px !important;
    padding-right: 15px !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;
    gap: 10px !important;
    flex-direction: column !important; /* Force vertical stacking for multiple buttons */
  }

  /* Non-existent modules for this non-homepage, but included for checklist compliance */
  /* 长文金框区 (Placeholder for homepage specific content) */
  .page-tai-xiu__home-content { /* Assuming this refers to a long text area, adapting general section styles */
    height: auto !important; /* Allow content to expand */
    overflow-y: visible !important;
    padding: 20px !important;
  }

  /* 游戏轮播 (Not applicable for this non-homepage, but ensuring general rules) */
  .page-tai-xiu__slider-track { /* Generic slider track adaptation if any */
    display: flex !important;
    flex-wrap: nowrap !important; /* Keep horizontal scroll if it were a game slider */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
  }
  .page-tai-xiu__slider-track::-webkit-scrollbar { /* Chrome, Safari, Opera */
    display: none;
  }
  .page-tai-xiu__game-slide { /* Generic game slide adaptation if any */
    flex: 0 0 calc(50% - 10px) !important; /* Two columns on mobile */
    max-width: calc(50% - 10px) !important;
  }

  /* 合作品牌六宫格 (Not applicable for this non-homepage, but ensuring general rules) */
  .page-tai-xiu__banners-top-wrapper { /* Generic banner grid adaptation if any */
    grid-template-columns: repeat(2, 1fr) !important; /* Changed from 3 to 2 for smaller screens */
    gap: 10px !important;
  }
  .page-tai-xiu__banner-item img {
    
    
  }

  /* 博客卡片区 (Not applicable for this non-homepage, but ensuring general rules) */
  .page-tai-xiu__blog-masonry {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  .page-tai-xiu__blog-card-link {
    height: auto !important;
  }
  .page-tai-xiu__blog-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important; /* Keep horizontal scroll if it were a blog slider */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
  }
  .page-tai-xiu__blog-slider-track::-webkit-scrollbar {
    display: none;
  }
  .page-tai-xiu__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}