.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light body background */
  background-color: #FFFFFF; /* Ensures consistency with body background */
}

.page-tai-xiu__container {
  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-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #f0f0f0; /* Light background for hero section */
  text-align: center;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

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

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

.page-tai-xiu__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #017439;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

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

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

.page-tai-xiu__btn--primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

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

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

.page-tai-xiu__section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-tai-xiu__section:nth-of-type(odd) {
  background-color: #f9f9f9;
}

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

.page-tai-xiu__subsection-title {
  font-size: 1.8rem;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-tai-xiu__paragraph {
  font-size: 1.05rem;
  margin-bottom: 15px;
  color: #333333;
}

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

.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-size: 0.95rem;
  color: #666666;
  margin-top: 10px;
}

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

.page-tai-xiu__ordered-list {
  list-style: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333;
}

.page-tai-xiu__list-item {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.page-tai-xiu__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Specific Styles */
.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: box-shadow 0.3s ease;
}

.page-tai-xiu__faq-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  background-color: #f0f8f0; /* Light green background for question */
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-tai-xiu__faq-item[open] > .page-tai-xiu__faq-question .page-tai-xiu__faq-toggle {
  content: '-';
  transform: rotate(180deg);
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #017439;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-tai-xiu__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.05rem;
  color: #333333;
  border-top: 1px solid #e9e9e9;
}

.page-tai-xiu__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
}

/* Remove default marker for details/summary */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-tai-xiu__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 顶区标题 + 双 CTA */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-tai-xiu__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

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

  .page-tai-xiu__hero-cta-buttons,
  .page-tai-xiu__cta-wrapper {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* 按钮与按钮容器 */
  .page-tai-xiu__btn {
    font-size: 1rem;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 单栏长文容器 */
  .page-tai-xiu__section {
    padding: 40px 0;
  }

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

  .page-tai-xiu__subsection-title {
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-tai-xiu__paragraph,
  .page-tai-xiu__list-item {
    font-size: 1rem;
  }

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

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

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

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

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

@media (max-width: 480px) {
  .page-tai-xiu__hero-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }

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

  .page-tai-xiu__subsection-title {
    font-size: 1.3rem;
  }
}