.page-no-hu {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default for content blocks with white background */
  background-color: var(--accent-color, #f5f5f5); /* Use accent if available, else light grey */
}

/* Hero Section */
.page-no-hu__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #017439; /* Primary brand color for hero background */
  color: #ffffff; /* White text for contrast on dark background */
  text-align: center;
}

.page-no-hu__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px; /* Space between image and content */
}

.page-no-hu__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-width: 1200px; /* Constrain image width for desktop */
  margin: 0 auto;
}

.page-no-hu__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-no-hu__hero-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  color: #ffffff; /* White text on dark hero background */
}

.page-no-hu__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-no-hu__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-no-hu__btn-primary,
.page-no-hu__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
}

.page-no-hu__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-no-hu__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-no-hu__btn-secondary {
  background-color: transparent;
  color: #ffffff; /* White text on dark hero background */
  border: 2px solid #ffffff;
}

.page-no-hu__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* General Content Sections */
.page-no-hu__section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
  background-color: #ffffff; /* White background for content sections */
  color: #333333; /* Dark text on white background */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-no-hu__section-title {
  font-size: 2em;
  color: #017439; /* Primary brand color for section titles */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

.page-no-hu__section-content {
  padding-bottom: 20px;
}

.page-no-hu__section-content h3 {
  font-size: 1.5em;
  color: #017439;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-no-hu__section-content p {
  margin-bottom: 15px;
}

.page-no-hu__section-content ul,
.page-no-hu__section-content ol {
  margin-bottom: 15px;
  padding-left: 25px;
}

.page-no-hu__section-content li {
  margin-bottom: 8px;
}

.page-no-hu__section-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Card Grid for Popular Games (simulating service grid for responsiveness) */
.page-no-hu__game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns for desktop */
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-no-hu__game-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  color: #333333;
  text-decoration: none; /* For card links */
}

.page-no-hu__game-card:hover {
  transform: translateY(-5px);
}

.page-no-hu__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-no-hu__game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-no-hu__game-card-content {
  padding: 15px;
}

.page-no-hu__game-card-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

.page-no-hu__game-card-description {
  font-size: 0.95em;
  color: #555555;
}

/* Table styles for long text area (e.g., FAQ or comparison) */
.page-no-hu__table-container {
  overflow-x: auto; /* Enable horizontal scroll for tables on small screens */
  margin-top: 20px;
  margin-bottom: 20px;
}

.page-no-hu__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is wide enough for content on desktop */
}

.page-no-hu__table th,
.page-no-hu__table td {
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  text-align: left;
  vertical-align: top;
}

.page-no-hu__table th {
  background-color: #017439;
  color: #ffffff;
  font-weight: bold;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
  .page-no-hu {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-no-hu__hero-title {
    font-size: 2em; /* Adjust H1 size for mobile */
    margin-bottom: 10px;
  }

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

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

  .page-no-hu__btn-primary,
  .page-no-hu__btn-secondary {
    width: 100% !important; /* Force full width */
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-no-hu__section {
    margin: 20px auto;
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-no-hu__section-content h3 {
    font-size: 1.3em;
  }

  /* service 四宫格 (simulated by game-grid) */
  .page-no-hu__game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* 2 columns for mobile */
    gap: 15px;
  }

  .page-no-hu__game-card-image {
    height: 150px; /* Adjust card image height */
  }

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

  .page-no-hu__table-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: auto !important;
  }

  /* 长文区 (table within long text area) */
  .page-no-hu__table {
    min-width: auto; /* Allow table to shrink, overflow-x handles scrolling */
    width: 100%; /* Ensure it tries to take full width */
  }

  .page-no-hu__table th,
  .page-no-hu__table td {
    font-size: 0.9em;
    padding: 8px 10px;
  }
}