/* Base styles for the Nổ Hũ page */
.page-no-hu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default to light text for dark body background */
  background: var(--background-color, #08160F); /* Assuming dark background from shared */
}

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

.page-no-hu__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-color, #F2C14E);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-no-hu__main-title {
  font-weight: 800;
  color: var(--text-main-color, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-no-hu__description,
.page-no-hu__text-block {
  font-size: 18px;
  color: var(--text-secondary-color, #A7D9B8);
  text-align: center;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-no-hu__btn-primary,
.page-no-hu__btn-secondary,
.page-no-hu__btn-small {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
}

.page-no-hu__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-no-hu__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

.page-no-hu__btn-secondary {
  background: transparent;
  color: var(--glow-color, #57E38D);
  border: 2px solid var(--glow-color, #57E38D);
  box-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-no-hu__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
  transform: translateY(-2px);
}

.page-no-hu__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-no-hu__btn-small:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-1px);
}

.page-no-hu__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

/* Hero Section */
.page-no-hu__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Adjust as needed */
  padding-top: 10px; /* Small top padding, not --header-offset */
  background-color: var(--background-color, #08160F);
}

.page-no-hu__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-no-hu__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover; /* Cover the area, will be contain on mobile */
  display: block;
  pointer-events: none; /* Prevent interaction with the image directly */
}

.page-no-hu__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: -100px auto 0; /* Pull content up slightly over image */
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 1) 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Intro Section */
.page-no-hu__intro-section {
  background: var(--light-bg-color, #f9f9f9); /* Using a light background for this section */
  color: var(--dark-text-color, #333333); /* Dark text on light background */
  padding: 60px 0;
}

.page-no-hu__intro-section .page-no-hu__section-title {
  color: var(--deep-green-color, #0A4B2C); /* Use a darker green for titles on light bg */
}

.page-no-hu__intro-section .page-no-hu__text-block {
  color: var(--dark-text-color, #333333);
}

/* Features Section */
.page-no-hu__features-section {
  background: var(--card-bg-color, #11271B);
  padding: 60px 0;
  color: var(--text-main-color, #F2FFF6);
}

.page-no-hu__features-section .page-no-hu__section-title {
  color: var(--gold-color, #F2C14E);
}

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

.page-no-hu__feature-card {
  background: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-no-hu__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.page-no-hu__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-no-hu__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
}

.page-no-hu__feature-description {
  font-size: 16px;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Game List Section */
.page-no-hu__game-list-section {
  background: var(--light-bg-color, #f9f9f9);
  padding: 60px 0;
  color: var(--dark-text-color, #333333);
}

.page-no-hu__game-list-section .page-no-hu__section-title {
  color: var(--deep-green-color, #0A4B2C);
}

.page-no-hu__game-list-section .page-no-hu__text-block {
  color: var(--dark-text-color, #333333);
}

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

.page-no-hu__game-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-no-hu__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-no-hu__game-thumbnail {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-no-hu__game-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--deep-green-color, #0A4B2C);
  margin-bottom: 10px;
}

.page-no-hu__game-description {
  font-size: 15px;
  color: #555555;
  margin-bottom: 20px;
}

/* Guide Section */
.page-no-hu__guide-section {
  background: var(--card-bg-color, #11271B);
  padding: 60px 0;
  color: var(--text-main-color, #F2FFF6);
}

.page-no-hu__guide-section .page-no-hu__section-title {
  color: var(--gold-color, #F2C14E);
}

.page-no-hu__guide-section .page-no-hu__text-block {
  color: var(--text-secondary-color, #A7D9B8);
}

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

.page-no-hu__guide-item {
  background: rgba(17, 168, 78, 0.1);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
}

.page-no-hu__guide-subtitle {
  font-size: 22px;
  font-weight: 700;
  color: var(--glow-color, #57E38D);
  margin-bottom: 10px;
}

.page-no-hu__guide-item p {
  font-size: 16px;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Tips Section */
.page-no-hu__tips-section {
  background: var(--light-bg-color, #f9f9f9);
  padding: 60px 0;
  color: var(--dark-text-color, #333333);
}

.page-no-hu__tips-section .page-no-hu__section-title {
  color: var(--deep-green-color, #0A4B2C);
}

.page-no-hu__tips-section .page-no-hu__text-block {
  color: var(--dark-text-color, #333333);
}

.page-no-hu__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-no-hu__tips-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-no-hu__tips-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-no-hu__tips-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-no-hu__tips-subtitle {
  font-size: 22px;
  font-weight: 700;
  color: var(--deep-green-color, #0A4B2C);
  margin-bottom: 10px;
}

.page-no-hu__tips-item p {
  font-size: 16px;
  color: #555555;
}

/* Promo Section */
.page-no-hu__promo-section {
  background: var(--card-bg-color, #11271B);
  padding: 60px 0;
  color: var(--text-main-color, #F2FFF6);
}

.page-no-hu__promo-section .page-no-hu__section-title {
  color: var(--gold-color, #F2C14E);
}

.page-no-hu__promo-section .page-no-hu__text-block {
  color: var(--text-secondary-color, #A7D9B8);
}

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

.page-no-hu__promo-card {
  background: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-no-hu__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.page-no-hu__promo-image {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-no-hu__promo-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
}

.page-no-hu__promo-description {
  font-size: 16px;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Why Choose Section */
.page-no-hu__why-choose-section {
  background: var(--light-bg-color, #f9f9f9);
  padding: 60px 0;
  color: var(--dark-text-color, #333333);
}

.page-no-hu__why-choose-section .page-no-hu__section-title {
  color: var(--deep-green-color, #0A4B2C);
}

.page-no-hu__why-choose-section .page-no-hu__text-block {
  color: var(--dark-text-color, #333333);
}

/* FAQ Section */
.page-no-hu__faq-section {
  background: var(--card-bg-color, #11271B);
  padding: 60px 0;
  color: var(--text-main-color, #F2FFF6);
}

.page-no-hu__faq-section .page-no-hu__section-title {
  color: var(--gold-color, #F2C14E);
}

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

details.page-no-hu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #2E7A4E);
  overflow: hidden;
  background: rgba(17, 168, 78, 0.1);
}

details.page-no-hu__faq-item summary.page-no-hu__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-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(17, 168, 78, 0.2);
}

.page-no-hu__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color, #F2FFF6);
}

.page-no-hu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow-color, #57E38D);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-no-hu__faq-item .page-no-hu__faq-answer {
  padding: 0 20px 20px;
  background: rgba(8, 22, 15, 0.8);
  border-radius: 0 0 5px 5px;
}

details.page-no-hu__faq-item .page-no-hu__faq-answer p {
  font-size: 16px;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Final CTA Section */
.page-no-hu__cta-final-section {
  background: var(--light-bg-color, #f9f9f9);
  padding: 60px 0;
  text-align: center;
  color: var(--dark-text-color, #333333);
}

.page-no-hu__cta-final-section .page-no-hu__section-title {
  color: var(--deep-green-color, #0A4B2C);
}

.page-no-hu__cta-final-section .page-no-hu__text-block {
  color: var(--dark-text-color, #333333);
}

/* Responsive Styles */

/* Mobile specific styles for images and containers */
@media (max-width: 768px) {
  .page-no-hu {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-no-hu__container {
    padding: 20px 15px; /* Add padding for mobile containers */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-no-hu__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-no-hu__main-title {
    font-size: clamp(28px, 6vw, 36px); /* Clamp for H1 */
  }

  .page-no-hu__description,
  .page-no-hu__text-block {
    font-size: 16px;
    margin-bottom: 20px;
  }

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

  .page-no-hu__hero-image-wrapper {
    max-height: 50vh;
  }

  .page-no-hu__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow image to adapt naturally */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-no-hu__hero-content {
    padding: 20px 15px;
    margin-top: -50px; /* Adjust pull up */
    border-radius: 10px;
  }

  /* Buttons and Button Containers */
  .page-no-hu__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    margin-top: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-no-hu__btn-primary,
  .page-no-hu__btn-secondary,
  .page-no-hu__btn-small,
  .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 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-no-hu__features-grid,
  .page-no-hu__game-cards-grid,
  .page-no-hu__tips-list,
  .page-no-hu__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-no-hu__feature-card,
  .page-no-hu__game-card,
  .page-no-hu__tips-item,
  .page-no-hu__promo-card {
    padding: 20px;
  }

  .page-no-hu__feature-title,
  .page-no-hu__game-title,
  .page-no-hu__guide-subtitle,
  .page-no-hu__tips-subtitle,
  .page-no-hu__promo-title {
    font-size: 20px;
  }

  .page-no-hu__guide-item {
    padding: 20px;
  }

  details.page-no-hu__faq-item summary.page-no-hu__faq-question {
    padding: 15px;
  }

  .page-no-hu__faq-qtext {
    font-size: 16px;
  }

  .page-no-hu__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  details.page-no-hu__faq-item .page-no-hu__faq-answer {
    padding: 0 15px 15px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-no-hu__text-block {
    text-align: left;
  }
}

@media (max-width: 849px) {
  .page-no-hu__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }
}

/* Custom property definitions for colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
  --light-bg-color: #f9f9f9; /* Defined for sections that need light background */
  --dark-text-color: #333333; /* Defined for text on light backgrounds */
}

/* Ensure color contrast for dark sections */
.page-no-hu__dark-section {
  color: var(--text-main-color, #F2FFF6);
}

.page-no-hu__dark-section .page-no-hu__text-block {
  color: var(--text-secondary-color, #A7D9B8);
}

.page-no-hu__dark-section .page-no-hu__feature-card,
.page-no-hu__dark-section .page-no-hu__promo-card {
  background: var(--card-bg-color, #11271B);
  color: var(--text-main-color, #F2FFF6);
}

.page-no-hu__dark-section .page-no-hu__feature-title,
.page-no-hu__dark-section .page-no-hu__promo-title {
  color: var(--text-main-color, #F2FFF6);
}

/* Ensure color contrast for light sections */
.page-no-hu__light-bg {
  background: var(--light-bg-color, #f9f9f9);
  color: var(--dark-text-color, #333333);
}

.page-no-hu__light-bg .page-no-hu__section-title {
  color: var(--deep-green-color, #0A4B2C);
}

.page-no-hu__light-bg .page-no-hu__text-block,
.page-no-hu__light-bg .page-no-hu__game-description,
.page-no-hu__light-bg .page-no-hu__tips-item p {
  color: var(--dark-text-color, #333333);
}

.page-no-hu__light-bg .page-no-hu__game-card,
.page-no-hu__light-bg .page-no-hu__tips-item {
  background: #ffffff;
  color: var(--dark-text-color, #333333);
  border: 1px solid #e0e0e0;
}