:root {
    /* Custom colors from requirements */
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --btn-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B; /* Body background color from shared.css */
    --light-grey: #f5f5f5; /* For contrast on light backgrounds */
    --dark-text: #333333; /* For contrast on light backgrounds */
    --white-text: #ffffff; /* For contrast on dark backgrounds */
}

/* Base styles for the page content, considering body background is --deep-navy (dark) */
.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-secondary); /* Default text color for the page, suitable for dark background */
    background-color: transparent; /* Main content background will be handled by sections */
}

/* Container for consistent spacing */
.page-tai-xiu__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

.page-tai-xiu__center-content {
    text-align: center;
}

/* Section styling */
.page-tai-xiu__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-tai-xiu__dark-section {
    background-color: var(--primary-color); /* Using brand primary for dark sections */
    color: var(--text-main); /* Light text on dark background */
}

.page-tai-xiu__light-bg {
    background-color: var(--light-grey);
    color: var(--dark-text);
}

.page-tai-xiu__light-bg .page-tai-xiu__section-title,
.page-tai-xiu__light-bg .page-tai-xiu__section-description,
.page-tai-xiu__light-bg .page-tai-xiu__card-title,
.page-tai-xiu__light-bg .page-tai-xiu__card-description,
.page-tai-xiu__light-bg .page-tai-xiu__article-subtitle,
.page-tai-xiu__light-bg .page-tai-xiu__list li,
.page-tai-xiu__light-bg .page-tai-xiu__figure-caption,
.page-tai-xiu__light-bg .page-tai-xiu__faq-qtext,
.page-tai-xiu__light-bg .page-tai-xiu__faq-answer p {
    color: var(--dark-text); /* Ensure dark text on light background */
}

.page-tai-xiu__light-bg .page-tai-xiu__card {
    background-color: var(--white-text);
}


/* Titles */
.page-tai-xiu__section-title {
    font-size: clamp(28px, 4vw, 38px); /* Using clamp for responsive font size */
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-main); /* Default for dark sections */
    line-height: 1.2;
}

.page-tai-xiu__text-main {
    color: var(--text-main);
}
.page-tai-xiu__text-secondary {
    color: var(--text-secondary);
}

.page-tai-xiu__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary);
}

.page-tai-xiu__card-title {
    font-size: 22px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--text-main); /* Default for dark sections */
}

.page-tai-xiu__article-subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color); /* Dark text for light background section */
}

/* Buttons */
.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-tai-xiu__btn-primary {
    background: var(--btn-gradient);
    color: var(--white-text);
    border: none;
    box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-tai-xiu__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6);
}

.page-tai-xiu__btn-secondary {
    background: var(--white-text);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white-text);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__hero-cta-buttons,
.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

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

.page-tai-xiu__hero-image {
    width: 100%;
    height: 600px; /* Fixed height for desktop, will be responsive */
    overflow: hidden;
    margin-bottom: 40px;
}

.page-tai-xiu__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop */
    object-position: center;
}

.page-tai-xiu__hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative; /* Ensure content is above image if z-index is used, but not overlapping */
    z-index: 1;
    padding: 0 15px;
}

.page-tai-xiu__main-title {
    font-size: clamp(36px, 5vw, 56px); /* Adjusted for H1, prevent excessive size */
    font-weight: 800;
    color: var(--gold-color); /* Using gold for main title */
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-tai-xiu__hero-description {
    font-size: 20px;
    color: var(--text-main);
    max-width: 700px;
    margin: 0 auto;
}

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

.page-tai-xiu__card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-tai-xiu__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__card img {
    border-radius: 8px;
    margin-bottom: 15px;
    width: 100%; /* Ensure card images fill width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
}

.page-tai-xiu__card-description {
    font-size: 16px;
    color: var(--text-secondary);
}

/* How to Play Section */
.page-tai-xiu__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-tai-xiu__step-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.page-tai-xiu__step-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: var(--white-text);
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(29, 95, 209, 0.4);
}

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

.page-tai-xiu__step-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.page-tai-xiu__step-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    background: var(--btn-gradient);
    color: var(--white-text);
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-tai-xiu__step-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Strategies Section */
.page-tai-xiu__article-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--white-text);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--dark-text); /* Ensure dark text on white background */
}

.page-tai-xiu__article-body p {
    margin-bottom: 15px;
    font-size: 17px;
    color: var(--dark-text);
}

.page-tai-xiu__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.page-tai-xiu__list li {
    margin-bottom: 8px;
    font-size: 17px;
    color: var(--dark-text);
}

.page-tai-xiu__figure-caption {
    font-style: italic;
    font-size: 14px;
    color: var(--dark-text);
    margin-top: 10px;
    text-align: center;
}

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

.page-tai-xiu__article-figure img {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-tai-xiu__promo-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-tai-xiu__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

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

/* FAQ Section */
details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
}
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;
  color: var(--text-main);
}
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); /* Lighter hover for dark background */
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-tai-xiu__faq-toggle {
  font-size: 28px; /* Larger toggle for better visibility */
  font-weight: bold;
  color: var(--gold-color); /* Using gold for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px; /* Larger width */
  height: 32px; /* Larger height */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 20px 20px;
  background: var(--deep-navy); /* Darker background for answer */
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary); /* Lighter text for answer */
}
.page-tai-xiu__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
    color: var(--text-secondary); /* Ensure text color is set */
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-tai-xiu__section {
        padding: 50px 0;
    }
    .page-tai-xiu__section-title {
        font-size: clamp(26px, 3.5vw, 34px);
    }
    .page-tai-xiu__section-description {
        font-size: 17px;
    }
    .page-tai-xiu__hero-image {
        height: 500px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-tai-xiu__hero-section {
        padding-top: 10px; /* Small top padding, not header-offset */
        padding-bottom: 40px;
    }
    .page-tai-xiu__hero-image {
        height: 300px;
        margin-bottom: 20px;
    }
    .page-tai-xiu__hero-image img {
        object-fit: contain !important; /* Must be contain for mobile */
        aspect-ratio: unset !important; /* Remove aspect ratio */
    }
    .page-tai-xiu__main-title {
        font-size: clamp(30px, 8vw, 40px); /* Smaller H1 for mobile */
        margin-bottom: 15px;
    }
    .page-tai-xiu__hero-description {
        font-size: 16px;
        padding: 0 10px;
    }
    .page-tai-xiu__hero-cta-buttons,
    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
   }}