/* style/nh.css */
.page-nh {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

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

/* Color Contrast System */
.page-nh__dark-bg {
  background: #E53935;
  color: #ffffff;
}

.page-nh__light-bg {
  background: #F5F7FA;
  color: #333333;
}

.page-nh__card {
  background: #FFFFFF;
  color: #333333;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-nh__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.page-nh__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from section background */
}

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

/* Hero Section */
.page-nh__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Aligns with common rule */
  padding-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.page-nh__hero-image-container {
  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: 30px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over image for visual flow */
  background: rgba(255, 255, 255, 0.95); /* Light background for text readability */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: #333333;
}

.page-nh__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #E53935;
  max-width: 50ch; /* Restrict line length for readability */
  margin-left: auto;
  margin-right: auto;
}

.page-nh__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 160ch; /* Restrict line length for readability */
  margin-left: auto;
  margin-right: auto;
}

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

.page-nh__cta-buttons--center {
  margin-top: 40px;
}

.page-nh__btn-primary,
.page-nh__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-nh__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-nh__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(229, 57, 53, 0.4);
}

.page-nh__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-nh__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(229, 57, 53, 0.2);
}

/* Introduction Section */
.page-nh__introduction-section {
  padding: 60px 0;
  text-align: center;
}

.page-nh__content-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Why Choose Us Section */
.page-nh__why-choose-us-section {
  padding: 60px 0;
}

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

.page-nh__feature-card {
  text-align: center;
}

.page-nh__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #E53935;
}

.page-nh__card-description {
  font-size: 1em;
  color: #666666;
}

/* Gameshow Section */
.page-nh__gameshow-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-nh__gameshow-card {
  overflow: hidden;
  text-align: left;
}

.page-nh__gameshow-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.page-nh__gameshow-card:hover .page-nh__gameshow-image {
  transform: scale(1.05);
}

/* Strategies Section */
.page-nh__strategies-section {
  padding: 60px 0;
}

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

.page-nh__strategy-item {
  background: #FFFFFF;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 5px solid #E53935;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-nh__strategy-item strong {
  color: #E53935;
}

/* Promotions Section */
.page-nh__promotions-section {
  padding: 60px 0;
  text-align: center;
}

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

/* FAQ Section */
.page-nh__faq-section {
  padding: 60px 0;
  text-align: center;
}

.page-nh__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-nh__faq-item {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-nh__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background: #f9f9f9;
  border-bottom: 1px solid #E0E0E0;
  list-style: none; /* For <summary> tag */
}

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

.page-nh__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #E53935;
  transition: transform 0.3s ease;
}

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

.page-nh__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  color: #666666;
  line-height: 1.6;
}

.page-nh__faq-answer p {
  margin-top: 15px;
}

.page-nh__faq-answer a {
  color: #E53935;
  text-decoration: underline;
}

/* Final CTA Section */
.page-nh__final-cta-section {
  padding: 60px 0;
  text-align: center;
}

/* General Image Styles for Responsiveness */
.page-nh img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-nh__hero-content {
    margin-top: -80px;
    padding: 25px 15px;
  }

  .page-nh__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-nh__description {
    font-size: 1.1em;
  }

  .page-nh__cta-buttons {
    gap: 15px;
  }

  .page-nh__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

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

  .page-nh__gameshow-image {
    height: 200px;
  }

  .page-nh__card-title {
    font-size: 1.3em;
  }

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

  .page-nh__faq-answer {
    padding: 0 20px 18px;
    font-size: 1em;
  }
}

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

  /* HERO 主图区域 */
  .page-nh__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

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

  .page-nh__hero-content {
    margin-top: -60px;
    padding: 20px 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  }

  .page-nh__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em) !important; /* Mobile H1 size */
    margin-bottom: 15px;
  }

  .page-nh__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* 按钮与按钮容器 */
  .page-nh__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-nh__btn-primary,
  .page-nh__btn-secondary,
  .page-nh a[class*="button"],
  .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: 12px 20px;
    font-size: 1em;
  }

  .page-nh__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-nh__text-block {
    font-size: 1em;
  }

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

  .page-nh__gameshow-card {
    margin-bottom: 0;
  }

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

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

  .page-nh__introduction-section,
  .page-nh__why-choose-us-section,
  .page-nh__gameshow-section,
  .page-nh__strategies-section,
  .page-nh__promotions-section,
  .page-nh__faq-section,
  .page-nh__final-cta-section {
    padding: 40px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 其他内容模块 */
  .page-nh__features-grid,
  .page-nh__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-nh__feature-card,
  .page-nh__promo-card {
    padding: 20px;
  }

  .page-nh__card-title {
    font-size: 1.2em;
  }

  .page-nh__card-description {
    font-size: 0.95em;
  }

  .page-nh__strategy-item {
    padding: 18px;
  }

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

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

  .page-nh__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }
}