/* Base styles for the Nổ Hũ page */
.page-no-hu {
  color: #F3F8FF; /* Main text color for dark background */
  background-color: var(--color-deep-navy); /* From shared.css, #08162B */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-no-hu__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2C14E; /* Gold color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-no-hu__section-text {
  font-size: 1.1em;
  color: #AFC4E8; /* Secondary text color */
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-no-hu__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height to maintain aspect ratio for 16:9 */
  overflow: hidden;
}

.page-no-hu__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-no-hu__hero-content-wrapper {
  padding: 40px 20px;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.page-no-hu__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.page-no-hu__hero-description {
  font-size: 1.2em;
  color: #F3F8FF;
  margin-bottom: 40px;
}

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

/* Buttons */
.page-no-hu__btn-primary,
.page-no-hu__btn-secondary,
.page-no-hu__btn-play {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-no-hu__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
}

.page-no-hu__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-no-hu__btn-secondary:hover {
  background-color: #F2C14E;
  color: #113B7A; /* Dark blue text on gold hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-no-hu__btn-play {
  background: linear-gradient(180deg, #F2C14E 0%, #D4A73F 100%);
  color: #113B7A;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
}

.page-no-hu__btn-play:hover {
  background: linear-gradient(180deg, #D4A73F 0%, #F2C14E 100%);
  transform: translateY(-1px);
}

/* Intro Section */
.page-no-hu__intro-section {
  padding: 80px 0;
  background-color: #08162B;
}

/* Game Showcase */
.page-no-hu__game-showcase {
  padding: 80px 0;
  background-color: #10233F; /* Card BG color */
}

.page-no-hu__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-no-hu__game-card {
  background-color: #08162B; /* Deep Navy for card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-no-hu__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-no-hu__game-card-title {
  font-size: 1.5em;
  color: #F3F8FF;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-no-hu__game-card-description {
  color: #AFC4E8;
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-no-hu__view-all-games {
  text-align: center;
  margin-top: 40px;
}

/* How to Play Section */
.page-no-hu__how-to-play {
  padding: 80px 0;
  background-color: #08162B;
}

.page-no-hu__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-no-hu__step-card {
  background-color: #10233F; /* Card BG color */
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  text-align: center;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-no-hu__step-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-no-hu__step-title {
  font-size: 1.3em;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-no-hu__step-description {
  color: #AFC4E8;
  font-size: 0.95em;
  flex-grow: 1;
}

.page-no-hu__cta-play {
  text-align: center;
  margin-top: 50px;
}

/* Tips & Strategies */
.page-no-hu__tips-strategies {
  padding: 80px 0;
  background-color: #10233F;
}

.page-no-hu__tips-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-no-hu__tips-item {
  background-color: #08162B;
  border: 1px solid #244D84; /* Border color */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-no-hu__tips-heading {
  font-size: 1.4em;
  color: #F3F8FF;
  margin-bottom: 10px;
}

.page-no-hu__tips-description {
  color: #AFC4E8;
  font-size: 1em;
}

.page-no-hu__cta-guide {
  text-align: center;
  margin-top: 40px;
}

/* Why Choose Us Section */
.page-no-hu__why-choose-us {
  padding: 80px 0;
  background-color: #08162B;
}

.page-no-hu__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-no-hu__feature-item {
  background-color: #10233F;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  text-align: center;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

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

.page-no-hu__feature-title {
  font-size: 1.3em;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-no-hu__feature-description {
  color: #AFC4E8;
  font-size: 0.95em;
  flex-grow: 1;
}

.page-no-hu__cta-register {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-no-hu__faq-section {
  padding: 80px 0;
  background-color: #10233F;
}

.page-no-hu__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-no-hu__faq-item {
  background-color: #08162B;
  border: 1px solid #244D84;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-no-hu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F3F8FF;
  cursor: pointer;
  background-color: #113B7A; /* Primary brand color for summary */
}

.page-no-hu__faq-question::-webkit-details-marker,
.page-no-hu__faq-question::marker {
  display: none;
}

.page-no-hu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-no-hu__faq-item[open] .page-no-hu__faq-toggle {
  transform: rotate(45deg);
}

.page-no-hu__faq-answer {
  padding: 20px 25px;
  background-color: #08162B; /* Deep Navy for answer background */
  color: #AFC4E8;
  font-size: 1em;
  border-top: 1px solid #244D84;
}

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

/* Final CTA Section */
.page-no-hu__final-cta {
  padding: 80px 0;
  background-color: #08162B;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-no-hu__container {
    padding: 0 15px;
  }

  .page-no-hu__hero-image-wrapper {
    max-height: 500px;
  }

  .page-no-hu__main-title {
    font-size: clamp(2em, 6vw, 3em);
  }

  .page-no-hu__hero-description {
    font-size: 1.1em;
  }

  .page-no-hu__section-title {
    font-size: 2em;
  }

  .page-no-hu__game-grid,
  .page-no-hu__steps-grid,
  .page-no-hu__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-no-hu {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO 主图区域 */
  .page-no-hu__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 30px;
  }

  .page-no-hu__hero-image-wrapper {
    max-height: 300px;
  }

  .page-no-hu__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-no-hu__hero-content-wrapper {
    padding: 30px 15px;
  }

  .page-no-hu__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-no-hu__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-no-hu__hero-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* 按钮与按钮容器 */
  .page-no-hu__btn-primary,
  .page-no-hu__btn-secondary,
  .page-no-hu__btn-play,
  .page-no-hu a[class*="button"],
  .page-no-hu 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-left: 15px;
    padding-right: 15px;
  }

  .page-no-hu__hero-buttons,
  .page-no-hu__view-all-games,
  .page-no-hu__cta-play,
  .page-no-hu__cta-guide,
  .page-no-hu__cta-register,
  .page-no-hu__final-cta .page-no-hu__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* For button groups */
    gap: 10px; /* For button groups */
  }

  .page-no-hu__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-no-hu__section-text {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  /* 长文金框区 (General long text/card containers) */
  .page-no-hu__intro-section,
  .page-no-hu__game-showcase,
  .page-no-hu__how-to-play,
  .page-no-hu__tips-strategies,
  .page-no-hu__why-choose-us,
  .page-no-hu__faq-section,
  .page-no-hu__final-cta {
    padding: 40px 0;
  }

  .page-no-hu__game-grid,
  .page-no-hu__steps-grid,
  .page-no-hu__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-no-hu__game-card-image,
  .page-no-hu__step-image,
  .page-no-hu__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 通用图片与容器 */
  .page-no-hu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-no-hu__container,
  .page-no-hu__card,
  .page-no-hu__section,
  .page-no-hu__box,
  .page-no-hu__game-card,
  .page-no-hu__step-card,
  .page-no-hu__feature-item,
  .page-no-hu__tips-item,
  .page-no-hu__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 游戏轮播 (Placeholder if exists, general rule for potential carousels) */
  /* Not explicitly in HTML for no-hu.html, but general responsive rule for a slider track */
  .page-no-hu__slider-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 15px; /* Prevent content from being hidden by scrollbar */
  }
  .page-no-hu__game-slide {
    flex: 0 0 80%; /* Show more than one game card */
    max-width: 80%;
    scroll-snap-align: start;
  }

  /* 合作品牌六宫格 (Placeholder if exists, general rule for potential grids) */
  /* Not explicitly in HTML for no-hu.html, but general responsive rule for a banner grid */
  .page-no-hu__banners-top-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 15px;
    max-width: 100% !important;
    padding: 0 15px;
  }
  .page-no-hu__banner-item img {
     /* Adjust size for mobile if needed */
    height: auto;
  }

  /* 博客卡片区 (Placeholder if exists, general rule for potential blog sections) */
  /* Not explicitly in HTML for no-hu.html, but general responsive rule for a blog masonry/slider */
  .page-no-hu__blog-masonry {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-no-hu__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 15px;
  }
  .page-no-hu__blog-slide {
    flex: 0 0 90%; /* Show one blog card with some spacing */
    max-width: 90%;
    scroll-snap-align: start;
  }

  .page-no-hu__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-no-hu__faq-answer {
    padding: 15px 20px;
  }
}