:root {
    --page-primary-color: #11A84E;
    --page-secondary-color: #22C768;
    --page-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-card-bg: #11271B;
    --page-bg: #08160F;
    --page-text-main: #F2FFF6;
    --page-text-secondary: #A7D9B8;
    --page-border: #2E7A4E;
    --page-glow: #57E38D;
    --page-gold: #F2C14E;
    --page-divider: #1E3A2A;
    --page-deep-green: #0A4B2C;
}

/* Base styles for the page */
.page-tai-xiu {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-text-main);
    background: var(--page-bg);
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-tai-xiu__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column; /* Enforce image on top, content below */
    align-items: center;
    text-align: center;
    background: var(--page-card-bg);
    border-radius: 8px;
    margin: 10px auto 40px auto;
    max-width: 1200px;
}

.page-tai-xiu__hero-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

.page-tai-xiu__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default for desktop */
    border-radius: 8px 8px 0 0;
    min-width: 200px;
    min-height: 200px;
}

.page-tai-xiu__hero-content {
    padding: 0 40px 40px;
    max-width: 900px;
    box-sizing: border-box;
    color: var(--page-text-main);
}

.page-tai-xiu__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Use clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--page-text-main);
}

.page-tai-xiu__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--page-text-secondary);
}

.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%;
}

.page-tai-xiu__btn-primary {
    background: var(--page-button-gradient);
    color: #ffffff;
    border: none;
}

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

.page-tai-xiu__btn-secondary {
    background: none;
    color: var(--page-text-main);
    border: 2px solid var(--page-border);
}

.page-tai-xiu__btn-secondary:hover {
    background: rgba(46, 122, 78, 0.2); /* Use border color for hover background */
    transform: translateY(-2px);
}

/* General Section Styling */
.page-tai-xiu__section {
    padding: 60px 0;
    margin-bottom: 30px;
    border-radius: 8px;
}

.page-tai-xiu__dark-section {
    background: var(--page-card-bg);
    color: var(--page-text-main);
}

.page-tai-xiu__section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-gold);
}

.page-tai-xiu__sub-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--page-text-main);
}

.page-tai-xiu__content-area {
    max-width: 900px;
    margin: 0 auto;
}

.page-tai-xiu__text-block p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--page-text-secondary);
}

.page-tai-xiu__text-block strong {
    color: var(--page-text-main);
}

.page-tai-xiu__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: var(--page-text-secondary);
}

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

.page-tai-xiu__article-figure {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

/* Features Grid */
.page-tai-xiu__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-tai-xiu__feature-card {
    background: var(--page-deep-green);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: var(--page-text-main);
}

.page-tai-xiu__feature-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
}

.page-tai-xiu__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--page-gold);
}

.page-tai-xiu__feature-card p {
    font-size: 1rem;
    color: var(--page-text-secondary);
}

/* Promo Cards */
.page-tai-xiu__promo-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-tai-xiu__promo-card {
    background: var(--page-deep-green);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-width: 300px;
    max-width: 45%; /* Two cards per row on desktop */
    text-align: center;
    display: flex;
    flex-direction: column;
    color: var(--page-text-main);
}

.page-tai-xiu__promo-card img {
    width: 100%;
    height: 250px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-tai-xiu__promo-card .page-tai-xiu__card-title {
    padding: 20px 20px 10px;
    margin-bottom: 0;
}

.page-tai-xiu__promo-card p {
    padding: 0 20px 20px;
    flex-grow: 1;
    color: var(--page-text-secondary);
}

.page-tai-xiu__promo-card .page-tai-xiu__btn-secondary {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* FAQ Section */
.page-tai-xiu__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--page-border);
  overflow: hidden;
  background: var(--page-deep-green); /* FAQ items use deep green background */
  color: var(--page-text-main);
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question:hover {
  background: rgba(46, 122, 78, 0.2); /* Use border color for hover background */
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-text-main);
}
.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 25px 20px;
  background: var(--page-card-bg); /* Answer background is card bg */
  border-radius: 0 0 8px 8px;
  color: var(--page-text-secondary);
}
.page-tai-xiu__faq-answer p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Final CTA Section */
.page-tai-xiu__cta-section {
    text-align: center;
    padding: 80px 0;
}

.page-tai-xiu__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-tai-xiu__cta-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--page-text-secondary);
}

/* Mobile responsive styles */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-section {
        margin: 10px 20px 40px 20px;
    }
    .page-tai-xiu__hero-content {
        padding: 0 30px 30px;
    }
    .page-tai-xiu__main-title {
        font-size: 2.5rem;
    }
    .page-tai-xiu__hero-description {
        font-size: 1rem;
    }
    .page-tai-xiu__section-title {
        font-size: 2.5rem;
    }
    .page-tai-xiu__sub-title {
        font-size: 1.8rem;
    }
    .page-tai-xiu__feature-card {
        padding: 25px;
    }
    .page-tai-xiu__promo-card {
        max-width: 48%;
    }
}

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

    /* HERO 主图区域 */
    .page-tai-xiu__hero-section {
        margin: 10px 15px 30px 15px;
        padding-top: 10px; /* Small top padding */
    }
    .page-tai-xiu__hero-image img {
        object-fit: contain !important; /* Must be contain for mobile */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-tai-xiu__hero-content {
        padding: 0 15px 25px;
    }
    .page-tai-xiu__main-title {
        font-size: 1.8rem; /* Smaller H1 for mobile */
        margin-bottom: 15px;
    }
    .page-tai-xiu__hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    /* 按钮与按钮容器 */
    .page-tai-xiu__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* General Section Styling for mobile */
    .page-tai-xiu__section {
        padding: 40px 0;
        margin-bottom: 20px;
    }
    .page-tai-xiu__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-tai-xiu__sub-title {
        font-size: 1.4rem;
        margin-top: 25px;
        margin-bottom: 15px;
    }
    .page-tai-xiu__text-block p,
    .page-tai-xiu__list li {
        font-size: 1rem;
    }

    /* 通用图片与容器 */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-tai-xiu__section,
    .page-tai-xiu__card,
    .page-tai-xiu__container,
    .page-tai-xiu__content-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Features Grid */
    .page-tai-xiu__features-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-tai-xiu__feature-card {
        padding: 20px;
    }
    .page-tai-xiu__feature-card img {
        margin-bottom: 15px;
    }
    .page-tai-xiu__card-title {
        font-size: 1.3rem;
    }

    /* 产品展示图区域 (Promo Cards) */
    .page-tai-xiu__promo-cards {
        flex-direction: column; /* Stack promo cards vertically */
        gap: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-tai-xiu__promo-card {
        max-width: 100%; /* Full width for single column */
        min-width: unset;
    }
    .page-tai-xiu__promo-card img {
        height: 200px; /* Adjust height for mobile */
    }
    .page-tai-xiu__promo-card .page-tai-xiu__btn-secondary {
        width: calc(100% - 40px);
        margin: 0 20px 20px;
    }

    /* FAQ Section for mobile */
    details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question { padding: 15px; }
    .page-tai-xiu__faq-qtext { font-size: 1rem; }
    .page-tai-xiu__faq-toggle { font-size: 20px; width: 24px; }
    details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer { padding: 0 15px 15px; }

    /* Final CTA Section for mobile */
    .page-tai-xiu__cta-section {
        padding: 50px 0;
    }
    .page-tai-xiu__cta-description {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }
}