.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-tai-xiu__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
  overflow: hidden;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for desktop hero image */
  overflow: hidden;
}

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

.page-tai-xiu__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  margin-top: -80px; /* Overlap with image for visual effect */
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__main-title {
  color: #017439;
  font-size: clamp(2.2em, 3.5vw, 3.2em);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-tai-xiu__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__hero-cta, .page-tai-xiu__cta-bottom {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-tai-xiu__btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button fits container */
  box-sizing: border-box;
  text-align: center;
}

.page-tai-xiu__btn-primary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-tai-xiu__btn-primary:hover {
  background-color: #005f2c;
  transform: translateY(-2px);
}

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

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

.page-tai-xiu__btn-register {
  background-color: #C30808;
  color: #FFFFFF; /* Adjusted for contrast */
  border: 2px solid #C30808;
}

.page-tai-xiu__btn-register:hover {
  background-color: #9e0606;
  transform: translateY(-2px);
}

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

.page-tai-xiu__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-tai-xiu__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-tai-xiu__sub-title--white {
  color: #FFFFFF;
}

.page-tai-xiu__text-white {
  color: #f0f0f0;
}

.page-tai-xiu__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

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

.page-tai-xiu p {
  margin-bottom: 1em;
  color: inherit;
}

.page-tai-xiu a {
  color: #017439;
  text-decoration: none;
}

.page-tai-xiu a:hover {
  text-decoration: underline;
}

.page-tai-xiu__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
  color: inherit;
}

.page-tai-xiu__list--white {
  color: #f0f0f0;
}

.page-tai-xiu__list-item {
  margin-bottom: 0.5em;
}

.page-tai-xiu__figure {
  margin: 30px 0;
  text-align: center;
}

.page-tai-xiu__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: #777777;
  margin-top: 10px;
}

.page-tai-xiu__figcaption--white {
  color: #cccccc;
}

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

.page-tai-xiu__step-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-tai-xiu__step-title {
  color: #017439;
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-tai-xiu__step-item .page-tai-xiu__image {
  margin-bottom: 20px;
}

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

.page-tai-xiu__promo-card {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-tai-xiu__promo-title {
  color: #017439;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-tai-xiu__promo-card p {
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-tai-xiu__cta-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(2em, 4vw, 2.8em);
  }

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

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

  .page-tai-xiu__step-by-step {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-tai-xiu {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* 1. 顶区标题 + 双 CTA */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Specific top padding */
    padding-bottom: 20px;
  }

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

  .page-tai-xiu__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
    border-radius: 5px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
    margin-bottom: 10px;
  }

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

  .page-tai-xiu__hero-cta, .page-tai-xiu__cta-bottom {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    box-sizing: border-box;
  }

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

  /* 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__section {
    padding: 40px 0;
  }

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

  .page-tai-xiu__sub-title {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-tai-xiu p, .page-tai-xiu li {
    font-size: 0.95em;
  }

  /* 3. 通用图片与 figure */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-tai-xiu__figure {
    margin: 20px 0;
  }

  .page-tai-xiu__figcaption {
    font-size: 0.85em;
  }

  /* 4. 按钮与按钮容器 */
  .page-tai-xiu__step-item .page-tai-xiu__btn, .page-tai-xiu__promo-card .page-tai-xiu__btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 5. 注册教程与 FAQ 区块 (step-by-step for this page) */
  .page-tai-xiu__step-by-step {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tai-xiu__step-item {
    padding: 20px;
  }

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

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

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

  .page-tai-xiu__promo-title {
    font-size: 1.3em;
  }

  .page-tai-xiu__cta-bottom {
    margin-top: 30px;
    padding-top: 15px;
  }
}