/* ===== Module: Hero (desktop + mobile) ===== */
.page-tai-xiu__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0D0E12;
  padding: 10px 0 0;
}
.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
}
.page-tai-xiu__hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 17/5;
  object-fit: cover;
  border-radius: 8px;
}
.page-tai-xiu__hero-content {
  width: 100%;
  max-width: 1200px;
  text-align: center;
  color: #FFF3E6;
  padding: 24px 16px 32px;
  box-sizing: border-box;
}
.page-tai-xiu__hero-title {
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 840px;
  margin: 0 auto 12px;
  color: #FFB04D;
}
.page-tai-xiu__hero-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 24px;
  color: #FFF3E6;
}
.page-tai-xiu__hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.page-tai-xiu__btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}
.page-tai-xiu__btn--primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #0D0E12;
  border: 1px solid #A84F0C;
  box-shadow: 0 4px 18px rgba(255, 176, 77, 0.4);
}
.page-tai-xiu__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 176, 77, 0.6);
}
.page-tai-xiu__btn--outline {
  background: transparent;
  color: #FFB04D;
  border: 2px solid #FFA53A;
}
.page-tai-xiu__btn--outline:hover {
  background: rgba(255, 165, 58, 0.1);
  border-color: #FFB04D;
}

/* ===== Module: Logo Grid (desktop 4+2, mobile 2) ===== */
.page-tai-xiu__logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
  justify-items: center;
  max-width: 1200px;
  margin: 16px auto 40px;
  padding: 32px 16px;
  border-top: 1px solid #A84F0C;
  border-bottom: 1px solid #A84F0C;
  box-sizing: border-box;
}
.page-tai-xiu__logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 280px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.page-tai-xiu__logo-image {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: contain;
  border-radius: 6px;
}
.page-tai-xiu__logo-cta {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #0D0E12;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid #A84F0C;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}
.page-tai-xiu__logo-cta:hover {
  box-shadow: 0 0 12px rgba(255, 176, 77, 0.5);
}
.page-tai-xiu__logo-item:nth-child(5) {
  grid-column: 2;
}
.page-tai-xiu__logo-item:nth-child(6) {
  grid-column: 3;
}

/* ===== Module: Guide (desktop figures) ===== */
.page-tai-xiu__guide-section {
  background: #17191F;
  padding: 40px 16px;
}
.page-tai-xiu__guide-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.page-tai-xiu__guide-title {
  text-align: center;
  color: #FFB04D;
  font-size: 2rem;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}
.page-tai-xiu__guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.page-tai-xiu__guide-figure {
  margin: 0;
  padding: 0;
  background: #0D0E12;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #A84F0C;
  transition: box-shadow 0.3s ease;
}
.page-tai-xiu__guide-figure:hover {
  box-shadow: 0 4px 20px rgba(255, 165, 58, 0.3);
}
.page-tai-xiu__guide-figure img {
  display: block;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 2/1;
  object-fit: cover;
}
.page-tai-xiu__guide-figure figcaption {
  padding: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #FFF3E6;
  text-align: center;
}

/* ===== Site BG ===== */
.page-tai-xiu {
  background: #0D0E12;
  color: #FFF3E6;
}

/* ===== Media Query 768px ===== */
@media (max-width: 768px) {
  .page-tai-xiu__hero-image {
    aspect-ratio: 2/1;
  }
  .page-tai-xiu__hero-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    line-height: 1.3;
  }
  .page-tai-xiu__hero-desc {
    font-size: 0.95rem;
  }
  .page-tai-xiu__logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px 12px;
  }
  .page-tai-xiu__logo-item:nth-child(5),
  .page-tai-xiu__logo-item:nth-child(6) {
    grid-column: auto;
  }
  .page-tai-xiu__logo-image {
    aspect-ratio: 2/1;
  }
  .page-tai-xiu__logo-cta {
    font-size: 0.85rem;
    padding: 8px 14px;
  }
  .page-tai-xiu__guide-inner {
    padding: 0 0 24px;
  }
  .page-tai-xiu__guide-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }
  .page-tai-xiu__guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tai-xiu__guide-figure img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-tai-xiu img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-tai-xiu {
    overflow-x: hidden;
    max-width: 100%;
  }
  .page-tai-xiu__btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    padding: 12px 16px;
  }
  .page-tai-xiu__hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    gap: 10px;
  }
}

/* ===== Media Query 1024px ===== */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-tai-xiu__logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-tai-xiu__logo-item:nth-child(5) {
    grid-column: 2;
  }
  .page-tai-xiu__logo-item:nth-child(6) {
    grid-column: 3;
  }
  .page-tai-xiu__guide-grid {
    grid-template-columns: 1fr 1fr;
  }
}