/* style/tai-xiu.css */
.page-tai-xiu {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
}

.page-tai-xiu__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.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;
  margin-bottom: 30px;
}

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

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

.page-tai-xiu__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive font size */
  font-weight: bold;
  color: #FFD36B; /* Glow color for emphasis */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tai-xiu__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF6D6;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.page-tai-xiu__btn-secondary {
  background: #111111; /* Card BG color */
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E; /* Main color as border */
}

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

.page-tai-xiu__section {
  padding: 60px 0;
  border-bottom: 1px solid #3A2A12; /* Border color */
}

.page-tai-xiu__section:last-of-type {
  border-bottom: none;
}

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

.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); /* Responsive font size */
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-tai-xiu__sub-title {
  font-size: clamp(1.4rem, 2.8vw, 2rem); /* Responsive font size */
  color: #FFD36B; /* Auxiliary color */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-tai-xiu__article-wrap {
  max-width: 800px; /* Max width for content images */
  margin: 30px auto;
  display: flex;
  justify-content: center;
}

.page-tai-xiu__wp-caption {
  width: 100%;
  margin: 0;
}

.page-tai-xiu__image-full {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-tai-xiu__wp-caption-text {
  text-align: center;
  font-size: 0.9em;
  color: #BBB;
  margin-top: 10px;
}

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

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

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

.page-tai-xiu__faq-section {
  background-color: #111111; /* Card BG */
  padding: 60px 0;
}

.page-tai-xiu__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-tai-xiu__faq-item {
  background-color: #0A0A0A; /* Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF6D6;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #F2C14E; /* Main color */
  list-style: none; /* Remove default marker for details summary */
}

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

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

.page-tai-xiu__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #FFF6D6;
}

.page-tai-xiu__faq-answer p {
  margin: 0;
}

.page-tai-xiu__conclusion-section {
  text-align: center;
}

.page-tai-xiu__text-center {
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-image-wrapper {
    max-height: 400px;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
  .page-tai-xiu__section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }
  .page-tai-xiu__sub-title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 80%; /* Adjust width for better spacing on tablets */
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }
  .page-tai-xiu__hero-image-wrapper {
    max-height: 300px;
  }
  .page-tai-xiu__hero-content {
    padding: 0 15px;
  }
  .page-tai-xiu__main-title {
    font-size: 2.2rem !important; /* Fixed size for mobile */
    margin-bottom: 15px;
  }
  .page-tai-xiu__description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. 单栏长文容器 */
  .page-tai-xiu__section {
    padding: 40px 0;
  }
  .page-tai-xiu__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 30px;
  }
  .page-tai-xiu__sub-title {
    font-size: 1.4rem !important;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-tai-xiu p,
  .page-tai-xiu li {
    font-size: 16px;
  }
  .page-tai-xiu__list {
    margin-left: 20px;
  }

  /* 3. 通用图片与 figure */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    object-fit: cover;
  }
  .page-tai-xiu__article-wrap {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-tai-xiu__wp-caption-text {
    font-size: 0.85em;
  }

  /* 4. 按钮与按钮容器 (covered in top-section CTA and general buttons) */

  /* 5. FAQ 区块 */
  .page-tai-xiu__faq-section {
    padding: 40px 0;
  }
  .page-tai-xiu__faq-list {
    padding: 0 15px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-tai-xiu__faq-item {
    margin-bottom: 10px;
  }
  .page-tai-xiu__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-tai-xiu__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }
}