/* style/tai-xiu.css */

/* General styles for the page */
.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main */
    background-color: #0D0E12; /* Background */
}

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

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

.page-tai-xiu__text-block {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF3E6; /* Text Main */
}

.page-tai-xiu__card {
    background-color: #17191F; /* Card BG */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C; /* Border color */
    color: #FFF3E6; /* Text Main */
}

/* Images */
.page-tai-xiu img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    /* 禁止使用filter属性改变图片颜色 */
    filter: none;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

.page-tai-xiu__btn-primary:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%); /* Glow */
    transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
    background: transparent;
    color: #FF8C1A; /* Primary color */
    border: 2px solid #FF8C1A; /* Primary color */
    box-shadow: 0 2px 8px rgba(255, 140, 26, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
    background-color: rgba(255, 140, 26, 0.1);
    color: #FFB04D; /* Glow */
    border-color: #FFB04D; /* Glow */
    transform: translateY(-2px);
}

.page-tai-xiu__btn-full-width {
    width: 100%;
    max-width: 350px; /* Limit max width for a single button */
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* HERO Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, body padding-top should handle header offset */
    padding-bottom: 60px;
    background-color: #0D0E12; /* Background */
    position: relative;
    overflow: hidden;
}

.page-tai-xiu__hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 16px;
    max-width: 1170px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.page-tai-xiu__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: left;
}

.page-tai-xiu__main-title {
    font-size: 3.2em;
    font-weight: 800;
    color: #FF8C1A; /* Primary color */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-tai-xiu__description {
    font-size: 1.3em;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 30px;
}

.page-tai-xiu__hero-image {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-tai-xiu__hero-side-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

/* Intro Section */
.page-tai-xiu__intro-section {
    padding: 60px 0;
    background-color: #0D0E12; /* Background */
}

.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 {
    text-align: center;
    padding: 30px;
}

.page-tai-xiu__icon-box-media {
    width: 240px;
    height: 240px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #FF8C1A; /* Primary color */
}

.page-tai-xiu__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Ensure image inside is also round */
}

.page-tai-xiu__feature-title {
    font-size: 1.6em;
    font-weight: 700;
    color: #FFB04D; /* Glow */
    margin-bottom: 15px;
}

.page-tai-xiu__feature-description {
    font-size: 1em;
    color: #FFF3E6; /* Text Main */
}

/* Guide Section & Tips Section (Two Column Layout) */
.page-tai-xiu__guide-section,
.page-tai-xiu__tips-section,
.page-tai-xiu__bet-types-section {
    padding: 60px 0;
    background-color: #0D0E12; /* Background */
}

.page-tai-xiu__two-column-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-tai-xiu__content-block {
    flex: 1 1 50%;
    min-width: 300px;
}

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

.page-tai-xiu__image-block--center {
    flex: 1 1 100%;
    margin-top: 40px;
}

.page-tai-xiu__responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__guide-list,
.page-tai-xiu__tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-tai-xiu__guide-list li,
.page-tai-xiu__tips-list li {
    background-color: #17191F; /* Card BG */
    border-left: 5px solid #FF8C1A; /* Primary color */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: #FFF3E6; /* Text Main */
}

.page-tai-xiu__guide-step-title,
.page-tai-xiu__tip-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #FFA53A; /* Auxiliary color */
    margin-bottom: 10px;
}

.page-tai-xiu__guide-list li p,
.page-tai-xiu__tips-list li p {
    font-size: 1em;
    color: #FFF3E6; /* Text Main */
    text-align: left;
}

.page-tai-xiu__guide-list li a {
    color: #FFA53A; /* Auxiliary color */
    text-decoration: underline;
}
.page-tai-xiu__guide-list li a:hover {
    color: #FFB04D; /* Glow */
}


/* Bet Types Section */
.page-tai-xiu__bet-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-tai-xiu__type-card {
    text-align: center;
    padding: 25px;
}

.page-tai-xiu__type-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #FFB04D; /* Glow */
    margin-bottom: 15px;
}

.page-tai-xiu__type-description {
    font-size: 1em;
    color: #FFF3E6; /* Text Main */
}

/* FAQ Section */
.page-tai-xiu__faq-section {
    padding: 60px 0;
    background-color: #0D0E12; /* Background */
}

.page-tai-xiu__faq-list {
    margin-top: 40px;
    display: grid;
    gap: 15px;
}

.page-tai-xiu__faq-item {
    border-radius: 12px;
    overflow: hidden;
    background-color: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border color */
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: #FFA53A; /* Auxiliary color */
    background-color: #17191F; /* Card BG */
    position: relative;
    list-style: none; /* For details/summary */
}

/* Hide default details marker */
.page-tai-xiu__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-tai-xiu__faq-item summary::marker {
    display: none;
}

.page-tai-xiu__faq-toggle {
    font-size: 1.5em;
    font-weight: 300;
    color: #FF8C1A; /* Primary color */
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-tai-xiu__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #FFF3E6; /* Text Main */
    line-height: 1.8;
}

.page-tai-xiu__faq-answer p {
    margin: 0;
    text-align: left;
}

/* CTA Bottom Section */
.page-tai-xiu__cta-bottom-section {
    padding: 60px 0;
    text-align: center;
    background-color: #0D0E12; /* Background */
}

.page-tai-xiu__cta-content-wrapper {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-tai-xiu__hero-content {
        text-align: center;
    }

    .page-tai-xiu__main-title {
        font-size: 2.8em;
    }

    .page-tai-xiu__description {
        font-size: 1.2em;
    }

    .page-tai-xiu__two-column-layout {
        flex-direction: column;
    }

    .page-tai-xiu__content-block,
    .page-tai-xiu__image-block {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .page-tai-xiu__guide-list li,
    .page-tai-xiu__tips-list li {
        padding: 15px;
    }
}


@media (max-width: 768px) {
    /* General responsive adjustments */
    .page-tai-xiu__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-tai-xiu__text-block {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* HERO Section - 必写清单 item 1 */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
    }

    .page-tai-xiu__main-title {
        font-size: clamp(2em, 8vw, 2.5em); /* H1 font size with clamp */
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .page-tai-xiu__description {
        font-size: 1.1em;
        margin-bottom: 25px;
    }

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

    /* Buttons - 必写清单 item 6 */
    .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;
    }

    /* Intro Section - 必写清单 item 2 */
    .page-tai-xiu__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-tai-xiu__icon-box-media {
        width: 200px; /* Maintain square aspect ratio */
        height: 200px; /* Maintain square aspect ratio */
        border: 2px solid #FF8C1A; /* Adjust border size */
    }

    /* Guide Section & Tips Section (Content Modules) - 必写清单 item 4 */
    .page-tai-xiu__two-column-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .page-tai-xiu__reverse-layout-mobile {
        flex-direction: column-reverse;
    }

    .page-tai-xiu__content-block,
    .page-tai-xiu__image-block {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-tai-xiu__guide-list li,
    .page-tai-xiu__tips-list li {
        padding: 15px;
        border-left-width: 3px;
    }

    .page-tai-xiu__guide-step-title,
    .page-tai-xiu__tip-title {
        font-size: 1.2em;
    }

    /* Bet Types Section */
    .page-tai-xiu__bet-types-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-tai-xiu__type-title {
        font-size: 1.3em;
    }

    /* FAQ Section - 必写清单 item 4 */
    .page-tai-xiu__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-tai-xiu__faq-answer {
        padding: 0 20px 15px;
    }
    
    /* Universal Image Adaptation - 必写清单 item 5 */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-tai-xiu__hero-section,
    .page-tai-xiu__intro-section,
    .page-tai-xiu__guide-section,
    .page-tai-xiu__tips-section,
    .page-tai-xiu__bet-types-section,
    .page-tai-xiu__faq-section,
    .page-tai-xiu__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-tai-xiu__card {
        padding: 20px;
    }
}