/* style/tai-xiu.css */

:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --card-bg: #17191F;
    --background-color: #0D0E12; /* Inherited from shared.css body */
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

.page-tai-xiu {
    color: var(--text-main-color);
    background-color: var(--background-color); /* Ensure consistency with body */
    font-family: Arial, sans-serif;
    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: clamp(2em, 4vw, 2.8em);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-tai-xiu__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-tai-xiu__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-main-color);
}

.page-tai-xiu__highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

.page-tai-xiu__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tai-xiu__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-tai-xiu__card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-tai-xiu__card-description {
    font-size: 1em;
    color: var(--text-main-color);
}

/* Buttons */
.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
}

.page-tai-xiu__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 140, 26, 0.6);
}

.page-tai-xiu__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-tai-xiu__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
}

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

.page-tai-xiu__cta-center .page-tai-xiu__btn-primary {
    margin: 0 auto;
}

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    color: var(--text-main-color);
    text-align: center;
    overflow: hidden;
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

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

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

.page-tai-xiu__hero-title {
    font-size: clamp(2.5em, 5vw, 3.8em);
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-main-color);
    line-height: 1.2;
}

.page-tai-xiu__hero-description {
    font-size: clamp(1.1em, 2vw, 1.4em);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main-color);
}

.page-tai-xiu__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Intro Section */
.page-tai-xiu__intro-section {
    padding: 60px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Features Section */
.page-tai-xiu__features-section {
    padding: 80px 0;
}

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

.page-tai-xiu__feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

/* Gameplay Section */
.page-tai-xiu__gameplay-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.page-tai-xiu__game-rules-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-tai-xiu__game-rules-text {
    flex: 1;
}

.page-tai-xiu__game-rules-image {
    flex: 1;
    min-width: 300px;
}

.page-tai-xiu__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__rule-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.page-tai-xiu__rule-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1.05em;
}

/* Tips Section */
.page-tai-xiu__tips-section {
    padding: 80px 0;
}

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

/* Promotions Section */
.page-tai-xiu__promotions-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

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

.page-tai-xiu__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

/* Registration Section */
.page-tai-xiu__registration-section {
    padding: 80px 0;
}

.page-tai-xiu__registration-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-tai-xiu__registration-steps {
    flex: 1.5;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.page-tai-xiu__registration-image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-tai-xiu__step-item {
    text-align: center;
    position: relative;
    padding-top: 50px;
}

.page-tai-xiu__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--button-gradient);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-tai-xiu__faq-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.page-tai-xiu__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-tai-xiu__faq-item {
    margin-bottom: 15px;
    padding: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    list-style: none;
    transition: background-color 0.3s ease;
}

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

.page-tai-xiu__faq-question::-webkit-details-marker {
    display: none;
}

.page-tai-xiu__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--secondary-color);
    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: 1.05em;
    color: var(--text-main-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-tai-xiu__faq-answer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-tai-xiu__faq-answer a:hover {
    color: var(--primary-color);
}

/* Conclusion Section */
.page-tai-xiu__conclusion-section {
    padding: 80px 0;
    text-align: center;
}

/* General image styling for content areas */
.page-tai-xiu img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Dark background section text color */
.page-tai-xiu__dark-section h2,
.page-tai-xiu__dark-section h3,
.page-tai-xiu__dark-section p,
.page-tai-xiu__dark-section li {
    color: var(--text-main-color);
}

.page-tai-xiu__dark-section .page-tai-xiu__card-title {
    color: var(--primary-color);
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
    .page-tai-xiu__container {
        padding: 20px 30px;
    }

    .page-tai-xiu__hero-title {
        font-size: clamp(2em, 4.5vw, 3.5em);
    }

    .page-tai-xiu__hero-description {
        font-size: clamp(1em, 1.8vw, 1.3em);
    }

    .page-tai-xiu__features-grid,
    .page-tai-xiu__tips-grid,
    .page-tai-xiu__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-tai-xiu__game-rules-content,
    .page-tai-xiu__registration-content {
        flex-direction: column;
        text-align: center;
    }

    .page-tai-xiu__game-rules-image,
    .page-tai-xiu__registration-image-wrapper {
        margin-top: 30px;
    }

    .page-tai-xiu__registration-steps {
        grid-template-columns: 1fr;
    }

    .page-tai-xiu__step-item {
        padding-top: 60px;
    }

    .page-tai-xiu__step-number {
        top: -10px;
    }
}

@media (max-width: 768px) {
    .page-tai-xiu {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-tai-xiu__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO 主图区域 */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }

    .page-tai-xiu__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-tai-xiu__hero-title {
        font-size: clamp(2em, 8vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-tai-xiu__hero-description {
        font-size: clamp(0.9em, 3.5vw, 1.1em);
        margin-bottom: 25px;
    }

    .page-tai-xiu__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-tai-xiu__hero-cta-buttons {
        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__intro-section {
        padding: 40px 0;
    }

    .page-tai-xiu__section-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
        margin-bottom: 30px;
    }

    .page-tai-xiu__text-block {
        font-size: 1em;
    }

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

    /* Features Grid */
    .page-tai-xiu__features-section {
        padding: 50px 0;
    }

    .page-tai-xiu__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-tai-xiu__feature-card img {
        
    }

    /* Gameplay Section */
    .page-tai-xiu__gameplay-section {
        padding: 50px 0;
    }

    .page-tai-xiu__game-rules-content {
        flex-direction: column;
    }

    .page-tai-xiu__game-rules-image {
        margin-top: 30px;
    }

    /* Tips Section */
    .page-tai-xiu__tips-section {
        padding: 50px 0;
    }

    .page-tai-xiu__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Promotions Section */
    .page-tai-xiu__promotions-section {
        padding: 50px 0;
    }

    .page-tai-xiu__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-tai-xiu__promo-image {
        height: 200px;
    }

    /* Registration Section */
    .page-tai-xiu__registration-section {
        padding: 50px 0;
    }

    .page-tai-xiu__registration-content {
        flex-direction: column-reverse; /* Image above steps */
    }

    .page-tai-xiu__registration-steps {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-tai-xiu__step-item {
        padding-top: 40px;
    }

    .page-tai-xiu__step-number {
        top: -10px;
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-section {
        padding: 50px 0;
    }

    .page-tai-xiu__faq-list {
        max-width: 100%;
    }

    .page-tai-xiu__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-tai-xiu__faq-answer {
        padding: 10px 20px 15px;
        font-size: 0.95em;
    }

    /* Conclusion Section */
    .page-tai-xiu__conclusion-section {
        padding: 50px 0;
    }
}