.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF1E8;
    background-color: #140C0C; /* Background color from custom palette */
}

.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    background-color: #140C0C;
}

.page-tai-xiu__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
}

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

.page-tai-xiu__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-tai-xiu__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #F3C54D; /* Gold color from custom palette */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-tai-xiu__intro-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
    color: #FFF1E8;
}

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

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

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button color from custom palette */
    color: #FFF1E8;
    border: none;
}

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

.page-tai-xiu__btn-secondary {
    background: #2A1212; /* Card BG color from custom palette */
    color: #F3C54D; /* Gold color from custom palette */
    border: 2px solid #F3C54D; /* Gold color for border */
}

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

.page-tai-xiu__section {
    padding: 60px 0;
    border-bottom: 1px solid #6A1E1E; /* Border color from custom palette */
}

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

.page-tai-xiu__section--introduction {
    background-color: #140C0C;
}

.page-tai-xiu__section--rules {
    background-color: #140C0C;
}

.page-tai-xiu__section--strategy {
    background-color: #2A1212; /* Card BG color from custom palette */
}

.page-tai-xiu__section--experience {
    background-color: #140C0C;
}

.page-tai-xiu__section--faq {
    background-color: #140C0C;
}

.page-tai-xiu__dark-section {
    background-color: #2A1212;
    color: #FFF1E8;
}

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

.page-tai-xiu__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: #F3C54D; /* Gold color from custom palette */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-tai-xiu__subsection-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: #FFB04A;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-tai-xiu__article-body {
    max-width: 100%;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #FFF1E8;
}

.page-tai-xiu__article-body p {
    margin-bottom: 1em;
}

.page-tai-xiu__article-body--flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-tai-xiu__article-body--reverse-flex {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    align-items: flex-start;
}

.page-tai-xiu__content-block {
    flex: 1;
}

.page-tai-xiu__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-tai-xiu__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block;
}

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

.page-tai-xiu__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 1em;
    color: #FFF1E8;
}

.page-tai-xiu__list li {
    margin-bottom: 0.5em;
}

.page-tai-xiu__inline-link {
    color: #F3C54D;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-tai-xiu__inline-link:hover {
    color: #FFB04A;
    text-decoration: underline;
}

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

/* FAQ Styles */
details.page-tai-xiu__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #6A1E1E; /* Border color from custom palette */
    overflow: hidden;
    background: #2A1212; /* Card BG color from custom palette */
    color: #FFF1E8;
}

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: #3a1a1a;
}

.page-tai-xiu__faq-qtext {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #FFF1E8;
}

.page-tai-xiu__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #F3C54D; /* Gold color for toggle icon */
    flex-shrink: 0;
    margin-left: 15px;
    width: 32px;
    text-align: center;
}

details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
    padding: 0 25px 20px;
    background: #140C0C; /* Background color from custom palette */
    border-radius: 0 0 8px 8px;
    color: #FFF1E8;
}

.page-tai-xiu__faq-answer p {
    margin-top: 0;
    margin-bottom: 1em;
}

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

/* Media Queries */
@media (max-width: 1024px) {
    .page-tai-xiu__main-title {
        font-size: clamp(2.2rem, 4.5vw, 3rem);
    }
    .page-tai-xiu__intro-text {
        font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    }
    .page-tai-xiu__section-title {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
    }
    .page-tai-xiu__subsection-title {
        font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    }
    .page-tai-xiu__article-body--flex,
    .page-tai-xiu__article-body--reverse-flex {
        flex-direction: column;
        align-items: center;
    }
    .page-tai-xiu__content-block, .page-tai-xiu__image-block {
        width: 100%;
        flex: none;
    }
    .page-tai-xiu__image {
        max-width: 80%;
    }
    details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
        padding: 15px 20px;
    }
    .page-tai-xiu__faq-qtext {
        font-size: 1rem;
    }
    .page-tai-xiu__faq-toggle {
        font-size: 24px;
        width: 28px;
    }
    details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-tai-xiu__hero-section {
        padding-top: 10px; /* Consistent small top padding */
        padding-bottom: 30px;
    }
    .page-tai-xiu__hero-image-wrapper {
        opacity: 0.1;
    }
    .page-tai-xiu__hero-image {
        object-fit: contain !important; /* Mobile: prevent cropping, show full image */
        aspect-ratio: unset !important; /* Allow aspect ratio to adjust */
        width: 100% !important;
        height: auto !important;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-tai-xiu__intro-text {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        margin-bottom: 25px;
    }
    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    /* 按钮与按钮容器 */
    .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.95rem;
    }
    .page-tai-xiu__section {
        padding: 40px 0;
    }
    .page-tai-xiu__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* 装饰主标题 + 长文 SEO 区 */
    .page-tai-xiu__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
        text-align: center;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 10px;
    }
    .page-tai-xiu__subsection-title {
        font-size: clamp(1.1rem, 4.5vw, 1.4rem);
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-tai-xiu__article-body {
        font-size: 0.95rem;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 5px;
    }
    .page-tai-xiu__article-body--flex,
    .page-tai-xiu__article-body--reverse-flex {
        flex-direction: column;
        gap: 20px;
    }
    .page-tai-xiu__image-block {
        min-width: unset;
        width: 100%;
    }
    /* 通用图片与容器 */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu__image {
        max-width: 100%;
    }
    .page-tai-xiu__image--center {
        max-width: 90%; /* Smaller for mobile center images */
    }
    .page-tai-xiu__list {
        margin-left: 20px;
    }
    /* FAQ */
    details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
        padding: 12px 15px;
    }
    .page-tai-xiu__faq-qtext {
        font-size: 0.95rem;
    }
    .page-tai-xiu__faq-toggle {
        font-size: 22px;
        width: 25px;
    }
    details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
        padding: 0 15px 12px;
    }
    .page-tai-xiu__cta-buttons--center {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
}