/* style/tai-xiu.css */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light background */
  background-color: #FFFFFF;
  box-sizing: border-box;
}

.page-tai-xiu * {
  box-sizing: border-box;
}

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

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

.page-tai-xiu__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding to account for fixed header */
  padding-bottom: 40px;
  background-color: #f0f8ff; /* Light background for hero section */
}

.page-tai-xiu__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
  padding: 0 20px;
}

.page-tai-xiu__main-title {
  font-size: clamp(2em, 3.5vw, 3em); /* Responsive font size */
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-tai-xiu__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

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

.page-tai-xiu__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

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

.page-tai-xiu__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__section-title {
  font-size: clamp(1.8em, 2.8vw, 2.5em); /* Responsive font size */
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-tai-xiu__sub-title {
  font-size: clamp(1.4em, 2.2vw, 1.8em);
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-tai-xiu p {
  margin-bottom: 1em;
  font-size: 1.05em;
  line-height: 1.7;
}

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

.page-tai-xiu__list li {
  margin-bottom: 0.8em;
  font-size: 1.05em;
}

.page-tai-xiu__list strong {
  color: #26A9E0;
}

.page-tai-xiu__figure {
  margin: 40px auto;
  text-align: center;
  max-width: 100%;
}

.page-tai-xiu__figure-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-tai-xiu__figure-caption {
  font-size: 0.9em;
  color: #777777;
  margin-top: 10px;
}

.page-tai-xiu__dark-section {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-tai-xiu__dark-section .page-tai-xiu__section-title,
.page-tai-xiu__dark-section .page-tai-xiu__sub-title,
.page-tai-xiu__dark-section .page-tai-xiu__list strong {
  color: #FFFFFF;
}

.page-tai-xiu__dark-section .page-tai-xiu__text-link {
  color: #a7e0ff; /* Lighter link color for dark background */
}

.page-tai-xiu__promo-box {
  background-color: #f8f8f8;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-tai-xiu__text-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-tai-xiu__text-link:hover {
  color: #1e87c0;
  text-decoration: underline;
}

/* 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-item[open] {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* Remove default marker */
}

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

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

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
  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: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  border-top: none;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-content {
    max-width: 700px;
  }

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

  .page-tai-xiu__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.2em);
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 30px;
  }

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

  .page-tai-xiu__main-title {
    font-size: 2.2em; /* Fixed size for mobile */
  }

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

  .page-tai-xiu__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }

  .page-tai-xiu__btn {
    width: 100% !important; /* Full width buttons */
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 1em;
  }

  /* 2. 单栏长文容器 */
  .page-tai-xiu__article-wrap {
    padding: 0 15px; /* Adjust padding for mobile */
  }

  .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;
  }

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

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

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

  .page-tai-xiu__figure {
    margin: 30px auto;
  }

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

  /* 4. 按钮与按钮容器 (already covered in hero-cta-buttons and .page-tai-xiu__btn) */
  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 5. FAQ 区块 */
  .page-tai-xiu__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  .page-tai-xiu__faq-toggle {
    font-size: 1.3em;
  }

  /* General mobile readability enhancements */
  .page-tai-xiu {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}