.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #FFF3E6); /* Default text color for dark background */
  background-color: var(--bg-color, #0D0E12); /* Main background color */
}

.page-tai-xiu__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: var(--bg-color, #0D0E12);
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-tai-xiu__hero-content {
  text-align: center;
  padding: 30px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-tai-xiu__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  color: var(--main-color, #FF8C1A);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-tai-xiu__description {
  font-size: 1.1em;
  color: var(--text-main-color, #FFF3E6);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-tai-xiu__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background: transparent;
  color: var(--main-color, #FF8C1A);
  border: 2px solid var(--border-color, #A84F0C);
}

.page-tai-xiu__btn-secondary:hover {
  background: var(--main-color, #FF8C1A);
  color: #ffffff;
  border-color: var(--main-color, #FF8C1A);
  transform: translateY(-2px);
}

.page-tai-xiu__content-section {
  padding: 60px 0;
  background-color: var(--bg-color, #0D0E12);
  color: var(--text-main-color, #FFF3E6);
}

.page-tai-xiu__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-tai-xiu__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--main-color, #FF8C1A);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-tai-xiu__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--glow-color, #FFB04D);
  border-radius: 2px;
}

.page-tai-xiu__section-title--white {
  color: #ffffff;
}

.page-tai-xiu__sub-title {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--secondary-color, #FFA53A);
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-tai-xiu p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: var(--text-main-color, #FFF3E6);
}

.page-tai-xiu ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-main-color, #FFF3E6);
}

.page-tai-xiu ul li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-tai-xiu strong {
  color: var(--glow-color, #FFB04D);
}

.page-tai-xiu__image-figure {
  margin: 30px auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

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

.page-tai-xiu__image-caption {
  font-size: 0.95em;
  color: rgba(255, 243, 230, 0.7);
  margin-top: 10px;
}

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

.page-tai-xiu__info-card,
.page-tai-xiu__promo-card {
  background-color: var(--card-bg-color, #17191F);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color, #A84F0C);
  transition: transform 0.3s ease;
}

.page-tai-xiu__info-card:hover,
.page-tai-xiu__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--secondary-color, #FFA53A);
  margin-bottom: 15px;
}

.page-tai-xiu__promo-card .page-tai-xiu__content-image {
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-tai-xiu__promo-card .page-tai-xiu__btn {
  margin-top: 20px;
}

.page-tai-xiu__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-tai-xiu__step-card {
  background-color: var(--card-bg-color, #17191F);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color, #A84F0C);
}

.page-tai-xiu__step-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--glow-color, #FFB04D);
  margin-bottom: 15px;
}

.page-tai-xiu__btn-small {
  padding: 8px 18px;
  font-size: 0.95em;
  margin-top: 15px;
}

.page-tai-xiu__faq-section {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__faq-question {
  background-color: var(--card-bg-color, #17191F);
  color: var(--secondary-color, #FFA53A);
  padding: 18px 25px;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  border: 1px solid var(--border-color, #A84F0C);
  transition: background-color 0.3s ease;
}

.page-tai-xiu__faq-question:hover {
  background-color: rgba(255, 165, 58, 0.1); /* Lighter hover for dark background */
}

.page-tai-xiu__faq-answer {
  background-color: rgba(23, 25, 31, 0.7); /* Slightly transparent card background */
  padding: 15px 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 1.05em;
  color: var(--text-main-color, #FFF3E6);
  border: 1px solid var(--border-color, #A84F0C);
}

.page-tai-xiu__call-to-action-box {
  background: var(--deep-orange-color, #D96800); /* Using Deep Orange for contrast */
  padding: 50px 30px;
  border-radius: 15px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  color: #ffffff; /* White text for dark background */
}

.page-tai-xiu__call-to-action-box .page-tai-xiu__section-title {
  color: #ffffff;
}

.page-tai-xiu__call-to-action-box .page-tai-xiu__description {
  color: #ffffff;
  max-width: 900px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__article-wrap {
    padding: 0 15px;
  }
  .page-tai-xiu__section-title {
    font-size: 2em;
  }
  .page-tai-xiu__sub-title {
    font-size: 1.5em;
  }
  .page-tai-xiu__hero-image-wrapper {
    max-height: 400px;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(1.8em, 4vw, 3em);
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 30px;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Adjust for smaller screens */
    margin-bottom: 10px;
  }
  .page-tai-xiu__description {
    font-size: 1em !important;
    margin-bottom: 20px;
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important; /* Adjust padding for smaller width */
  }

  /* 2. 单栏长文容器 */
  .page-tai-xiu__article-wrap {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__content-section {
    padding: 40px 0 !important;
  }
  .page-tai-xiu__section-title {
    font-size: 1.8em !important;
    margin-bottom: 20px !important;
  }
  .page-tai-xiu__sub-title {
    font-size: 1.3em !important;
    margin-top: 30px !important;
    margin-bottom: 10px !important;
  }
  .page-tai-xiu p,
  .page-tai-xiu ul li {
    font-size: 0.95em !important;
  }

  /* 3. 通用图片与 figure */
  .page-tai-xiu__content-image,
  .page-tai-xiu__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-tai-xiu__image-figure {
    margin: 20px auto !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-tai-xiu__hero-image-wrapper {
    max-height: 300px !important; /* Further limit hero image height on mobile */
  }

  /* 4. 按钮与按钮容器 */
  .page-tai-xiu__btn-small {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 15px !important;
  }
  .page-tai-xiu__step-by-step,
  .page-tai-xiu__promo-grid,
  .page-tai-xiu__info-card-grid {
    grid-template-columns: 1fr !important; /* Single column layout */
    gap: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 5. 注册教程与 FAQ 区块 */
  .page-tai-xiu__step-card,
  .page-tai-xiu__info-card,
  .page-tai-xiu__promo-card {
    padding: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__faq-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__faq-question {
    font-size: 1.1em !important;
    padding: 15px 20px !important;
  }
  .page-tai-xiu__faq-answer {
    padding: 12px 20px !important;
    font-size: 0.95em !important;
  }

  .page-tai-xiu__call-to-action-box {
    padding: 40px 20px !important;
    margin-top: 40px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}