/* Base Styles & Typography */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  padding-top: 10px; /* Small top padding for hero section, relying on shared for body padding */
}

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

.page-tai-xiu__section {
  padding: 40px 0;
  text-align: center;
}

.page-tai-xiu__dark-bg {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-tai-xiu__light-bg {
  background-color: #111111;
  color: #FFF6D6;
}

.page-tai-xiu__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #F2C14E; /* Primary color */
  margin-bottom: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-tai-xiu__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  color: #FFD36B; /* Secondary color */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: left;
}

.page-tai-xiu__article-body {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

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

.page-tai-xiu__article-body ul,
.page-tai-xiu__article-body ol {
  margin-left: 25px;
  margin-bottom: 15px;
  list-style-position: inside;
}

.page-tai-xiu__article-body li {
  margin-bottom: 8px;
  font-size: 17px;
}

.page-tai-xiu__article-body h4 {
  font-size: 19px;
  color: #FFD36B;
  margin-bottom: 10px;
  font-weight: 600;
}

.text-highlight {
  color: #FFD36B;
  font-weight: bold;
}

.page-tai-xiu a {
  color: #FFD36B;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tai-xiu a:hover {
  color: #F2C14E;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  min-height: 500px;
  padding: 10px 0 60px; /* Small top padding + bottom padding */
}

.page-tai-xiu__hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: flex; /* Ensure image is centered if smaller */
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-tai-xiu__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Desktop default */
  display: block;
}

.page-tai-xiu__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-tai-xiu__main-title {
  font-size: clamp(36px, 5vw, 58px); /* H1 font size with clamp */
  color: #F2C14E; /* Primary color */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-tai-xiu__intro-text {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.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: bold;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  width: auto;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #FFF6D6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
  opacity: 0.9;
}

.page-tai-xiu__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Primary color */
  border: 2px solid #F2C14E;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

/* Article Content */
.page-tai-xiu__article-figure {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
}

.page-tai-xiu__bet-types-list {
  list-style: none;
  padding: 0;
}

.page-tai-xiu__bet-types-list li {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
}

.page-tai-xiu__bet-types-list li h4 {
  color: #F2C14E;
  margin-top: 0;
  font-size: 20px;
}

.page-tai-xiu__bet-types-list li ul {
  list-style: disc;
  margin-left: 20px;
  padding: 0;
}

.page-tai-xiu__advantages-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.page-tai-xiu__advantages-list li {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  padding: 25px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.page-tai-xiu__advantages-list li:hover {
  transform: translateY(-5px);
}

.page-tai-xiu__advantages-list li h4 {
  color: #F2C14E;
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 10px;
}

.page-tai-xiu__steps-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
}

.page-tai-xiu__steps-list li {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 8px;
  text-align: left;
  position: relative;
  padding-left: 70px; /* Space for step number */
}

.page-tai-xiu__steps-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  background-color: #F2C14E;
  color: #0A0A0A;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 22px;
}

.page-tai-xiu__steps-list li h4 {
  margin-top: 0;
  color: #FFD36B;
  font-size: 20px;
}

.page-tai-xiu__cta-bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* FAQ Section */
details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* 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 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF6D6;
  font-weight: 600;
}

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(242, 193, 78, 0.1);
}

.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6;
}

.page-tai-xiu__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 25px 25px;
  background: #0A0A0A; /* Background */
  border-radius: 0 0 8px 8px;
  color: #FFF6D6;
}

.page-tai-xiu__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 16px;
}

/* CTA Section at bottom */
.page-tai-xiu__cta-section {
  background-color: #0A0A0A;
  padding-bottom: 60px;
}

.page-tai-xiu__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-content {
    max-width: 700px;
    padding: 15px;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(32px, 4.5vw, 50px);
  }
  .page-tai-xiu__intro-text {
    font-size: clamp(16px, 2vw, 20px);
  }
  .page-tai-xiu__btn-primary, .page-tai-xiu__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-tai-xiu__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }
  .page-tai-xiu__sub-title {
    font-size: clamp(20px, 2.5vw, 28px);
  }
  .page-tai-xiu__advantages-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-tai-xiu__faq-qtext {
    font-size: 17px;
  }
  .page-tai-xiu__faq-toggle {
    font-size: 26px;
    width: 28px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding */
    min-height: auto;
  }
  .page-tai-xiu__hero-image img {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important; /* Mobile: unset aspect ratio */
    width: 100% !important;
    height: auto !important;
  }
  .page-tai-xiu__hero-content {
    position: static; /* Remove absolute positioning */
    transform: none; /* Remove transform */
    padding: 20px 15px; /* Adjust padding */
    background: none; /* Remove background overlay */
    border-radius: 0;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(28px, 7vw, 40px);
    margin-bottom: 15px;
  }
  .page-tai-xiu__intro-text {
    font-size: clamp(15px, 4vw, 18px);
    margin-bottom: 25px;
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* 产品展示图区域 - Not applicable for this page, but general grid behavior */
  /* For general purpose: */
  .page-tai-xiu__advantages-list {
    grid-template-columns: 1fr; /* Single column for advantages */
    padding: 0 15px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-tai-xiu__section-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 20px;
    padding: 0 15px;
  }
  .page-tai-xiu__sub-title {
    font-size: clamp(18px, 5vw, 24px);
    padding: 0 15px;
  }
  .page-tai-xiu__article-body {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__article-body p,
  .page-tai-xiu__article-body li {
    font-size: 16px;
  }
  .page-tai-xiu__article-body ul,
  .page-tai-xiu__article-body ol {
    margin-left: 15px;
  }
  .page-tai-xiu__article-figure {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }

  /* 通用图片与容器 */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__container,
  .page-tai-xiu__section,
  .page-tai-xiu__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* 按钮与按钮容器 */
  .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-bottom {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .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: 24px;
    width: 24px;
  }
  details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
    padding: 0 15px 15px;
  }
}