.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
}

.page-tai-xiu__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
  color: #ffffff; /* Ensure white text on dark background */
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: 675px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: 30px;
  padding: 0 20px;
}

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

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

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-tai-xiu__btn-primary {
  background: #C91F17; /* Primary Brand Color */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #C91F17;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__btn-primary:hover {
  background: #E53935; /* Auxiliary Brand Color */
  border-color: #E53935;
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button Custom Color */
  color: #7A0E0E; /* Deep Red text for contrast on gold */
  border: 2px solid #F2B544; /* Border Custom Color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-tai-xiu__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF5E1; /* Text Main */
  line-height: 1.3;
}

.page-tai-xiu__light-bg .page-tai-xiu__section-title,
.page-tai-xiu__light-bg p,
.page-tai-xiu__light-bg li,
.page-tai-xiu__light-bg .page-tai-xiu__text-link {
  color: #333333; /* Dark text for light background */
}

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

.page-tai-xiu__dark-section .page-tai-xiu__section-title,
.page-tai-xiu__dark-section p,
.page-tai-xiu__dark-section li,
.page-tai-xiu__dark-section .page-tai-xiu__text-link {
  color: #FFF5E1; /* Light text for dark background */
}

.page-tai-xiu__overview-section .page-tai-xiu__section-title {
  color: #C91F17; /* Primary brand color for title on light bg */
}

.page-tai-xiu__section-intro {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: -20px auto 50px auto;
  color: #FFF5E1;
}

.page-tai-xiu__light-bg .page-tai-xiu__section-intro {
  color: #555555;
}

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

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

.page-tai-xiu__content-grid--reverse > * {
  direction: ltr;
}

.page-tai-xiu__text-block {
  font-size: 1rem;
}

.page-tai-xiu__sub-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #C91F17; /* Primary Brand Color */
}

.page-tai-xiu__dark-section .page-tai-xiu__sub-title {
  color: #F4D34D; /* Gold for sub-titles on dark background */
}

.page-tai-xiu__list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-bottom: 20px;
}

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

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

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

.page-tai-xiu__text-link {
  color: #E53935; /* Auxiliary Brand Color */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-tai-xiu__text-link:hover {
  color: #C91F17; /* Primary Brand Color */
}

.page-tai-xiu__dark-section .page-tai-xiu__text-link {
  color: #FFCC66; /* Glow for links on dark background */
}

.page-tai-xiu__dark-section .page-tai-xiu__text-link:hover {
  color: #F4D34D; /* Gold for links on dark background hover */
}

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

.page-tai-xiu__feature-card {
  background: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF5E1; /* Text Main */
  border: 1px solid #7A0E0E; /* Deep Red border */
}

.page-tai-xiu__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

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

.page-tai-xiu__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F4D34D; /* Gold */
}

.page-tai-xiu__card-text {
  font-size: 0.95rem;
  color: #FFF5E1; /* Text Main */
}

.page-tai-xiu__cta-bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-tai-xiu__faq-section {
  padding-bottom: 80px;
}

details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333; /* Dark text for light background FAQ */
}

details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question:hover {
  background: #f5f5f5;
}

.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Dark text for question */
}

.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #C91F17; /* Primary brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555; /* Slightly lighter dark text for answer */
}

.page-tai-xiu__faq-answer p {
  margin: 0;
  padding: 0;
  color: #555555; /* Ensure paragraph text is dark */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-image {
    height: 500px;
  }

  .page-tai-xiu__hero-content {
    max-width: 768px;
  }

  .page-tai-xiu__main-title {
    font-size: 2.8rem;
  }

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

  .page-tai-xiu__section-title {
    font-size: 2.2rem;
  }

  .page-tai-xiu__sub-title {
    font-size: 1.7rem;
  }

  .page-tai-xiu__feature-card {
    padding: 20px;
  }

  .page-tai-xiu__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding-bottom: 30px;
  }

  .page-tai-xiu__hero-image-wrapper {
    max-height: unset;
  }

  .page-tai-xiu__hero-image {
    height: auto !important;
    object-fit: contain !important; /* HERO 主图区域: 移动 object-fit:contain */
    aspect-ratio: unset !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-tai-xiu__hero-content {
    margin-top: 20px;
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* H1 字号 clamp */
    margin-bottom: 10px;
  }

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

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

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-tai-xiu__container {
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-tai-xiu__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-tai-xiu__section-intro {
    font-size: 1rem;
    margin: -10px auto 40px auto;
    padding: 0 10px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-tai-xiu__content-grid,
  .page-tai-xiu__content-grid--reverse {
    grid-template-columns: 1fr; /* 长文 SEO 区 */
    gap: 30px;
  }

  .page-tai-xiu__text-block p,
  .page-tai-xiu__text-block li {
    font-size: 0.95rem;
  }

  .page-tai-xiu__sub-title {
    font-size: clamp(1.3rem, 6vw, 1.7rem);
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-tai-xiu__content-image,
  .page-tai-xiu__feature-card .page-tai-xiu__card-image,
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tai-xiu__feature-card {
    padding: 20px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-tai-xiu__card-image {
    height: 150px;
  }

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

  .page-tai-xiu__card-text {
    font-size: 0.9rem;
  }

  .page-tai-xiu__cta-bottom {
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
    padding: 15px;
  }

  .page-tai-xiu__faq-qtext {
    font-size: 15px;
  }

  .page-tai-xiu__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

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

  /* Ensure all content sections are contained and don't cause overflow */
  .page-tai-xiu__overview-section,
  .page-tai-xiu__rules-section,
  .page-tai-xiu__strategy-section,
  .page-tai-xiu__why-cubet-section,
  .page-tai-xiu__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}