/* Base styles for the Nổ Hũ page */
.page-no-hu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
}

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

.page-no-hu__section {
  padding: 60px 0;
  text-align: center;
}

.page-no-hu__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  color: #F3C54D; /* Gold */
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-no-hu__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.page-no-hu__text-block--center {
  text-align: center;
}

/* Hero Section */
.page-no-hu__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #140C0C;
}

.page-no-hu__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for desktop hero */
  overflow: hidden;
  position: relative;
}

.page-no-hu__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default for desktop */
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-no-hu__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  margin-top: -150px; /* Pull content up over the image, but not overlapping text */
  color: #FFF1E8;
}

.page-no-hu__main-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-no-hu__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.7;
}

.page-no-hu__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General Button Styles */
.page-no-hu__btn-primary,
.page-no-hu__btn-secondary,
.page-no-hu__btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
  word-wrap: break-word;
}

.page-no-hu__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-no-hu__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-no-hu__btn-secondary {
  background: transparent;
  color: #F3C54D; /* Gold */
  border: 2px solid #F3C54D; /* Gold border */
}

.page-no-hu__btn-secondary:hover {
  background: #F3C54D;
  color: #140C0C; /* Background */
  transform: translateY(-2px);
}

.page-no-hu__btn-small {
  padding: 10px 20px;
  font-size: 14px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  border: none;
  border-radius: 5px;
}

.page-no-hu__btn-small:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Games Section */
.page-no-hu__games-grid,
.page-no-hu__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-no-hu__game-card,
.page-no-hu__promo-card {
  background: #2A1212; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-no-hu__game-card-image,
.page-no-hu__promo-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card images */
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-no-hu__game-card-title,
.page-no-hu__promo-card-title {
  font-size: 24px;
  font-weight: 600;
  color: #F3C54D; /* Gold */
  margin: 0 20px 10px;
  text-align: center;
}

.page-no-hu__game-card-description,
.page-no-hu__promo-card-description {
  font-size: 16px;
  color: #FFF1E8;
  margin: 0 20px 20px;
  text-align: center;
  flex-grow: 1;
}

.page-no-hu__game-card .page-no-hu__btn-small,
.page-no-hu__promo-card .page-no-hu__btn-small {
  margin-top: auto;
}

/* Advantages Section */
.page-no-hu__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-no-hu__advantage-item {
  background: #2A1212; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-no-hu__advantage-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-no-hu__advantage-title {
  font-size: 26px;
  font-weight: 600;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
}

.page-no-hu__advantage-description {
  font-size: 16px;
  color: #FFF1E8;
}

/* Guide Section */
.page-no-hu__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-no-hu__guide-list li {
  background: #2A1212; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-no-hu__guide-step-title {
  font-size: 22px;
  color: #F3C54D; /* Gold */
  margin-top: 0;
  margin-bottom: 10px;
}

.page-no-hu__guide-list p {
  font-size: 16px;
  color: #FFF1E8;
}

/* Promotions Section - Shares grid with games section */

/* FAQ Section */
.page-no-hu__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

details.page-no-hu__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-no-hu__faq-item summary.page-no-hu__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: #FFF1E8; /* Text Main */
  font-weight: 600;
}
details.page-no-hu__faq-item summary.page-no-hu__faq-question::-webkit-details-marker {
  display: none;
}
details.page-no-hu__faq-item summary.page-no-hu__faq-question:hover {
  background: rgba(255, 255, 255, 0.05); /* Lighter hover for dark background */
}
.page-no-hu__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D; /* Gold */
}
.page-no-hu__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-no-hu__faq-item .page-no-hu__faq-answer {
  padding: 0 25px 20px;
  background: rgba(0, 0, 0, 0.2); /* Slightly darker background for answer */
  border-radius: 0 0 10px 10px;
  color: #FFF1E8;
  font-size: 16px;
}

.page-no-hu__faq-answer p {
  margin-bottom: 0;
}

/* Conclusion Section */
.page-no-hu__conclusion-section {
  padding-bottom: 80px;
}

.page-no-hu__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.page-no-hu__cta-buttons--center {
  justify-content: center;
}

/* Responsive Styles */

/* @media (max-width: 1024px) for tablets and smaller desktops */
@media (max-width: 1024px) {
  .page-no-hu__container {
    padding: 20px 30px;
  }
  .page-no-hu__section-title {
    font-size: 32px;
  }
  .page-no-hu__hero-description {
    font-size: 18px;
  }
  .page-no-hu__game-card-image,
  .page-no-hu__promo-card-image {
    height: 200px;
  }
  .page-no-hu__advantage-icon {
    width: 120px;
    height: 120px;
  }
  .page-no-hu__advantage-title {
    font-size: 22px;
  }
  .page-no-hu__faq-qtext {
    font-size: 17px;
  }
  .page-no-hu__faq-toggle {
    font-size: 26px;
  }
}

/* @media (max-width: 768px) for mobile devices */
@media (max-width: 768px) {
  .page-no-hu__section {
    padding: 40px 0;
  }
  .page-no-hu__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-no-hu__text-block {
    font-size: 16px;
    padding: 0 15px;
  }

  /* HERO 主图区域 */
  .page-no-hu__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 50px;
  }
  .page-no-hu__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-no-hu__hero-content {
    margin-top: -80px; /* Adjust for smaller screens */
    padding: 0 15px;
  }
  .page-no-hu__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }
  .page-no-hu__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-no-hu__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* 按钮与按钮容器 */
  .page-no-hu__btn-primary,
  .page-no-hu__btn-secondary,
  .page-no-hu__btn-small {
    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;
    font-size: 16px;
  }
  .page-no-hu__cta-buttons,
  .page-no-hu__button-group,
  .page-no-hu__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-no-hu__cta-buttons {
    flex-direction: column;
  }

  /* 产品展示图区域 (Games Grid) */
  .page-no-hu__games-grid,
  .page-no-hu__promotions-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-no-hu__game-card,
  .page-no-hu__promo-card {
    width: 100%;
    margin: 0 auto;
  }
  .page-no-hu__game-card-image,
  .page-no-hu__promo-card-image {
    height: 180px; /* Adjust height for mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-no-hu__game-card-title,
  .page-no-hu__promo-card-title {
    font-size: 20px;
  }

  /* 装饰主标题 + 长文 SEO 区 (General text blocks and sections) */
  .page-no-hu__section-title-wrap,
  .page-no-hu__article-body,
  .page-no-hu__article-figure {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center; /* Center text for better mobile readability */
  }
  .page-no-hu__article-body p,
  .page-no-hu__article-body li {
    font-size: 16px; /* Ensure readability */
  }

  /* 通用图片与容器 */
  .page-no-hu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-no-hu__section,
  .page-no-hu__card,
  .page-no-hu__container,
  .page-no-hu__advantages-grid,
  .page-no-hu__advantage-item,
  .page-no-hu__guide-list,
  .page-no-hu__guide-list li,
  .page-no-hu__faq-list,
  .page-no-hu__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-no-hu__advantages-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-no-hu__advantage-item {
    padding: 20px;
  }
  .page-no-hu__advantage-icon {
    width: 100px;
    height: 100px;
  }

  /* FAQ Section */
  details.page-no-hu__faq-item summary.page-no-hu__faq-question {
    padding: 15px 20px;
  }
  .page-no-hu__faq-qtext {
    font-size: 16px;
  }
  .page-no-hu__faq-toggle {
    font-size: 24px;
  }
  details.page-no-hu__faq-item .page-no-hu__faq-answer {
    padding: 0 20px 15px;
  }
}