/* Base styles for .page-tai-xiu */
.page-tai-xiu {
    font-family: Arial, sans-serif;
    color: #FFF1E8; /* Text Main */
    background-color: #140C0C; /* Background */
    line-height: 1.6;
}

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

.page-tai-xiu__section-title {
    font-size: 2.5em;
    color: #FFF1E8; /* Text Main */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

.page-tai-xiu__sub-title {
    font-size: 1.8em;
    color: #F3C54D; /* Gold */
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-tai-xiu__description,
.page-tai-xiu__description-small {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.1em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__dark-section {
    background-color: #2A1212; /* Card B G */
    padding: 60px 0;
    border-top: 1px solid #6A1E1E;
    border-bottom: 1px solid #6A1E1E;
}

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Rely on body padding for header offset */
    padding-bottom: 60px;
    background-color: #140C0C;
    overflow: hidden;
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 30px;
}

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

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

.page-tai-xiu__main-title {
    font-size: 3.2em;
    color: #FFF1E8;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

.page-tai-xiu__btn-secondary {
    background: #FFF1E8;
    color: #C61F1F; /* Main Color */
    border: 2px solid #C61F1F;
}

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

/* Content Grid */
.page-tai-xiu__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-tai-xiu__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-tai-xiu__text-block {
    flex: 1;
    min-width: 300px;
}

.page-tai-xiu__image-block {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-tai-xiu__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid #6A1E1E;
}

.page-tai-xiu__ordered-list,
.page-tai-xiu__unordered-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-tai-xiu__list-item {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-tai-xiu__list-item::before {
    content: '•';
    color: #F3C54D; /* Gold */
    position: absolute;
    left: 0;
    font-size: 1.2em;
    top: -2px;
}

.page-tai-xiu__ordered-list .page-tai-xiu__list-item::before {
    content: counter(list-item) '.';
    counter-increment: list-item;
    color: #F3C54D;
    font-weight: bold;
    left: 0;
    font-size: 1em;
    top: 0;
}

.page-tai-xiu__sub-list {
    padding-left: 20px;
    margin-top: 5px;
}

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

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

.page-tai-xiu__card {
    background-color: #2A1212; /* Card B G */
    border: 1px solid #6A1E1E;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
}

.page-tai-xiu__card-title {
    font-size: 1.5em;
    color: #F3C54D; /* Gold */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-tai-xiu__card-text {
    flex-grow: 1;
}

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

.page-tai-xiu__feature-item {
    background-color: #2A1212; /* Card B G */
    border: 1px solid #6A1E1E;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-tai-xiu__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-tai-xiu__feature-title {
    font-size: 1.4em;
    color: #F3C54D; /* Gold */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-tai-xiu__feature-text {
    flex-grow: 1;
}

/* FAQ Section */
.page-tai-xiu__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__faq-item {
    background-color: #2A1212; /* Card B G */
    border: 1px solid #6A1E1E;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #FFF1E8;
    background-color: #C61F1F; /* Main Color */
    transition: background-color 0.3s ease;
}

.page-tai-xiu__faq-question:hover {
    background-color: #E53030; /* Auxiliary Color */
}

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

.page-tai-xiu__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFF1E8;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    content: '-';
}

.page-tai-xiu__faq-answer {
    padding: 20px 25px;
    background-color: #2A1212;
    color: #FFF1E8;
    font-size: 1em;
    line-height: 1.5;
}

/* Final CTA Section */
.page-tai-xiu__cta-final-section {
    padding: 80px 0;
    text-align: center;
    background-color: #140C0C;
}

.page-tai-xiu__final-cta-wrapper {
    background-color: #2A1212;
    border: 2px solid #F3C54D;
    border-radius: 15px;
    padding: 50px;
}

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

.page-tai-xiu__section,
.page-tai-xiu__card,
.page-tai-xiu__container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Placeholder styles for homepage specific elements (as per strict checklist, even if not used in this page) */
.page-tai-xiu__home-content { border: 1px solid #6A1E1E; border-radius: 10px; height: 650px; overflow-y: auto; padding: 20px; margin-top: 20px; }
.page-tai-xiu__row-games, .page-tai-xiu__row-sport, .page-tai-xiu__row-coop { background-color: #2A1212; padding: 40px 20px; max-width: 1330px; margin: 0 auto; }
.page-tai-xiu__games-title, .page-tai-xiu__sport-title, .page-tai-xiu__coop-title { color: #FFF1E8; text-align: center; margin-bottom: 30px; }
.page-tai-xiu__slider-wrapper { overflow: hidden; margin-top: 30px; }
.page-tai-xiu__slider-track { display: flex; flex-wrap: nowrap; gap: 16px; }
.page-tai-xiu__game-slide { flex: 0 0 200px; max-width: 200px; border: 1px solid #6A1E1E; border-radius: 8px; overflow: hidden; }
.page-tai-xiu__game-slide img { width: 100%;  object-fit: cover; }
.page-tai-xiu__banners-top-wrapper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin: 0 auto; margin-top: 40px; }
.page-tai-xiu__banner-item img {   object-fit: contain; margin: 0 auto; display: block; border: 1px solid #6A1E1E; border-radius: 5px; }
.page-tai-xiu__blog-masonry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; margin-top: 40px; }
.page-tai-xiu__blog-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.page-tai-xiu__blog-card { background-color: #2A1212; border: 1px solid #6A1E1E; border-radius: 10px; padding: 20px; height: 100%; display: flex; flex-direction: column; }
.page-tai-xiu__blog-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; }
.page-tai-xiu__blog-card-title { font-size: 1.3em; color: #F3C54D; margin-bottom: 10px; font-weight: bold; }
.page-tai-xiu__blog-card-meta { font-size: 0.9em; color: #FFF1E8; opacity: 0.7; margin-bottom: 15px; }
.page-tai-xiu__btn-outline { margin-top: auto; display: inline-block; padding: 10px 20px; border: 1px solid #F3C54D; border-radius: 5px; color: #F3C54D; text-decoration: none; font-weight: bold; transition: all 0.3s ease; }
.page-tai-xiu__btn-outline:hover { background-color: #F3C54D; color: #140C0C; }
.page-tai-xiu__blog-slider-track { display: flex; flex-wrap: nowrap; gap: 20px; margin-top: 30px; }
.page-tai-xiu__blog-slide { flex: 0 0 calc(33.333% - 14px); max-width: calc(33.333% - 14px); }

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__main-title {
        font-size: 2.8em;
    }
    .page-tai-xiu__section-title {
        font-size: 2em;
    }
    .page-tai-xiu__content-grid {
        flex-direction: column;
    }
    .page-tai-xiu__content-grid--reverse {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-tai-xiu {
        font-size: 16px;
        line-height: 1.6;
    }
    /* 1. HERO 主图区域 */
    .page-tai-xiu__hero-section {
        padding-top: 10px;
        padding-bottom: 40px;
    }
    .page-tai-xiu__hero-image-wrapper {
        max-height: 300px;
    }
    .page-tai-xiu__main-title {
        font-size: 2.2em;
    }
    .page-tai-xiu__description,
    .page-tai-xiu__description-small {
        font-size: 1em;
        padding: 0 15px;
    }
    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    /* 7. 按钮与按钮容器 */
    .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-left: 15px;
        padding-right: 15px;
    }
    .page-tai-xiu__cta-buttons,
    .page-tai-xiu__button-group,
    .page-tai-xiu__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-tai-xiu__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    .page-tai-xiu__sub-title {
        font-size: 1.5em;
    }
    .page-tai-xiu__content-grid {
        flex-direction: column;
        gap: 30px;
    }
    .page-tai-xiu__text-block, .page-tai-xiu__image-block {
        min-width: unset;
        width: 100%;
        padding: 0 15px;
    }
    /* 6. 通用图片与容器 */
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tai-xiu__strategy-cards,
    .page-tai-xiu__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    .page-tai-xiu__card, .page-tai-xiu__feature-item {
        padding: 25px;
    }
    .page-tai-xiu__faq-list {
        padding: 0 15px;
    }
    .page-tai-xiu__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-tai-xiu__faq-answer {
        padding: 15px 20px;
    }
    .page-tai-xiu__final-cta-wrapper {
        padding: 30px 20px;
    }

    /* Placeholder styles for homepage specific elements (as per strict checklist) */
    .page-tai-xiu__home-content { height: auto; overflow-y: visible; }
    .page-tai-xiu__row-games, .page-tai-xiu__row-sport, .page-tai-xiu__row-coop { padding: 30px 15px; }
    .page-tai-xiu__games-title, .page-tai-xiu__sport-title, .page-tai-xiu__coop-title { font-size: 1.5em; margin-bottom: 20px; }
    .page-tai-xiu__slider-track { flex-wrap: wrap; justify-content: center; }
    .page-tai-xiu__game-slide { flex: 0 0 160px; max-width: 160px; margin-bottom: 10px; }
    .page-tai-xiu__banners-top-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 15px; }
    .page-tai-xiu__banner-item img {   }
    .page-tai-xiu__blog-masonry { grid-template-columns: 1fr; gap: 15px; padding: 0 15px; }
    .page-tai-xiu__blog-card { padding: 15px; }
    .page-tai-xiu__blog-card img {  margin-bottom: 10px; }
    .page-tai-xiu__blog-card-title { font-size: 1.2em; }
    .page-tai-xiu__blog-card-meta { font-size: 0.85em; }
    .page-tai-xiu__blog-slider-track { flex-direction: column; gap: 15px; padding: 0 15px; }
    .page-tai-xiu__blog-slide { flex: 0 0 100%; max-width: 100%; }
}