/* ===== Tai Xiu Page Styles ===== */
.page-tai-xiu {
  color: #333333;
  background-color: #F5F7FA;
  padding-bottom: 40px;
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-tai-xiu__hero-image {
  width: 100%;
  max-width: 1200px;
}
.page-tai-xiu__hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 17/5;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.page-tai-xiu__hero-content {
  text-align: center;
  margin-top: 12px;
  margin-bottom: 8px;
}
.page-tai-xiu__main-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.5px;
  max-width: 700px;
  margin: 0 auto 10px;
  color: var(--primary-color);
}
.page-tai-xiu__hero-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 16px;
}
.page-tai-xiu__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

/* Buttons */
.page-tai-xiu__btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}
.page-tai-xiu__btn--primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff !important;
  border: none;
}
.page-tai-xiu__btn--secondary {
  background: #FFFFFF;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
}
.page-tai-xiu__btn:hover {
  opacity: 0.85;
}

/* Logo Grid */
.page-tai-xiu__logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 16px;
  justify-items: center;
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0 16px;
}
.page-tai-xiu__logo-item {
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
}
.page-tai-xiu__logo-image {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 2/1;
  object-fit: contain;
}
.page-tai-xiu__logo-cta {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.page-tai-xiu__logo-item:nth-child(5) {
  grid-column: 2;
}
.page-tai-xiu__logo-item:nth-child(6) {
  grid-column: 3;
}

/* Guide Section */
.page-tai-xiu__guide-section {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  max-width: 1000px;
  margin: 44px auto 0;
}
.page-tai-xiu__guide-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}
.page-tai-xiu__guide-title {
  text-align: center;
  color: var(--primary-color);
  font-size: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);
  margin-bottom: 16px;
}
.page-tai-xiu__guide-intro {
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
}
.page-tai-xiu__guide-figure {
  margin: 0 0 24px;
  text-align: center;
}
.page-tai-xiu__guide-figure img {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 2/1;
  object-fit: cover;
  border-radius: 8px;
}
.page-tai-xiu__guide-figure figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
}
.page-tai-xiu__guide-inner h3 {
  color: var(--secondary-color);
  margin-top: 24px;
}
.page-tai-xiu__guide-inner ul,
.page-tai-xiu__guide-inner ol {
  padding-left: 20px;
  line-height: 1.6;
}
.page-tai-xiu__guide-cta {
  text-align: center;
  margin: 32px 0;
}
.page-tai-xiu__faq-item {
  background: #F5F7FA;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 12px;
}
.page-tai-xiu__faq-item summary {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.page-tai-xiu__faq-toggle {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--primary-color);
  margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .page-tai-xiu {
    max-width: 100%;
    overflow-x: hidden;
  }
  .page-tai-xiu__hero-section {
    padding-top: 10px;
  }
  .page-tai-xiu__hero-image img {
    aspect-ratio: 2/1;
  }
  .page-tai-xiu__hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }
  .page-tai-xiu__btn {
    width: 100%;
  }
  .page-tai-xiu__logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 8px;
  }
  .page-tai-xiu__logo-item:nth-child(5),
  .page-tai-xiu__logo-item:nth-child(6) {
    grid-column: auto;
  }
  .page-tai-xiu__guide-inner {
    padding: 16px 12px 32px;
  }
  .page-tai-xiu img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-tai-xiu__logo-img {
    max-width: 100% !important;
    height: auto !important;
  }
}