/* Base styles for the Nổ Hũ page */
.page-no-hu {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light backgrounds */
    line-height: 1.6;
}

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

.page-no-hu__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-no-hu__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-no-hu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
}

.page-no-hu__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px;
    z-index: 1;
}

.page-no-hu__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    margin: -100px auto 0 auto; /* Pull content up slightly over image, but not covering */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.page-no-hu__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Special color for main title */
}

.page-no-hu__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-no-hu__btn-primary,
.page-no-hu__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-no-hu__btn-secondary:hover {
    background-color: #C30808;
    color: #FFFFFF;
}

.page-no-hu__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

.page-no-hu__introduction-section,
.page-no-hu__features-section,
.page-no-hu__game-types-section,
.page-no-hu__guide-section,
.page-no-hu__promotions-section,
.page-no-hu__benefits-section,
.page-no-hu__tips-section,
.page-no-hu__faq-section,
.page-no-hu__cta-section {
    padding: 60px 0;
}

.page-no-hu__paragraph {
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: justify;
}

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

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

.page-no-hu__feature-card,
.page-no-hu__promotion-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-no-hu__feature-card .page-no-hu__card-title,
.page-no-hu__promotion-card .page-no-hu__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFFF00;
}

.page-no-hu__feature-card .page-no-hu__card-text,
.page-no-hu__promotion-card .page-no-hu__card-text {
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-no-hu__promotion-card .page-no-hu__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-no-hu__promotion-card .page-no-hu__btn-primary,
.page-no-hu__promotion-card .page-no-hu__btn-secondary {
    margin-top: auto;
}

.page-no-hu__game-type-list,
.page-no-hu__guide-list,
.page-no-hu__benefits-list,
.page-no-hu__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-no-hu__list-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-no-hu__list-item .page-no-hu__list-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #017439;
}

.page-no-hu__list-item .page-no-hu__list-description {
    font-size: 1rem;
    color: #555555;
}

.page-no-hu__list-item .page-no-hu__btn-secondary {
    margin-top: 15px;
}

.page-no-hu__note {
    text-align: center;
    font-style: italic;
    margin-top: 30px;
    font-size: 0.95rem;
    color: #555555;
}

.page-no-hu__note a {
    color: #017439;
    text-decoration: underline;
}

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

.page-no-hu__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-no-hu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: #FFFF00;
    list-style: none;
}

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

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

.page-no-hu__faq-qtext {
    flex-grow: 1;
}

.page-no-hu__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    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: 0 20px 20px 20px;
    font-size: 1rem;
    color: #f0f0f0;
}

.page-no-hu__faq-answer p {
    margin-bottom: 0;
    text-align: justify;
}

.page-no-hu__cta-container {
    text-align: center;
}

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

.page-no-hu__btn-register {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register font color */
    border-color: #C30808;
}

.page-no-hu__btn-login {
    background-color: transparent;
    color: #C30808; /* Login color */
    border-color: #C30808;
}

.page-no-hu__game-carousel-wrapper {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  margin-top: 40px;
}

.page-no-hu__game-slider {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.page-no-hu__slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
  padding-bottom: 10px;
}

.page-no-hu__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  background-color: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 150px; /* Fixed height for iframes */
}

.page-no-hu__game-slide iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.page-no-hu__slider-prev,
.page-no-hu__slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  z-index: 10;
}

.page-no-hu__slider-prev {
  left: 10px;
}

.page-no-hu__slider-next {
  right: 10px;
}

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

    .page-no-hu__hero-content {
        padding: 30px 20px;
        margin-top: -80px;
    }

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

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

    .page-no-hu__feature-grid, .page-no-hu__promotion-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-no-hu__list-item .page-no-hu__list-title {
        font-size: 1.3rem;
    }

    .page-no-hu__faq-question {
        font-size: 1.1rem;
        padding: 18px;
    }
}

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

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

    /* HERO 主图区域 */
    .page-no-hu__hero-section {
        padding-top: 10px !important; /* Top padding ~10px */
        min-height: 400px;
    }

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

    .page-no-hu__hero-content {
        padding: 20px 15px !important;
        margin-top: -60px; /* Adjust margin for mobile */
    }

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

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

    .page-no-hu__hero-buttons,
    .page-no-hu__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    /* 按钮与按钮容器 */
    .page-no-hu__btn-primary,
    .page-no-hu__btn-secondary,
    .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__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

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

    .page-no-hu__introduction-section,
    .page-no-hu__features-section,
    .page-no-hu__game-types-section,
    .page-no-hu__guide-section,
    .page-no-hu__promotions-section,
    .page-no-hu__benefits-section,
    .page-no-hu__tips-section,
    .page-no-hu__faq-section,
    .page-no-hu__cta-section {
        padding: 40px 0;
    }

    .page-no-hu__feature-grid,
    .page-no-hu__promotion-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .page-no-hu__feature-card,
    .page-no-hu__promotion-card {
        padding: 20px;
    }

    .page-no-hu__card-image {
        height: auto !important;
    }

    /* 游戏轮播 */
    .page-no-hu__game-slider {
      padding: 10px 0;
    }

    .page-no-hu__slider-track {
      display: flex !important;
      gap: 15px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
      padding-bottom: 10px;
    }

    .page-no-hu__game-slide {
      flex: 0 0 160px !important;
      max-width: 160px !important;
      scroll-snap-align: start;
      height: 120px; /* Adjusted height for mobile iframes */
    }

    .page-no-hu__slider-prev,
    .page-no-hu__slider-next {
      display: none; /* Hide navigation arrows on mobile for swipe */
    }

    /* 合作品牌六宫格 (Not directly in content, but for completeness as per rules) */
    .page-no-hu__banners-top-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px;
        padding: 0 15px;
    }

    .page-no-hu__banner-item img {
        
        
    }

    /* 博客卡片区 (If present, though not explicitly in content outline for Nổ Hũ page) */
    .page-no-hu__blog-masonry {
        grid-template-columns: 1fr !important;
        padding: 0 15px;
    }
    .page-no-hu__blog-slide {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .page-no-hu__list-item {
        padding: 15px;
    }

    .page-no-hu__list-item .page-no-hu__list-title {
        font-size: 1.2rem;
    }

    .page-no-hu__faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    .page-no-hu__faq-answer {
        padding: 0 15px 15px 15px;
    }
}