.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly set body background color */
}

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: #FFFFFF; /* Ensure a light background for hero content if image doesn't cover all */
    overflow: hidden; /* Prevent image overflow */
}

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

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

.page-tai-xiu__hero-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.page-tai-xiu__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: #26A9E0;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__description {
    font-size: 1.15rem;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styles */
.page-tai-xiu__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    padding: 0 15px;
}

.page-tai-xiu__subsection-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.page-tai-xiu__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-tai-xiu__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF; /* White text for contrast */
}

.page-tai-xiu__dark-bg .page-tai-xiu__section-title,
.page-tai-xiu__dark-bg .page-tai-xiu__subsection-title {
    color: #FFFFFF;
}

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

.page-tai-xiu__highlight {
    font-weight: bold;
    color: inherit; /* Inherit color from parent for contrast */
}

.page-tai-xiu__link {
    color: #EA7C07; /* Login color for links */
    text-decoration: underline;
}

.page-tai-xiu__link:hover {
    text-decoration: none;
}

/* Buttons */
.page-tai-xiu__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-tai-xiu__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

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

.page-tai-xiu__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
}

.page-tai-xiu__btn-secondary:hover {
    background-color: #e0f4ff;
    color: #1a8ccf;
    border-color: #1a8ccf;
}

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

.page-tai-xiu__feature-card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Ensure cards are same height */
}

.page-tai-xiu__feature-icon {
    width: 250px; /* Adjusted to meet min 200px requirement */
    height: 200px; /* Adjusted to meet min 200px requirement */
    object-fit: cover; /* Changed to cover to fill space */
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-tai-xiu__feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-tai-xiu__feature-description {
    font-size: 0.95rem;
    color: #f0f0f0;
}

/* How to Play Section */
.page-tai-xiu__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    min-width: 200px;
    min-height: 200px;
}

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

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

.page-tai-xiu__list-item {
    margin-bottom: 10px;
    font-size: 1rem;
}

.page-tai-xiu__bet-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-tai-xiu__bet-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%; /* Ensure cards are same height */
}

.page-tai-xiu__bet-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-tai-xiu__bet-card-description {
    font-size: 0.95rem;
    color: #555555;
}

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

.page-tai-xiu__promo-card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%; /* Ensure cards are same height */
}

.page-tai-xiu__promo-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-tai-xiu__promo-card-description {
    font-size: 0.95rem;
    color: #f0f0f0;
}

/* FAQ Section */
.page-tai-xiu__faq-list {
    margin-top: 40px;
}

.page-tai-xiu__faq-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.page-tai-xiu__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

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

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

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

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    content: '-';
    transform: rotate(45deg); /* Simple visual change for open state */
}

.page-tai-xiu__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #f0f0f0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Final CTA */
.page-tai-xiu__cta-final-section {
    padding-bottom: 80px;
}

.page-tai-xiu__text-center {
    text-align: center;
}

.page-tai-xiu__copyright-info {
    margin-top: 50px;
    font-size: 0.9rem;
    color: #666666;
}

/* Ensure no filter is used for images */
.page-tai-xiu img {
    filter: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-tai-xiu__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-tai-xiu__description {
        font-size: 1rem;
    }
    .page-tai-xiu__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    }
    .page-tai-xiu__subsection-title {
        font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    }
    .page-tai-xiu__container {
        padding: 40px 15px;
    }
    .page-tai-xiu__features-grid,
    .page-tai-xiu__bet-options-grid,
    .page-tai-xiu__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .page-tai-xiu__feature-icon {
        width: 200px;
        height: 150px;
    }
    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

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

    /* HERO 主图区域 */
    .page-tai-xiu__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
    }
}