.page-nh {
  font-family: Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--deep-navy);
  line-height: 1.6;
}

.page-nh__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-nh__hero-section {
  padding-top: 10px; /* Aligns with shared.css body padding-top */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
}

.page-nh__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

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

.page-nh__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 800px;
  background: linear-gradient(180deg, rgba(17, 59, 122, 0.8) 0%, rgba(8, 22, 43, 0.9) 100%);
  border-radius: 10px;
  margin-top: -100px; /* Pull content up over image a bit for visual flow, but not covering image content */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
}

.page-nh__hero-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: var(--gold);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
}

.page-nh__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-nh__hero-cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.page-nh__section-title {
  font-size: 2.2em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-nh__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.page-nh__text-block {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-nh__highlight {
  color: var(--gold);
  font-weight: bold;
}

.page-nh__introduction-section,
.page-nh__why-choose-section,
.page-nh__how-to-play-section,
.page-nh__promotions-section,
.page-nh__security-section,
.page-nh__faq-section,
.page-nh__final-cta-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider);
}

.page-nh__games-section {
  padding: 60px 0;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--divider);
}

.page-nh__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-nh__game-card {
  background-color: var(--deep-navy);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-nh__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-nh__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-nh__game-title {
  font-size: 1.5em;
  color: var(--gold);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-nh__game-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  padding: 0 15px;
}

.page-nh__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-nh__feature-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-nh__feature-item:hover {
  transform: translateY(-5px);
}

.page-nh__feature-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 20px auto;
  display: block;
}

.page-nh__feature-title {
  font-size: 1.6em;
  color: var(--gold);
  margin-bottom: 15px;
}

.page-nh__feature-description {
  font-size: 1em;
  color: var(--text-secondary);
}

.page-nh__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-nh__step-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-nh__step-title {
  font-size: 1.8em;
  color: var(--gold);
  margin-bottom: 10px;
}

.page-nh__step-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-nh__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-nh__promo-list,
.page-nh__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-nh__promo-item,
.page-nh__security-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 1.1em;
  line-height: 1.5;
}

.page-nh__promo-item strong,
.page-nh__security-item strong {
  color: var(--gold);
}

.page-nh__text-link {
  color: var(--auxiliary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-nh__text-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

.page-nh__faq-list {
  margin-top: 40px;
}

.page-nh__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-nh__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  color: var(--text-main);
  font-weight: bold;
  cursor: pointer;
  background-color: var(--main-color);
  border-bottom: 1px solid var(--border);
  list-style: none;
  user-select: none;
}

.page-nh__faq-question::-webkit-details-marker {
  display: none;
}

.page-nh__faq-question .page-nh__faq-toggle {
  font-size: 1.5em;
  color: var(--gold);
  margin-left: 10px;
  transition: transform 0.3s ease;
}

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

.page-nh__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
  background-color: var(--card-bg);
}

.page-nh__final-cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--deep-navy) 100%);
  padding: 80px 0;
}

.page-nh__final-cta-content .page-nh__section-title {
  color: var(--gold);
}

.page-nh__final-cta-content .page-nh__text-block {
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

/* Buttons */
.page-nh__btn-primary,
.page-nh__btn-secondary,
.page-nh__btn-tertiary,
.page-nh a[class*="btn"] {
  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-sizing: border-box;
  text-align: center;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-nh__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-nh__btn-secondary {
  background: var(--card-bg);
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-nh__btn-secondary:hover {
  background: var(--gold);
  color: var(--deep-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-nh__btn-tertiary {
  background-color: var(--auxiliary-color);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
}

.page-nh__btn-tertiary:hover {
  background-color: #1D5FD1;
}

/* General image styling */
.page-nh img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-nh__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }

  .page-nh__hero-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }

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

  .page-nh__games-grid,
  .page-nh__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-nh__game-image {
    height: 180px;
  }

  .page-nh__introduction-section,
  .page-nh__games-section,
  .page-nh__why-choose-section,
  .page-nh__how-to-play-section,
  .page-nh__promotions-section,
  .page-nh__security-section,
  .page-nh__faq-section,
  .page-nh__final-cta-section {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  /* 1. HERO 主图区域 */
  .page-nh__hero-section {
    padding-top: 10px !important; /* Fixed header spacing */
    min-height: 400px;
  }

  .page-nh__hero-image-wrapper {
    max-height: 400px;
  }

  .page-nh__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .page-nh__hero-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
  }

  .page-nh__hero-description {
    font-size: 1em;
  }

  .page-nh__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* 2. 产品展示图区域 */
  .page-nh__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .page-nh__game-card {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .page-nh__game-image {
    height: 160px;
  }

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

  .page-nh__container,
  .page-nh__introduction-section,
  .page-nh__games-section,
  .page-nh__why-choose-section,
  .page-nh__how-to-play-section,
  .page-nh__promotions-section,
  .page-nh__security-section,
  .page-nh__faq-section,
  .page-nh__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-nh__feature-image {
    max-width: 100%;
    margin-bottom: 15px;
  }

  /* 4. 按钮与按钮容器 */
  .page-nh__btn-primary,
  .page-nh__btn-secondary,
  .page-nh__btn-tertiary,
  .page-nh 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-nh__hero-cta-buttons,
  .page-nh__final-cta-buttons,
  .page-nh__cta-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  /* 5. 其他内容模块 */
  .page-nh__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-nh__text-block,
  .page-nh__game-description,
  .page-nh__feature-description,
  .page-nh__step-description,
  .page-nh__promo-item,
  .page-nh__security-item,
  .page-nh__faq-answer {
    font-size: 0.95em;
  }

  .page-nh__game-title,
  .page-nh__feature-title,
  .page-nh__step-title {
    font-size: 1.4em;
  }

  .page-nh__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-nh__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-nh__faq-answer {
    padding: 15px;
  }

  .page-nh__final-cta-section {
    padding: 50px 0;
  }

  .page-nh__final-cta-content .page-nh__text-block {
    margin-bottom: 30px;
  }
}

/* CSS for color contrast safety (based on deep-navy body background) */
.page-nh {
  color: var(--text-main); /* #F3F8FF on dark body background */
}

.page-nh__card,
.page-nh__feature-item,
.page-nh__step-item,
.page-nh__promo-item,
.page-nh__security-item,
.page-nh__faq-item .page-nh__faq-answer {
  background-color: var(--card-bg); /* #10233F (dark) */
  color: var(--text-secondary); /* #AFC4E8 (light text on dark background) */
}

.page-nh__game-card {
  background-color: var(--deep-navy); /* #08162B (dark) */
  color: var(--text-secondary); /* #AFC4E8 (light text on dark background) */
}

.page-nh__faq-item .page-nh__faq-question {
  background-color: var(--main-color); /* #113B7A (dark) */
  color: var(--text-main); /* #F3F8FF (light text on dark background) */
}

.page-nh__btn-primary {
  color: #ffffff; /* White text on blue gradient */
}

.page-nh__btn-secondary {
  background: var(--card-bg);
  color: var(--gold); /* Gold text on dark background */
}

.page-nh__btn-tertiary {
  background-color: var(--auxiliary-color);
  color: #ffffff; /* White text on blue background */
}