/* ===== Tai Xiu page - HU88 ===== */
.page-tai-xiu {
  background: var(--deep-navy, #08162B);
  color: #F3F8FF;
}

.page-tai-xiu__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px 0;
}

.page-tai-xiu__hero-image {
  width: 100%;
  max-width: 1020px;
}

.page-tai-xiu__hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 17 / 5;
  object-fit: cover;
  border-radius: 12px;
}

.page-tai-xiu__hero-content {
  width: 100%;
  max-width: 1020px;
  margin-top: 16px;
  text-align: center;
}

.page-tai-xiu__hero-title {
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.5px;
  color: #F3F8FF;
  margin: 0 0 12px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__hero-subtitle {
  color: #AFC4E8;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
}

.page-tai-xiu__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-tai-xiu__btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-tai-xiu__btn--primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #FFFFFF;
}

.page-tai-xiu__btn--secondary {
  background: transparent;
  color: #F3F8FF;
  border: 2px solid #244D84;
}

.page-tai-xiu__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 168, 255, 0.3);
}

/* Partner / Logo Grid */
.page-tai-xiu__partner {
  margin-top: 32px;
  padding: 0 16px;
}

.page-tai-xiu__partner-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: #10233F;
  border: 1px solid #244D84;
  border-radius: 16px;
  padding: 24px;
}

.page-tai-xiu__partner-title {
  text-align: center;
  color: #F3F8FF;
  margin: 0 0 16px;
  font-size: 1.5rem;
}

.page-tai-xiu__logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
  justify-items: center;
}

.page-tai-xiu__logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 280px;
  width: 100%;
}

.page-tai-xiu__logo-item img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  border-radius: 8px;
}

.page-tai-xiu__logo-cta {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__logo-cta:hover {
  box-shadow: 0 4px 12px rgba(79, 168, 255, 0.4);
}

.page-tai-xiu__logo-item:nth-child(5) {
  grid-column: 2;
}

.page-tai-xiu__logo-item:nth-child(6) {
  grid-column: 3;
}

/* Features */
.page-tai-xiu__features {
  margin-top: 48px;
  padding: 0 16px;
}

.page-tai-xiu__features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-tai-xiu__features-inner h2 {
  text-align: center;
  color: #F3F8FF;
  margin-bottom: 24px;
  font-size: 1.75rem;
}

.page-tai-xiu__features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.page-tai-xiu__feature-card {
  background: #10233F;
  border: 1px solid #244D84;
  border-radius: 16px;
  padding: 24px;
}

.page-tai-xiu__feature-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.page-tai-xiu__feature-card h3 {
  color: #F2C14E;
  margin: 8px 0 12px;
  font-size: 1.3rem;
}

.page-tai-xiu__feature-card p {
  color: #AFC4E8;
  line-height: 1.6;
}

/* Guide */
.page-tai-xiu__guide {
  margin-top: 48px;
}

.page-tai-xiu__guide-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.page-tai-xiu__guide-title {
  text-align: center;
  color: #F3F8FF;
  font-size: 1.75rem;
}

.page-tai-xiu__guide-figure {
  margin: 16px auto;
  max-width: 800px;
}

.page-tai-xiu__guide-figure img {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #244D84;
}

.page-tai-xiu__guide-content h3 {
  color: #F2C14E;
  margin: 16px 0 8px;
  font-size: 1.25rem;
}

.page-tai-xiu__guide-content p {
  color: #AFC4E8;
  line-height: 1.7;
  margin: 8px 0;
}

.page-tai-xiu__guide-content a {
  color: #4FA8FF;
  text-decoration: underline;
}

/* FAQ */
.page-tai-xiu__faq {
  margin-top: 48px;
  padding: 0 16px 48px;
}

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

.page-tai-xiu__faq-inner h2 {
  text-align: center;
  color: #F3F8FF;
  margin-bottom: 24px;
  font-size: 1.75rem;
}

.page-tai-xiu__faq-item {
  background: #10233F;
  border: 1px solid #244D84;
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 16px 20px;
  color: #AFC4E8;
  line-height: 1.6;
}

.page-tai-xiu__faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #F3F8FF;
  font-size: 1.1rem;
  list-style: none;
  position: relative;
  padding-right: 24px;
}

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

.page-tai-xiu__faq-item summary::after {
  content: '+ ';
  position: absolute;
  right: 0;
  top: 0;
  color: #F2C14E;
  font-size: 1.5rem;
  line-height: 1;
}

.page-tai-xiu__faq-item[open] summary::after {
  content: '- ';
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .page-tai-xiu__hero-title {
    font-size: 1.6rem;
  }

  .page-tai-xiu__hero-image img {
    aspect-ratio: 2 / 1;
  }

  .page-tai-xiu__logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .page-tai-xiu__logo-item:nth-child(5),
  .page-tai-xiu__logo-item:nth-child(6) {
    grid-column: auto;
  }

  .page-tai-xiu__features-grid {
    grid-template-columns: 1fr;
  }

  .page-tai-xiu__btn {
    max-width: 100%;
    width: auto;
  }

  .page-tai-xiu img {
    max-width: 100% !important;
    height: auto !important;
  }
}