/* style/tai-xiu.css */
:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --page-bg-color: #F4F7FB;
    --text-main: #1F2D3D;
    --text-black: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

.page-tai-xiu {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--page-bg-color);
    line-height: 1.6;
}

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

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

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

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

.page-tai-xiu__hero-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    padding: 0 20px;
}

.page-tai-xiu__main-title {
    font-size: clamp(2.5em, 4vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary,
.page-tai-xiu__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-tai-xiu__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

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

.page-tai-xiu__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    background: var(--primary-color);
    color: #ffffff;
}

.page-tai-xiu__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 20px;
}

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

.page-tai-xiu__section-description {
    font-size: 1.1em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__section-description--light {
    color: #f0f0f0;
}

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

.page-tai-xiu__intro-text {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: justify;
    color: var(--text-main);
}

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

/* Rules Section */
.page-tai-xiu__rules-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

.page-tai-xiu__grid-two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.page-tai-xiu__rule-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.page-tai-xiu__rule-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* Bet Types Section */
.page-tai-xiu__bet-types-section {
    padding: 60px 0;
    background-color: var(--primary-color);
}

.page-tai-xiu__dark-section {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-tai-xiu__bet-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

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

.page-tai-xiu__card--dark-bg {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-tai-xiu__card--dark-bg:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: inherit;
}

.page-tai-xiu__card-text {
    font-size: 0.95em;
    line-height: 1.7;
    color: inherit;
}

/* Strategy Section */
.page-tai-xiu__strategy-section {
    padding: 60px 0;
    background-color: var(--page-bg-color);
}

.page-tai-xiu__strategy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.page-tai-xiu__strategy-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tai-xiu__strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-tai-xiu__strategy-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-tai-xiu__strategy-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--primary-color);
    margin: 20px 15px 10px;
}

.page-tai-xiu__strategy-text {
    font-size: 0.95em;
    color: var(--text-main);
    padding: 0 15px 20px;
}

.page-tai-xiu__cta-bottom {
    text-align: center;
}

/* Advantages Section */
.page-tai-xiu__advantages-section {
    padding: 60px 0;
}

.page-tai-xiu__advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.page-tai-xiu__advantage-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__advantage-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-tai-xiu__advantage-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Guide Section */
.page-tai-xiu__guide-section {
    padding: 60px 0;
    background-color: var(--page-bg-color);
}

.page-tai-xiu__guide-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.page-tai-xiu__step-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    padding-top: 60px;
    border: 1px solid var(--border-color);
}

.page-tai-xiu__step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__step-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.page-tai-xiu__btn-link {
    background: var(--primary-color);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9em;
}

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

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

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

.page-tai-xiu__faq-item {
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-tai-xiu__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-main);
    background-color: #ffffff;
    position: relative;
}

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

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

.page-tai-xiu__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    margin-left: 10px;
    color: var(--primary-color);
}

.page-tai-xiu__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: var(--text-main);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-answer {
    max-height: 500px; /* Adjust as needed */
    padding-top: 10px;
}

/* CTA Section */
.page-tai-xiu__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color);
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__container {
        padding: 15px;
    }

    .page-tai-xiu__hero-image-wrapper {
        max-height: 500px;
    }

    .page-tai-xiu__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-tai-xiu__hero-description {
        font-size: 1.1em;
    }

    .page-tai-xiu__grid-two-columns,
    .page-tai-xiu__bet-types-grid,
    .page-tai-xiu__strategy-grid,
    .page-tai-xiu__advantages-grid,
    .page-tai-xiu__guide-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .page-tai-xiu__section-title {
        font-size: 2em;
    }

    .page-tai-xiu__intro-text,
    .page-tai-xiu__section-description {
        font-size: 1em;
    }

    .page-tai-xiu__strategy-image {
        height: 180px;
    }
}

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

    /* 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-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-tai-xiu__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-tai-xiu__hero-description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    .page-tai-xiu__hero-cta-buttons,
    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    /* 按钮与按钮容器 */
    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary,
    .page-tai-xiu__btn-link,
    .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: 12px 20px;
    }

    /* 深色导语区 */
    .page-tai-xiu__intro-section {
        padding: 40px 0;
    }

    .page-tai-xiu__intro-text {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

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

    .page-tai-xiu__section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

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

    .page-tai-xiu__content-image {
        height: auto;
        margin-top: 20px;
    }

    .page-tai-xiu__grid-two-columns,
    .page-tai-xiu__bet-types-grid,
    .page-tai-xiu__advantages-grid,
    .page-tai-xiu__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 博客网格 (Strategy Grid is similar) */
    .page-tai-xiu__strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-tai-xiu__strategy-card {
        margin-bottom: 15px;
    }

    .page-tai-xiu__strategy-image {
        height: 150px;
    }

    .page-tai-xiu__rule-item,
    .page-tai-xiu__card,
    .page-tai-xiu__advantage-item,
    .page-tai-xiu__step-item {
        padding: 25px 20px;
    }

    .page-tai-xiu__rule-title,
    .page-tai-xiu__card-title,
    .page-tai-xiu__advantage-title,
    .page-tai-xiu__step-title {
        font-size: 1.2em;
    }

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

    .page-tai-xiu__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }

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

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

    .page-tai-xiu__cta-content {
        padding: 0 15px;
    }
}

@media (max-width: 549px) {
    .page-tai-xiu__hero-cta-buttons,
    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}