/* style/tai-xiu.css */

:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg: #D32F2F;
    --main-bg: #B71C1C;
    --text-main: #FFF5E1;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red: #7A0E0E;
}

.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Body background is dark (#B71C1C), so text is light */
    background-color: var(--main-bg);
    line-height: 1.6;
    padding-bottom: 40px;
}

.page-tai-xiu__article-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Rely on body padding-top for header offset */
    background-color: var(--deep-red);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
}

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

.page-tai-xiu__hero-content {
    text-align: center;
    padding: 30px 20px;
    max-width: 960px;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
    color: var(--text-main);
}

.page-tai-xiu__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-tai-xiu__description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main);
}

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

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

.page-tai-xiu__btn--primary {
    background: var(--button-gradient);
    color: var(--deep-red); /* Dark text on light gold button for contrast */
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__btn--secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-tai-xiu__section {
    padding: 40px 0;
    margin-bottom: 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__sub-title {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    color: var(--gold-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu p {
    margin-bottom: 15px;
    color: var(--text-main);
}

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

.page-tai-xiu__list--ordered {
    list-style: decimal;
}

.page-tai-xiu__list-item {
    margin-bottom: 10px;
    color: var(--text-main);
}

.page-tai-xiu__list-item-title {
    font-size: 1.15rem;
    color: var(--gold-color);
    margin-bottom: 5px;
}

.page-tai-xiu__text-link {
    color: var(--gold-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tai-xiu__text-link:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-tai-xiu__figure {
    margin: 30px auto;
    text-align: center;
    background-color: var(--deep-red);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    box-sizing: border-box;
}

.page-tai-xiu__figure-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.page-tai-xiu__figure-caption {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-top: 10px;
}

.page-tai-xiu__faq-list {
    margin-top: 30px;
}

.page-tai-xiu__faq-item {
    background-color: var(--deep-red);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    color: var(--gold-color);
    background-color: var(--deep-red);
    user-select: none;
    list-style: none;
}

.page-tai-xiu__faq-question::-webkit-details-marker, 
.page-tai-xiu__faq-question::marker {
    display: none;
}

.page-tai-xiu__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    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: 0 20px 15px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.page-tai-xiu__registration-steps .page-tai-xiu__list-item {
    background-color: var(--deep-red);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-tai-xiu__registration-steps .page-tai-xiu__list-item-title {
    font-size: 1.3rem;
    color: var(--gold-color);
    margin-bottom: 10px;
}

/* --- Responsive Styles --- */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-tai-xiu {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-tai-xiu__article-wrap {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 1. 顶区标题 + 双 CTA */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Specific top padding for mobile */
        margin-bottom: 20px;
    }

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

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

    .page-tai-xiu__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* 2. 单栏长文容器 */
    .page-tai-xiu__section {
        padding: 20px 0;
        margin-bottom: 15px;
        border-radius: 0;
        box-shadow: none;
    }

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

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

    .page-tai-xiu__list {
        margin-left: 20px;
    }

    .page-tai-xiu__list-item {
        margin-bottom: 8px;
    }

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

    .page-tai-xiu__figure {
        padding: 8px;
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 5. 注册教程与 FAQ 区块 */
    .page-tai-xiu__registration-steps .page-tai-xiu__list-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    .page-tai-xiu__registration-steps .page-tai-xiu__list-item-title {
        font-size: 1.15rem;
    }

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

    .page-tai-xiu__faq-question {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .page-tai-xiu__faq-answer {
        padding: 0 15px 12px;
        font-size: 0.9rem;
    }
}

/* Tablet (max-width: 1024px) - Adjustments for larger screens if needed, but 768px covers most mobile */
@media (max-width: 1024px) {
    .page-tai-xiu__article-wrap {
        padding: 0 25px;
    }

    .page-tai-xiu__hero-content {
        padding: 25px 20px;
    }

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

    .page-tai-xiu__description {
        font-size: clamp(1.1rem, 1.8vw, 1.2rem);
    }

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

    .page-tai-xiu__sub-title {
        font-size: clamp(1.5rem, 2.5vw, 1.8rem);
    }

    .page-tai-xiu__cta-buttons {
        gap: 12px;
    }

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