/* style/tai-xiu.css */

:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --body-bg: #F4F7FB;
    --text-main: #1F2D3D;
    --text-black: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--body-bg);
    line-height: 1.6;
}

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

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding for first section */
    padding-bottom: 40px;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

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

.page-tai-xiu__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    padding: 20px;
    max-width: 900px;
    margin-top: -150px; /* Pull content up slightly over image for better visual flow */
    background: rgba(0, 0, 0, 0.4); /* Slightly dark overlay for text readability */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-tai-xiu__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.page-tai-xiu__intro-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

/* General Section Styling */
.page-tai-xiu__section {
    padding: 60px 0;
    background-color: var(--card-bg);
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.page-tai-xiu__section:nth-child(even) {
    background-color: var(--body-bg);
}

.page-tai-xiu__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-black);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-tai-xiu__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-tai-xiu__sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 35px;
    margin-bottom: 15px;
}

.page-tai-xiu__paragraph {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-tai-xiu__highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.page-tai-xiu__figure {
    margin: 30px auto;
    text-align: center;
    max-width: 680px;
}

.page-tai-xiu__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-tai-xiu__figcaption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

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

.page-tai-xiu__list-item {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 10px;
    color: var(--text-main);
}

.page-tai-xiu__strong {
    font-weight: 700;
    color: var(--text-black);
}

/* Buttons */
.page-tai-xiu__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    box-shadow: 0 5px 15px var(--glow-color);
}

.page-tai-xiu__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--glow-color);
}

.page-tai-xiu__btn-secondary {
    background-color: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-tai-xiu__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--glow-color);
}

.page-tai-xiu__cta-buttons--center {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.page-tai-xiu__link-in-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-tai-xiu__link-in-text:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-tai-xiu__faq {
    background-color: var(--card-bg);
}

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

.page-tai-xiu__faq-item {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-tai-xiu__faq-item[open] {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.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: var(--text-black);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-color);
    list-style: none; /* Hide default marker */
}

.page-tai-xiu__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-tai-xiu__faq-qtext {
    flex-grow: 1;
}

.page-tai-xiu__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.page-tai-xiu__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
    background-color: #ffffff;
}

/* Conclusion Section */
.page-tai-xiu__conclusion {
    text-align: center;
    padding-bottom: 80px;
}

.page-tai-xiu__conclusion .page-tai-xiu__paragraph {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

    .page-tai-xiu__hero-content {
        margin-top: -100px; /* Adjust for smaller screens */
        padding: 15px;
    }

    .page-tai-xiu__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-tai-xiu__intro-text {
        font-size: 1rem;
    }

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

    .page-tai-xiu__sub-title {
        font-size: 1.6rem;
    }

    .page-tai-xiu__paragraph,
    .page-tai-xiu__list-item,
    .page-tai-xiu__faq-question,
    .page-tai-xiu__faq-answer {
        font-size: 0.95rem;
    }

    .page-tai-xiu__btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* 1. 顶区标题 + 双 CTA */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-tai-xiu__hero-image-wrapper {
        max-height: 300px;
    }

    .page-tai-xiu__hero-content {
        margin-top: -80px; /* Further adjust for mobile */
        padding: 15px;
        max-width: 95%;
    }

    .page-tai-xiu__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 10px;
    }

    .page-tai-xiu__intro-text {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

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

    .page-tai-xiu__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 15px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* 2. 单栏长文容器 */
    .page-tai-xiu__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__section {
        padding: 40px 0;
        margin-bottom: 15px;
    }

    .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: 10px;
    }

    .page-tai-xiu__paragraph,
    .page-tai-xiu__list-item,
    .page-tai-xiu__figcaption,
    .page-tai-xiu__faq-answer {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* 3. 通用图片与 figure */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu__figure {
        margin: 20px auto;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    /* 4. 按钮与按钮容器 (already covered in CTA section above) */
    /* 5. 注册教程与 FAQ 区块 */
    .page-tai-xiu__registration-guide .page-tai-xiu__sub-title {
        font-size: 1.4rem;
    }

    .page-tai-xiu__faq-item {
        margin-bottom: 10px;
    }

    .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: 15px 20px;
    }
}