.page-tai-xiu {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though body is white */
}

/* --- Hero Section --- */
.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as per rule */
    margin-bottom: 40px;
    background-color: #017439; /* Brand primary color for hero background */
}

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

.page-tai-xiu__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.8); /* Slightly dim the image to make content stand out if needed, but not changing color */
}

.page-tai-xiu__hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    color: #FFFFFF; /* White text for dark green background */
}

.page-tai-xiu__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for title, as per custom color rules for Register/Login font, applying to main title for prominence */
}

.page-tai-xiu__intro-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- General Container & Text Styles --- */
.page-tai-xiu__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-tai-xiu__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #017439; /* Brand primary color for section titles on light background */
}

.page-tai-xiu__dark-bg .page-tai-xiu__section-title {
    color: #FFFFFF; /* White for section titles on dark background */
}

.page-tai-xiu__sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #017439; /* Brand primary color for sub-titles on light background */
}

.page-tai-xiu__dark-bg .page-tai-xiu__sub-title {
    color: #FFFFFF; /* White for sub-titles on dark background */
}

.page-tai-xiu__paragraph {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

.page-tai-xiu__dark-bg .page-tai-xiu__paragraph {
    color: #f0f0f0; /* Slightly off-white for paragraphs on dark background */
}

.page-tai-xiu__highlight {
    color: #017439; /* Primary brand color for highlights on light background */
    font-weight: bold;
}

.page-tai-xiu__dark-bg .page-tai-xiu__highlight {
    color: #FFFF00; /* Yellow for highlights on dark background */
}

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

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

.page-tai-xiu__cta-buttons--center {
    justify-content: center;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary,
.page-tai-xiu__btn-outline {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Button max width */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-tai-xiu__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-tai-xiu__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-tai-xiu__btn-secondary {
    background-color: transparent;
    color: #FFFFFF; /* White text for dark hero background */
    border: 2px solid #FFFFFF;
}

.page-tai-xiu__hero-section .page-tai-xiu__btn-secondary {
    color: #FFFF00; /* Yellow text for dark hero background */
    border: 2px solid #FFFF00;
}
.page-tai-xiu__hero-section .page-tai-xiu__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

.page-tai-xiu__btn-secondary:hover {
    background-color: #017439; /* Primary brand color on hover */
    color: #FFFFFF;
    border-color: #017439;
}

.page-tai-xiu__btn-outline {
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
    margin-top: 20px;
    display: inline-block; /* For promo cards */
}

.page-tai-xiu__dark-bg .page-tai-xiu__btn-outline {
    color: #FFFF00;
    border-color: #FFFF00;
}

.page-tai-xiu__btn-outline:hover {
    background-color: #017439;
    color: #FFFFFF;
}
.page-tai-xiu__dark-bg .page-tai-xiu__btn-outline:hover {
    background-color: #FFFF00;
    color: #C30808;
}


/* --- About Game Section --- */
.page-tai-xiu__about-game-section {
    background-color: #FFFFFF;
}

/* --- How to Play Section --- */
.page-tai-xiu__how-to-play-section {
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* White text */
}

.page-tai-xiu__game-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.page-tai-xiu__rule-card {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333; /* Dark text for light card background */
}

.page-tai-xiu__rule-card .page-tai-xiu__card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #017439; /* Brand primary color */
}

.page-tai-xiu__rule-card .page-tai-xiu__card-text {
    font-size: 1rem;
    line-height: 1.6;
}

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

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

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

/* --- Why SV288 Section --- */
.page-tai-xiu__why-sv288-section {
    background-color: #f5f5f5; /* Light grey background */
}

.page-tai-xiu__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: center;
}

.page-tai-xiu__feature-card {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-tai-xiu__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%; /* Make icons round */
    border: 2px solid #017439;
    padding: 10px;
}

.page-tai-xiu__feature-card .page-tai-xiu__card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #017439;
}

.page-tai-xiu__feature-card .page-tai-xiu__card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
}

/* --- Promotions Section --- */
.page-tai-xiu__promotions-section {
    background-color: #FFFFFF;
}

.page-tai-xiu__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-tai-xiu__promo-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-tai-xiu__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-tai-xiu__promo-card .page-tai-xiu__card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #017439;
}

.page-tai-xiu__promo-card .page-tai-xiu__card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
    flex-grow: 1; /* Push button to bottom */
}


/* --- FAQ Section --- */
.page-tai-xiu__faq-section {
    background-color: #017439;
    color: #FFFFFF;
}

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

.page-tai-xiu__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #333333; /* Dark text for light FAQ item background */
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    color: #017439; /* Brand primary for question text */
    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-item[open] .page-tai-xiu__faq-question {
    border-bottom: 1px solid #d0d0d0;
    background-color: #e8e8e8;
}

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

.page-tai-xiu__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 15px;
    color: #C30808; /* Red for toggle icon */
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    content: "-"; /* Changes to minus when open */
    transform: rotate(45deg); /* Optional: animate to X */
}

.page-tai-xiu__faq-answer {
    padding: 15px 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

.page-tai-xiu__faq-answer p {
    margin-bottom: 10px;
}
.page-tai-xiu__faq-answer p:last-child {
    margin-bottom: 0;
}
.page-tai-xiu__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

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

.page-tai-xiu__cta-bottom-content {
    max-width: 900px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-tai-xiu__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-tai-xiu__section-title {
        font-size: 2.2rem;
    }
    .page-tai-xiu__sub-title {
        font-size: 1.6rem;
    }
    .page-tai-xiu__hero-content {
        padding: 30px 20px;
    }
    .page-tai-xiu__container {
        padding: 30px 20px;
    }
    .page-tai-xiu__game-rules-grid,
    .page-tai-xiu__feature-grid,
    .page-tai-xiu__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Enforce small top padding */
        margin-bottom: 20px;
    }
    .page-tai-xiu__hero-content {
        padding: 20px 15px;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important; /* Smaller for mobile */
        margin-bottom: 15px;
    }
    .page-tai-xiu__intro-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* General Container & Text */
    .page-tai-xiu__container {
        padding: 20px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu__section-title {
        font-size: 1.8rem !important;
        margin-bottom: 20px;
    }
    .page-tai-xiu__sub-title {
        font-size: 1.4rem !important;
        margin-top: 20px;
        margin-bottom: 15px;
    }
    .page-tai-xiu__paragraph {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Images */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu__image-inline {
        margin: 20px auto !important;
    }
    .page-tai-xiu__feature-icon {
        width: 80px;
        height: 80px;
    }
    .page-tai-xiu__promo-image {
        height: 180px; /* Adjust height for smaller screens */
    }

    /* Buttons and Button Containers */
    .page-tai-xiu__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to container to prevent overflow */
    }
    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary,
    .page-tai-xiu__btn-outline,
    .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 !important; /* Ensure padding inside button */
        padding-right: 15px !important;
        font-size: 1rem !important;
    }

    /* Grids (Game Rules, Features, Promos) */
    .page-tai-xiu__game-rules-grid,
    .page-tai-xiu__feature-grid,
    .page-tai-xiu__promo-grid {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 20px;
    }

    /* FAQ */
    .page-tai-xiu__faq-question {
        font-size: 1rem !important;
        padding: 15px 20px !important;
    }
    .page-tai-xiu__faq-toggle {
        font-size: 1.3rem !important;
    }
    .page-tai-xiu__faq-answer {
        padding: 10px 20px !important;
        font-size: 0.95rem !important;
    }

    /* Mandatory mobile styles for homepage-specific elements (even if not used on this page, as per "必写清单") */
    .page-tai-xiu__home-content {
        height: auto !important;
        overflow-y: visible !important;
        padding: 15px !important;
    }
    .page-tai-xiu__home-content h2 {
        font-size: 1.8rem !important;
    }
    .page-tai-xiu__slider-track {
        display: flex !important; /* Enforce flex for sliders */
        flex-wrap: nowrap !important;
        overflow-x: auto !important; /* Allow horizontal scroll */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 10px !important;
    }
    .page-tai-xiu__game-slide {
        flex: 0 0 160px !important;
        max-width: 160px !important;
        scroll-snap-align: start;
    }
    .page-tai-xiu__banners-top-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important; /* 3 columns for mobile */
        gap: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu__banner-item img {
        
        
    }
    .page-tai-xiu__blog-masonry {
        grid-template-columns: 1fr !important; /* Single column for mobile */
        gap: 20px;
    }
    .page-tai-xiu__blog-slider-track {
        display: flex !important; /* Enforce flex for sliders */
        flex-wrap: nowrap !important;
        overflow-x: auto !important; /* Allow horizontal scroll */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 10px !important;
    }
    .page-tai-xiu__blog-slide {
        flex: 0 0 calc(100% - 30px) !important;
        max-width: calc(100% - 30px) !important;
        scroll-snap-align: start;
    }
    .page-tai-xiu__row-games,
    .page-tai-xiu__row-sport,
    .page-tai-xiu__row-coop {
        padding: 20px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}