:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-main: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default to light text for dark background */
    background-color: var(--background-main);
}

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

.page-tai-xiu__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main);
    line-height: 1.2;
}

.page-tai-xiu__text-contrast-fix {
    color: var(--text-main) !important;
}

.page-tai-xiu__text-link {
    color: var(--gold-color);
    text-decoration: underline;
}

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--background-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.page-tai-xiu__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.7);
}

.page-tai-xiu__hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 15px;
    max-width: 900px;
    margin-top: -150px; /* Pull content up over the image, but not overlapping text on image */
    color: var(--text-main);
}

.page-tai-xiu__main-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-tai-xiu__intro-text {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 30px;
    color: var(--text-secondary);
}

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

.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;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-tai-xiu__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-tai-xiu__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-tai-xiu__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

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

.page-tai-xiu__intro-section .page-tai-xiu__section-title {
    color: var(--deep-green);
}

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

.page-tai-xiu__text-block {
    flex: 1;
    font-size: 17px;
}

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

.page-tai-xiu__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-tai-xiu__image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    display: block;
}

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

.page-tai-xiu__guide-section .page-tai-xiu__section-title {
    color: var(--text-main);
}

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

.page-tai-xiu__step-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-tai-xiu__step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-tai-xiu__step-card p {
    font-size: 16px;
    color: var(--text-secondary);
}

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

.page-tai-xiu__image-center img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    display: block;
    margin: 0 auto;
}

/* Why Choose Section */
.page-tai-xiu__why-choose-section {
    background-color: var(--text-main);
    color: #333333;
    padding: 80px 0;
}

.page-tai-xiu__why-choose-section .page-tai-xiu__section-title {
    color: var(--deep-green);
}

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

.page-tai-xiu__feature-item {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-color);
}

.page-tai-xiu__feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-tai-xiu__feature-item p {
    font-size: 16px;
    color: #555555;
}

.page-tai-xiu__image-block--full-width {
    margin-top: 40px;
    text-align: center;
}

.page-tai-xiu__image-block--full-width img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    display: block;
    margin: 0 auto;
}

/* Tips Section */
.page-tai-xiu__tips-section {
    background-color: var(--background-main);
    padding: 80px 0;
}

.page-tai-xiu__tips-section .page-tai-xiu__section-title {
    color: var(--text-main);
}

.page-tai-xiu__article-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 17px;
    color: var(--text-secondary);
}

.page-tai-xiu__article-body h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-tai-xiu__article-body p {
    margin-bottom: 15px;
}

.page-tai-xiu__article-figure {
    margin: 40px 0;
    text-align: center;
}

.page-tai-xiu__article-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    display: block;
    margin: 0 auto;
}

/* Related Games Section */
.page-tai-xiu__related-games-section {
    background-color: var(--text-main);
    color: #333333;
    padding: 80px 0;
}

.page-tai-xiu__related-games-section .page-tai-xiu__section-title {
    color: var(--deep-green);
}

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

.page-tai-xiu__game-card {
    background-color: #f8f8f8;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-tai-xiu__game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-tai-xiu__game-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 15px 10px;
}

.page-tai-xiu__game-card p {
    font-size: 15px;
    color: #555555;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tai-xiu__game-card .page-tai-xiu__btn-primary {
    margin: 0 15px 20px;
    width: calc(100% - 30px);
}

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

.page-tai-xiu__faq-section .page-tai-xiu__section-title {
    color: var(--text-main);
}

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

details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-main);
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question:hover {
  background: rgba(var(--primary-color), 0.1);
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold-color);
}
.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 20px 20px;
  background: var(--deep-green);
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary);
}

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

.page-tai-xiu__cta-section .page-tai-xiu__section-title {
    color: var(--deep-green);
}

.page-tai-xiu__cta-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-tai-xiu__btn-large {
    padding: 18px 40px;
    font-size: 20px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-content {
        margin-top: -100px;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(32px, 4.5vw, 50px);
    }
    .page-tai-xiu__intro-text {
        font-size: clamp(15px, 1.8vw, 18px);
    }
    .page-tai-xiu__content-grid {
        flex-direction: column;
    }
    .page-tai-xiu__image-block {
        margin-top: 30px;
    }
    .page-tai-xiu__article-body {
        font-size: 16px;
    }
    .page-tai-xiu__article-body h3 {
        font-size: 22px;
    }
    .page-tai-xiu__games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-tai-xiu__hero-section {
        padding-top: 10px; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
    }
    .page-tai-xiu__hero-image img {
        object-fit: contain !important; /* HERO 主图区域: 移动 object-fit:contain !important */
        aspect-ratio: unset !important;
    }
    .page-tai-xiu__hero-content {
        margin-top: -80px;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 15px;
    }
    .page-tai-xiu__intro-text {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .page-tai-xiu__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__cta-buttons,
    .page-tai-xiu__button-group,
    .page-tai-xiu__btn-container {
        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__container {
        padding: 15px;
    }
    .page-tai-xiu__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-tai-xiu__content-grid {
        gap: 30px;
    }
    .page-tai-xiu__text-block {
        font-size: 15px;
    }
    .page-tai-xiu__image-block img,
    .page-tai-xiu__image-center img,
    .page-tai-xiu__image-block--full-width img,
    .page-tai-xiu__article-figure img,
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu__intro-section,
    .page-tai-xiu__guide-section,
    .page-tai-xiu__why-choose-section,
    .page-tai-xiu__tips-section,
    .page-tai-xiu__related-games-section,
    .page-tai-xiu__faq-section,
    .page-tai-xiu__cta-section {
        padding: 40px 0;
    }
    .page-tai-xiu__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-tai-xiu__features-grid {
        grid-template-columns: 1fr;
    }
    .page-tai-xiu__feature-item {
        padding: 20px;
    }
    .page-tai-xiu__feature-title {
        font-size: 18px;
    }
    .page-tai-xiu__article-body {
        font-size: 15px;
    }
    .page-tai-xiu__article-body h3 {
        font-size: 20px;
    }
    .page-tai-xiu__games-grid {
        grid-template-columns: 1fr;
    }
    .page-tai-xiu__game-card img {
        
    }
    .page-tai-xiu__game-card h3 {
        font-size: 20px;
    }
    .page-tai-xiu__game-card p {
        font-size: 14px;
    }
    details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question { padding: 15px; }
    .page-tai-xiu__faq-qtext { font-size: 16px; }
    .page-tai-xiu__faq-toggle { font-size: 20px; width: 24px; }
    details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer { padding: 0 15px 15px; }

    /* Ensure containers are responsive and prevent overflow */
    .page-tai-xiu__section,
    .page-tai-xiu__card,
    .page-tai-xiu__container,
    .page-tai-xiu__content-grid,
    .page-tai-xiu__steps-grid,
    .page-tai-xiu__features-grid,
    .page-tai-xiu__games-grid,
    .page-tai-xiu__faq-list,
    .page-tai-xiu__cta-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tai-xiu__related-games-section { overflow-x: hidden; } /* 产品展示图区域 */
}