/* style/nh.css */

:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --background-light: #F4F7FB;
    --text-main: #1F2D3D;
    --text-dark: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

.page-nh {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--background-light); /* Assuming body background is light */
    line-height: 1.6;
}

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

.page-nh__section-title {
    font-size: 2.5em;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-nh__section-title--light {
    color: #ffffff;
}

.page-nh__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-nh__section-description--light {
    color: #f0f0f0;
}

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

/* Hero Section */
.page-nh__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
    padding-bottom: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-nh__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-nh__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-nh__hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up over the bottom part of the image for visual flow */
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    border-radius: 10px;
}

.page-nh__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.2;
}

.page-nh__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

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

.page-nh__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

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

.page-nh__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-nh__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(47, 107, 255, 0.2);
}

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

.page-nh__btn-tertiary:hover {
    background: #4A8BFF;
    transform: translateY(-2px);
}

.page-nh__btn-primary--small {
    padding: 10px 20px;
    font-size: 1em;
}

/* Intro Section */
.page-nh__intro-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

/* Games Section */
.page-nh__games-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-nh__games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.page-nh__game-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    color: var(--text-main);
}

.page-nh__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

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

.page-nh__game-card-description {
    font-size: 0.95em;
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Benefits Section */
.page-nh__benefits-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-nh__benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.page-nh__benefit-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-nh__benefit-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-nh__benefit-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-nh__benefit-text {
    font-size: 1em;
    color: var(--text-main);
}

/* Guide Section */
.page-nh__guide-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-nh__guide-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.page-nh__step-item {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-nh__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: #e0eaff;
}

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

.page-nh__step-description {
    font-size: 0.95em;
    margin-bottom: 20px;
}

/* Strategies Section */
.page-nh__strategies-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

.page-nh__strategy-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.page-nh__strategy-item {
    background: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-nh__strategy-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-nh__strategy-text {
    font-size: 1em;
    color: var(--text-main);
}

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

/* Promotions Section */
.page-nh__promotions-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-nh__promo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.page-nh__promo-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-nh__promo-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-nh__promo-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-nh__promo-text {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
    padding: 0 15px;
}

/* FAQ Section */
.page-nh__faq-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

.page-nh__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-nh__faq-item details > summary {
    list-style: none;
}

.page-nh__faq-item details > summary::-webkit-details-marker {
    display: none;
}

.page-nh__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    background-color: #e0eaff;
    border-bottom: 1px solid var(--border-color);
}

.page-nh__faq-question:hover {
    background-color: #d0e0ff;
}

.page-nh__faq-qtext {
    flex-grow: 1;
}

.page-nh__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--primary-color);
}

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

/* CTA Bottom Section */
.page-nh__cta-bottom-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
}

.page-nh__cta-bottom-content {
    max-width: 900px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-nh__games-grid,
    .page-nh__benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-nh__guide-steps {
        grid-template-columns: repeat(3, 1fr);
    }
    .page-nh__promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-nh__strategy-list {
        grid-template-columns: 1fr;
    }
    .page-nh__hero-content {
        margin-top: -80px;
    }
    .page-nh__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-nh__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }
    .page-nh__hero-image-wrapper {
        max-height: 400px;
    }
    .page-nh__hero-content {
        margin-top: -60px;
        padding: 15px;
        border-radius: 8px;
    }
    .page-nh__hero-title {
        font-size: 2em !important;
        margin-bottom: 10px;
    }
    .page-nh__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-nh__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    /* 产品展示图区域 (gameshow) */
    .page-nh__games-grid {
        grid-template-columns: 1fr !important; /* Single column for games */
        gap: 20px;
        padding: 0 15px;
        box-sizing: border-box;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    .page-nh__game-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }
    
    /* 通用图片与容器 */
    .page-nh img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-nh__container,
    .page-nh__section,
    .page-nh__card,
    .page-nh__content-area,
    .page-nh__games-section,
    .page-nh__benefits-section,
    .page-nh__guide-section,
    .page-nh__strategies-section,
    .page-nh__promotions-section,
    .page-nh__faq-section,
    .page-nh__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden;
    }
    
    /* 按钮与按钮容器 */
    .page-nh__btn-primary,
    .page-nh__btn-secondary,
    .page-nh__btn-tertiary,
    .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-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-nh__hero-cta-buttons,
    .page-nh__cta-buttons,
    .page-nh__button-group,
    .page-nh__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column;
    }

    /* 其他内容模块 */
    .page-nh__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-nh__section-description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }
    .page-nh__benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .page-nh__guide-steps {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .page-nh__promo-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .page-nh__strategy-list {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .page-nh__promo-image {
        height: 150px;
    }
    .page-nh__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-nh__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }
    .page-nh__step-item {
        padding: 20px 15px;
    }
    .page-nh__step-number {
        font-size: 2em;
        width: 50px;
        height: 50px;
        line-height: 50px;
    }
}