:root {
  --color-primary: #113B7A;
  --color-secondary: #1D5FD1;
  --color-btn-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --color-card-bg: #10233F;
  --color-text-main: #F3F8FF;
  --color-text-secondary: #AFC4E8;
  --color-border: #244D84;
  --color-glow: #4FA8FF;
  --color-gold: #F2C14E;
  --color-divider: #1B3357;
  --color-deep-navy: #08162B;
}

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

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

.page-tai-xiu__dark-bg {
  background: var(--color-deep-navy);
  color: var(--color-text-main);
}

.page-tai-xiu__light-bg {
  background: #f9f9f9;
  color: #333333; /* Deep navy is dark, so light sections need dark text */
}

.page-tai-xiu__section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: var(--color-gold);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__sub-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-gold);
}

.page-tai-xiu__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 25px;
  color: var(--color-text-secondary);
  text-align: justify;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-tai-xiu__btn-primary {
  background: var(--color-btn-gradient);
  color: var(--color-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-tai-xiu__btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-deep-navy);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-tai-xiu__btn-text {
  display: inline-block;
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.page-tai-xiu__btn-text:hover {
  color: var(--color-glow);
  text-decoration: underline;
}

.page-tai-xiu__card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--color-text-secondary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

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

.page-tai-xiu__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-tai-xiu__card-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding for body offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-tai-xiu__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) grayscale(0.2);
}

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

.page-tai-xiu__main-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-tai-xiu__subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--color-text-main);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-tai-xiu__introduction-section .page-tai-xiu__section-title {
  color: var(--color-primary);
}

.page-tai-xiu__introduction-section .page-tai-xiu__text-block {
  color: #555;
}

.page-tai-xiu__image-text-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-tai-xiu__image-text-content {
  flex: 1;
}

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

.page-tai-xiu__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  min-height: 200px;
}

.page-tai-xiu__content-image.page-tai-xiu__image-center {
  display: block;
  margin: 40px auto;
}

.page-tai-xiu__features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
}

.page-tai-xiu__features-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%231D5FD1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 1 1-5.93-8.98"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 17px;
  color: #444;
}

.page-tai-xiu__features-list li strong {
  color: var(--color-primary);
}

/* Game Types Section */
.page-tai-xiu__game-types-section {
  padding: 60px 0;
}

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

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

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

.page-tai-xiu__guide-section .page-tai-xiu__text-block {
  color: #555;
}

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

.page-tai-xiu__guide-step {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--color-text-secondary);
}

.page-tai-xiu__step-icon {
  width: 60px;
  height: 60px;
  background: var(--color-gold);
  color: var(--color-deep-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

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

.page-tai-xiu__step-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

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

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

.page-tai-xiu__tip-card .page-tai-xiu__card-title {
  color: var(--color-gold);
}

.page-tai-xiu__tip-card .page-tai-xiu__card-description {
  font-size: 16px;
}

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

.page-tai-xiu__promotions-section .page-tai-xiu__section-title {
  color: var(--color-primary);
}

.page-tai-xiu__promotions-section .page-tai-xiu__text-block {
  color: #555;
}

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

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

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

.page-tai-xiu__advantage-item .page-tai-xiu__card-title {
  color: var(--color-gold);
}

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

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

.page-tai-xiu__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333;
}

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: #f5f5f5;
}

.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

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

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

.page-tai-xiu__cta-section .page-tai-xiu__section-title {
  margin-bottom: 20px;
}

.page-tai-xiu__cta-section .page-tai-xiu__subtitle {
  font-size: 20px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
}

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

/* General Image Styling for content area */
.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__main-title {
    font-size: clamp(32px, 5vw, 48px);
  }

  .page-tai-xiu__subtitle {
    font-size: clamp(16px, 2.2vw, 20px);
  }

  .page-tai-xiu__hero-content {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .page-tai-xiu__image-text-layout {
    flex-direction: column;
    gap: 30px;
  }
  
  .page-tai-xiu__image-text-media {
    order: -1; /* Image appears above text on smaller screens */
  }
}

@media (max-width: 849px) {
  .page-tai-xiu__hero-image-wrapper img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }
}

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

  .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;
    padding-bottom: 40px;
  }
  
  .page-tai-xiu__hero-image-wrapper img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    min-height: 200px;
  }

  .page-tai-xiu__hero-content {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }

  .page-tai-xiu__subtitle {
    font-size: clamp(16px, 4vw, 18px);
    margin-bottom: 30px;
  }

  .page-tai-xiu__hero-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-buttons,
  .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;
    flex-direction: column;
  }

  .page-tai-xiu__section-title {
    font-size: clamp(22px, 6vw, 30px);
    margin-bottom: 20px;
  }

  .page-tai-xiu__sub-title {
    font-size: 20px;
  }

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

  /* 通用图片与容器 */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-tai-xiu__introduction-section,
  .page-tai-xiu__game-types-section,
  .page-tai-xiu__guide-section,
  .page-tai-xiu__tips-section,
  .page-tai-xiu__promotions-section,
  .page-tai-xiu__advantages-section,
  .page-tai-xiu__faq-section,
  .page-tai-xiu__cta-section {
    padding: 40px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__image-text-layout {
    flex-direction: column;
    gap: 20px;
  }

  .page-tai-xiu__image-text-media {
    order: -1;
  }

  .page-tai-xiu__features-list li {
    font-size: 16px;
    margin-bottom: 10px;
  }

  /* 产品展示图区域 (game-cards-grid) */
  .page-tai-xiu__game-cards-grid,
  .page-tai-xiu__promo-cards-grid,
  .page-tai-xiu__advantages-grid,
  .page-tai-xiu__tips-grid,
  .page-tai-xiu__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .page-tai-xiu__card {
    padding: 20px;
    margin-bottom: 0;
  }

  .page-tai-xiu__card-title {
    font-size: 18px;
  }

  .page-tai-xiu__card-description {
    font-size: 15px;
  }

  .page-tai-xiu__step-title {
    font-size: 20px;
  }

  .page-tai-xiu__faq-qtext {
    font-size: 15px;
  }

  details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question { 
    padding: 15px; 
  }

  details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
    padding: 0 15px 15px;
  }
}