/* Base styles for the page-tai-xiu */
.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

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

.page-tai-xiu__section {
  padding: 60px 20px;
  margin-bottom: 20px;
}

.page-tai-xiu__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-tai-xiu__sub-title {
  font-size: 1.8em;
  color: #FFD36B; /* Auxiliary color */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-tai-xiu p {
  margin-bottom: 1em;
  font-size: 1.1em;
}

.page-tai-xiu ul,
.page-tai-xiu ol {
  margin-bottom: 1em;
  padding-left: 20px;
}

.page-tai-xiu li {
  margin-bottom: 0.5em;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  padding-bottom: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a minimum height */
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

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

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image, but not covering text */
  background: rgba(17, 17, 17, 0.85); /* Card BG with transparency */
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid #3A2A12; /* Border */
}

.page-tai-xiu__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  color: #F2C14E; /* Main color */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-tai-xiu__hero-description {
  font-size: 1.2em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box; /* Button responsive */
  white-space: normal; /* Button responsive */
  word-wrap: break-word; /* Button responsive */
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #ffffff; /* White text */
  border: none;
}

.page-tai-xiu__btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.page-tai-xiu__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E;
}

.page-tai-xiu__btn-secondary:hover {
  transform: translateY(-2px);
  background: #F2C14E;
  color: #ffffff;
}

/* Introduction Section */
.page-tai-xiu__introduction-section {
  background-color: #0A0A0A;
}

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

/* How to Play Section */
.page-tai-xiu__how-to-play-section {
  background-color: #111111; /* Card BG */
}

.page-tai-xiu__dark-bg {
  background-color: #111111; /* Card BG */
  color: #FFF6D6;
}

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

.page-tai-xiu__card {
  background: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border */
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  height: 100%; /* Ensure cards in grid have same height */
  display: flex;
  flex-direction: column;
}

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

/* Strategies Section */
.page-tai-xiu__strategies-section {
  background-color: #0A0A0A;
}

/* Why 7ball Section */
.page-tai-xiu__why-7ball-section {
  background-color: #111111; /* Card BG */
}

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

.page-tai-xiu__feature-card {
  background: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  height: 100%;
}

.page-tai-xiu__feature-title {
  font-size: 1.5em;
  color: #FFD36B;
  margin-bottom: 15px;
  font-weight: bold;
}

/* CTA Section */
.page-tai-xiu__cta-section {
  background-color: #0A0A0A;
}

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

/* FAQ Section */
.page-tai-xiu__faq-section {
  background-color: #111111; /* Card BG */
}

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

.page-tai-xiu__faq-item {
  background: #0A0A0A; /* Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  cursor: pointer;
  list-style: none;
}

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

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

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 25px;
  font-size: 1.1em;
  color: #FFF6D6; /* Text Main */
  border-top: 1px solid #3A2A12;
}

/* General image styling for content sections */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Apply a small border-radius to all content images */
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
  .page-tai-xiu {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-tai-xiu__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tai-xiu__section {
    padding: 40px 15px;
  }

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

  .page-tai-xiu__sub-title {
    font-size: 1.5em;
  }

  /* HERO 主图区域 */
  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    padding-bottom: 40px;
    min-height: auto;
  }

  .page-tai-xiu__hero-image {
    max-height: 300px !important; /* Ensure image fits */
    width: 100% !important;
  }

  .page-tai-xiu__hero-content {
    margin-top: -80px; /* Adjust overlap for mobile */
    padding: 25px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

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

  /* 按钮与按钮容器 */
  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    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;
  }

  /* Grid layouts */
  .page-tai-xiu__grid-3-cols,
  .page-tai-xiu__features-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

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

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