/* Base styles for the Tài Xỉu page */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background: #F4F7FB; /* Background */
}

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

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

.page-tai-xiu__section:nth-of-type(even) {
  background: #EBF2FF; /* Light background for alternating sections */
}

.page-tai-xiu__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tai-xiu__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #2F6BFF; /* Main Color */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-tai-xiu__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-tai-xiu p {
  margin-bottom: 15px;
  color: #1F2D3D; /* Text Main */
}

.page-tai-xiu a {
  color: #2F6BFF; /* Main Color */
  text-decoration: none;
}

.page-tai-xiu a:hover {
  text-decoration: underline;
}

/* Images */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 20px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Buttons */
.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF; /* Main Color */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-tai-xiu__btn-secondary:hover {
  background: #F4F7FB; /* Background */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* Hero Section */
.page-tai-xiu__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Fixed header spacing */
}

.page-tai-xiu__hero-image {
  width: 100%;
  position: relative;
  margin-bottom: 30px;
}

.page-tai-xiu__hero-image img {
  width: 100%;
  height: 675px; /* Fixed height for desktop hero */
  object-fit: cover; /* Cover ensures image fills, may crop sides */
  border-radius: 0;
  box-shadow: none;
}

.page-tai-xiu__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-tai-xiu__hero-description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: #1F2D3D;
}

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

/* Feature Grid */
.page-tai-xiu__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-tai-xiu__feature-card {
  background: #FFFFFF; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tai-xiu__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.page-tai-xiu__feature-card .page-tai-xiu__card-title {
  color: #2F6BFF; /* Main Color */
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Strategy Points */
.page-tai-xiu__strategy-points {
  margin-top: 30px;
  background: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.page-tai-xiu__strategy-points .page-tai-xiu__sub-title {
  color: #2F6BFF;
  font-size: 1.6rem;
}

/* How to Play Steps */
.page-tai-xiu__step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-tai-xiu__step-item {
  background: #FFFFFF;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-tai-xiu__step-item .page-tai-xiu__sub-title {
  color: #000000; /* Custom Color_1776249996415 */
  margin-top: 0;
  margin-bottom: 5px;
}

.page-tai-xiu__step-item .page-tai-xiu__btn-primary {
  align-self: flex-start;
  margin-top: 15px;
}

/* Game Trial Frame */
.page-tai-xiu__game-frame-wrapper {
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.page-tai-xiu__game-trial-frame {
  border: none;
  width: 100%;
  height: 600px;
  display: block;
}

.page-tai-xiu__game-trial-description {
  text-align: center;
  font-style: italic;
  margin-top: 20px;
  color: #1F2D3D;
}

/* Promotions */
.page-tai-xiu__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-tai-xiu__promo-card {
  background: #FFFFFF; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-align: center;
}

.page-tai-xiu__promo-card .page-tai-xiu__card-title {
  color: #2F6BFF; /* Main Color */
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.page-tai-xiu__promotion-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1rem;
}

/* FAQ Section */
details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* 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 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #F4F7FB; /* Background */
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main Color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 20px 20px;
  background: #F4F7FB; /* Background */
  border-radius: 0 0 5px 5px;
  color: #1F2D3D; /* Text Main */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-image img {
    height: 550px; /* Adjust height for tablets */
  }
  .page-tai-xiu__hero-description {
    font-size: 1.15rem;
  }
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    padding: 12px 24px;
    font-size: 1rem;
  }
  .page-tai-xiu__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-tai-xiu__feature-grid, .page-tai-xiu__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* ~10px top padding, not var(--header-offset) */
  }
  .page-tai-xiu__hero-image img {
    object-fit: contain !important; /* Contain ensures image is fully visible, no cropping */
    aspect-ratio: unset !important;
    height: auto !important;
    min-height: 200px !important;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
    padding: 0 15px;
  }
  .page-tai-xiu__hero-description {
    font-size: 1rem !important;
    padding: 0 15px;
  }

  /* 按钮与按钮容器 */
  .page-tai-xiu__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .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: 12px 20px !important;
    font-size: 1rem !important;
    margin: 0 auto; /* Center single button */
  }
}