.page-tai-xiu {
    font-family: Arial, sans-serif;
    color: #333333; /* Text Main */
    background-color: #F5F7FA; /* Background */
}

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

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as body padding-top is handled by shared.css */
    padding-bottom: 40px;
    background-color: #F5F7FA;
    text-align: center;
}

.page-tai-xiu__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-tai-xiu__hero-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.page-tai-xiu__hero-text-block {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-tai-xiu__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font-size clamp as per rule */
    font-weight: 700;
    line-height: 1.2;
    color: #E53935; /* Main Color */
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.page-tai-xiu__description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Button responsive */
    white-space: normal; /* Button text wrap */
    word-wrap: break-word; /* Button text wrap */
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button Color */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

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

.page-tai-xiu__btn-secondary {
    background: #ffffff; /* Card BG */
    color: #E53935; /* Main Color */
    border: 2px solid #E53935; /* Main Color */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__btn-secondary:hover {
    background: #E53935; /* Main Color */
    color: #ffffff;
    transform: translateY(-2px);
}

.page-tai-xiu__btn-inline {
    margin-top: 20px;
    display: inline-flex;
}

/* General Sections */
.page-tai-xiu__about-game-section,
.page-tai-xiu__how-to-play-section,
.page-tai-xiu__strategy-section,
.page-tai-xiu__why-choose-section,
.page-tai-xiu__faq-section,
.page-tai-xiu__cta-bottom-section {
    padding: 60px 0;
}

.page-tai-xiu__dark-section {
    background-color: #E53935; /* Main Color */
    color: #ffffff;
}

.page-tai-xiu__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-tai-xiu__dark-section .page-tai-xiu__section-title {
    color: #ffffff;
}

.page-tai-xiu__intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 900px;
    margin: -20px auto 40px auto;
}

.page-tai-xiu__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

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

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

.page-tai-xiu__text-block p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.page-tai-xiu__text-block a {
    color: #FF5A4F; /* Auxiliary Color */
    text-decoration: underline;
}

.page-tai-xiu__dark-section .page-tai-xiu__text-block a {
    color: #ffffff;
}

.page-tai-xiu__image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

/* How to Play Section */
.page-tai-xiu__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-tai-xiu__step-card {
    background: #ffffff; /* Card BG */
    border: 1px solid #E0E0E0; /* Border */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
}

.page-tai-xiu__step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #E53935; /* Main Color */
    margin-bottom: 15px;
}

.page-tai-xiu__step-card p {
    line-height: 1.6;
    margin-bottom: 10px;
}

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

/* Strategy Section */
.page-tai-xiu__strategy-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 20px;
}

.page-tai-xiu__strategy-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.page-tai-xiu__strategy-list strong {
    color: #FF5A4F; /* Auxiliary Color */
}

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

.page-tai-xiu__feature-card {
    background: #ffffff; /* Card BG */
    border: 1px solid #E0E0E0; /* Border */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
}

.page-tai-xiu__feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #E53935; /* Main Color */
    margin-bottom: 10px;
}

.page-tai-xiu__feature-card p {
    line-height: 1.6;
}

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

.page-tai-xiu__faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    list-style: none; /* Hide default marker for details summary */
}

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

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

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

.page-tai-xiu__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    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: 15px 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #f0f0f0;
}

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

.page-tai-xiu__faq-answer a {
    color: #FF5A4F; /* Auxiliary Color */
    text-decoration: underline;
}

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

.page-tai-xiu__cta-card {
    background: #ffffff; /* Card BG */
    border: 1px solid #E0E0E0; /* Border */
    border-radius: 15px;
    padding: 50px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__cta-card .page-tai-xiu__section-title {
    margin-bottom: 20px;
    color: #E53935; /* Main Color */
}

.page-tai-xiu__cta-card .page-tai-xiu__intro-text {
    margin-bottom: 30px;
    max-width: 700px;
}

.page-tai-xiu__cta-card .page-tai-xiu__cta-buttons {
    margin-top: 20px;
}

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

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

    .page-tai-xiu__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* HERO 主图区域 */
    .page-tai-xiu__hero-section {
        padding-top: 10px; /* Still small top padding */
        padding-bottom: 30px;
    }

    .page-tai-xiu__hero-content {
        gap: 15px;
    }

    .page-tai-xiu__main-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .page-tai-xiu__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* 按钮与按钮容器 */
    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container */
    }

    .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;
    }

    /* General Sections */
    .page-tai-xiu__about-game-section,
    .page-tai-xiu__how-to-play-section,
    .page-tai-xiu__strategy-section,
    .page-tai-xiu__why-choose-section,
    .page-tai-xiu__faq-section,
    .page-tai-xiu__cta-bottom-section {
        padding: 40px 0;
    }

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

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

    .page-tai-xiu__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-tai-xiu__text-block {
        min-width: unset;
        max-width: 100%;
    }

    .page-tai-xiu__image {
        min-width: unset;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* How to Play Section (grid adaptation) */
    .page-tai-xiu__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-tai-xiu__step-card {
        padding: 20px;
    }

    .page-tai-xiu__step-title {
        font-size: 1.2rem;
    }

    /* Why Choose Section (grid adaptation) */
    .page-tai-xiu__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-tai-xiu__feature-card {
        padding: 20px;
    }

    .page-tai-xiu__feature-title {
        font-size: 1.2rem;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-tai-xiu__faq-answer {
        padding: 10px 20px 15px;
    }

    /* CTA Bottom Section */
    .page-tai-xiu__cta-card {
        padding: 40px 20px;
    }

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

    /* 通用图片与容器 */
    .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;
    }
}