/* Base Styles & Typography */
.page-tai-xiu {
    color: #FFF3E6; /* Text Main */
    background-color: #0D0E12; /* Background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-tai-xiu__section {
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.page-tai-xiu__section-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #FFA53A; /* Auxiliary color */
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(255, 165, 58, 0.4);
}

.page-tai-xiu__sub-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 600;
    color: #FF8C1A;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-tai-xiu__content-block {
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-align: center;
    font-size: 17px;
}

.page-tai-xiu__content-block p {
    margin-bottom: 15px;
}

.page-tai-xiu__highlight {
    color: #FFB04D;
    font-weight: bold;
}

.page-tai-xiu__list {
    list-style: disc inside;
    text-align: left;
    max-width: 900px;
    margin: 20px auto;
    padding-left: 20px;
}

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

/* Buttons */
.page-tai-xiu__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-tai-xiu__btn--primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-tai-xiu__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-tai-xiu__btn--secondary {
    background: #17191F; /* Card BG */
    color: #FF8C1A; /* Main color */
    border: 2px solid #A84F0C; /* Border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__btn--secondary:hover {
    transform: translateY(-2px);
    background: #2a2d36;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__btn--small {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
}

.page-tai-xiu__text-link {
    color: #FFB04D;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-tai-xiu__text-link:hover {
    color: #FFA53A;
}

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    padding-top: 10px; /* Small top padding, relying on body for --header-offset */
    overflow: hidden;
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-tai-xiu__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 30px 15px;
    margin-top: -150px; /* Pull content up over image a bit */
    background: rgba(13, 14, 18, 0.7); /* Background color with opacity */
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.page-tai-xiu__hero-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    color: #FFA53A;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(255, 165, 58, 0.6);
}

.page-tai-xiu__hero-description {
    font-size: clamp(18px, 2.5vw, 22px);
    margin-bottom: 30px;
    color: #FFF3E6;
}

.page-tai-xiu__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping for mobile */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-tai-xiu__card {
    background-color: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFF3E6;
}

.page-tai-xiu__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-tai-xiu__card-title {
    font-size: 24px;
    font-weight: 700;
    color: #FF8C1A;
    margin-bottom: 15px;
}

/* Image with Text */
.page-tai-xiu__image-with-text {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-tai-xiu__image-with-text .page-tai-xiu__image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

.page-tai-xiu__image-with-text .page-tai-xiu__text-content {
    flex: 1;
    max-width: 50%;
    text-align: left;
}

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

/* Strategy Grid */
.page-tai-xiu__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-tai-xiu__strategy-card {
    background-color: #17191F;
    border: 1px solid #A84F0C;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: #FFF3E6;
}

.page-tai-xiu__strategy-card:hover {
    transform: translateY(-5px);
}

.page-tai-xiu__strategy-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__strategy-title {
    font-size: 22px;
    font-weight: 700;
    color: #FFA53A;
    margin-bottom: 10px;
}

/* Promotion Grid */
.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: #17191F;
    border: 1px solid #A84F0C;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: #FFF3E6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-tai-xiu__promo-card:hover {
    transform: translateY(-5px);
}

.page-tai-xiu__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__promo-title {
    font-size: 22px;
    font-weight: 700;
    color: #FFA53A;
    margin-bottom: 15px;
}

.page-tai-xiu__promo-card .page-tai-xiu__btn {
    margin-top: auto;
}

/* CTA Register Section */
.page-tai-xiu__container--center {
    text-align: center;
}

.page-tai-xiu__cta-buttons-bottom {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping for mobile */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* FAQ Section */
details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  color: #FFF3E6;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  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: #2a2d36;
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFA53A;
}
.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FF8C1A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 20px 20px;
  background: #0D0E12; /* Background */
  border-radius: 0 0 5px 5px;
  font-size: 16px;
}

/* General Image Responsiveness */
.page-tai-xiu img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Responsive Styles --- */
/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-tai-xiu__container {
        padding: 15px;
    }

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

    .page-tai-xiu__section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .page-tai-xiu__sub-title {
        font-size: 20px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .page-tai-xiu__content-block {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-tai-xiu__list {
        padding-left: 15px;
    }

    .page-tai-xiu__list li {
        font-size: 15px;
    }

    /* HERO 主图区域 */
    .page-tai-xiu__hero-section {
        min-height: unset;
        padding-top: 10px; /* Small top padding */
    }

    .page-tai-xiu__hero-image-wrapper {
        max-height: 40vh;
    }

    .page-tai-xiu__hero-image {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important;
        filter: brightness(0.8);
    }

    .page-tai-xiu__hero-content {
        margin-top: -80px; /* Adjust pull-up for mobile */
        padding: 20px 15px;
    }

    .page-tai-xiu__hero-title {
        font-size: 30px;
        margin-bottom: 15px;
    }

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

    /* 按钮与按钮容器 */
    .page-tai-xiu__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-tai-xiu__btn,
    .page-tai-xiu__btn--primary,
    .page-tai-xiu__btn--secondary,
    .page-tai-xiu a[class*="button"],
    .page-tai-xiu a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 产品展示图区域 - 通用网格卡片 */
    .page-tai-xiu__card-grid,
    .page-tai-xiu__strategy-grid,
    .page-tai-xiu__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        overflow-x: hidden; /* Prevent horizontal scroll */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-tai-xiu__content-block,
    .page-tai-xiu__list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        text-align: left; /* Align text left for better readability on mobile */
    }

    .page-tai-xiu__image-with-text {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .page-tai-xiu__image-with-text .page-tai-xiu__image,
    .page-tai-xiu__image-with-text .page-tai-xiu__text-content {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* CTA Register Section Mobile */
    .page-tai-xiu__cta-buttons-bottom {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Section Mobile */
    details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question { padding: 15px; }
    .page-tai-xiu__faq-qtext { font-size: 15px; }
    details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer { padding: 0 15px 15px; }

    /* 通用图片与容器 */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-tai-xiu__section,
    .page-tai-xiu__card,
    .page-tai-xiu__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Tablet (max-width: 1024px) - Adjustments for larger tablets */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-content {
        margin-top: -100px;
    }
    .page-tai-xiu__hero-title {
        font-size: 42px;
    }
    .page-tai-xiu__hero-description {
        font-size: 19px;
    }
    .page-tai-xiu__image-with-text {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    .page-tai-xiu__image-with-text .page-tai-xiu__image,
    .page-tai-xiu__image-with-text .page-tai-xiu__text-content {
        max-width: 90%;
        width: 90%;
    }
    .page-tai-xiu__section-title {
        font-size: 32px;
    }
    .page-tai-xiu__sub-title {
        font-size: 24px;
    }
    .page-tai-xiu__card-grid,
    .page-tai-xiu__strategy-grid,
    .page-tai-xiu__promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Desktop / Large Tablet (max-width: 849px) - Specific for Hero image contain */
@media (max-width: 849px) {
    .page-tai-xiu__hero-image img {
        object-fit: contain !important;
        aspect-ratio: unset !important;
    }
}