/* Footer CSS */

.nw-footer {
    width: 100%;
    background: #111827;
    color: rgba(255, 255, 255, 0.82);
}

.nw-footer__top {
    padding: 72px 0 34px;
}

.nw-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.8fr));
    gap: 34px 28px;
}

.nw-footer__col {
    min-width: 0;
}

.nw-footer__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nw-footer__logo-img {
    display: block;
    width: auto;
    height: 46px;
    max-width: 180px;
    object-fit: contain;
}

.nw-footer__intro {
    max-width: 420px;
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.72);
}

.nw-footer__contact-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.nw-footer__contact-item {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
}

.nw-footer__contact-item a {
    color: inherit;
    text-decoration: none;
}

.nw-footer__heading {
    margin: 2px 0 0;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.nw-footer__links {
    display: grid;
    gap: 11px;
    margin-top: 20px;
}

.nw-footer__links a {
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nw-footer__links a:hover {
    color: var(--nw-primary);
    transform: translateX(2px);
}

.nw-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0 22px;
}

.nw-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nw-footer__copyright {
    width: 100%;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.nw-footer__policy {
    display: none !important;
}

.nw-footer__contact-list--col {
    margin-top: 20px;
    gap: 13px;
}

.nw-footer__contact-list--col .nw-footer__contact-item {
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    line-height: 1.7;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.nw-footer__contact-list--col .nw-footer__contact-item span {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.nw-footer__contact-list--col .nw-footer__contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.25s ease;
}

.nw-footer__contact-list--col .nw-footer__contact-item a:hover {
    color: var(--nw-primary);
}

@media (max-width: 1440px) and (min-width: 1025px) {

    .nw-footer__top {
        padding: 62px 0 32px;
    }

    .nw-footer__grid {
        grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 0.9fr));
        gap: 30px 20px;
    }

}

@media (max-width: 1024px) and (min-width: 769px) {

    .nw-footer__top {
        padding: 56px 0 30px;
    }

    .nw-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 24px;
    }

}

@media (max-width: 768px) {

    .nw-footer__top {
        padding: 44px 0 26px;
    }

    .nw-footer__grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .nw-footer__logo-img {
        height: 42px;
        max-width: 168px;
    }

    .nw-footer__heading {
        font-size: 17px;
    }

    .nw-footer__intro, .nw-footer__contact-item, .nw-footer__links a {
        font-size: 14px;
    }

    .nw-footer__bottom {
        padding: 16px 0 18px;
    }

}

@media (max-width: 390px) {

    .nw-footer__logo-img {
        height: 38px;
        max-width: 156px;
    }

    .nw-footer__intro, .nw-footer__contact-item, .nw-footer__links a {
        font-size: 13px;
    }

}

@media (min-width: 769px) {

    .nw-footer__contact-list--col .nw-footer__contact-item {
            white-space: normal;
            word-break: break-word;
            overflow-wrap: anywhere;
    }

}


/*按钮css*/
    .nwfb-float {
        position: fixed;
        right: 18px;
        top: 50%;
        z-index: 9999;
        display: grid;
        gap: 8px;
        padding: 8px;
        border: 1px solid rgba(229, 231, 235, 0.95);
        border-radius: 18px;
        background: rgb(252 200 3);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
        transform: translateY(-50%);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    .nwfb-float {
        --nwfb-divider-width: 38px;
        --nwfb-divider-color: rgb(229, 231, 235, 0.95);
    }
    
    /* 所有一级子元素 */
    .nwfb-float > * {
        position: relative;
        justify-self: center;
    }
    
    /* 从第二个子元素开始，在上面加分割线 */
    .nwfb-float > * + *::before {
        content: "";
        position: absolute;
        top: -4px;
        left: 50%;
        width: var(--nwfb-divider-width);
        height: 1px;
        background: var(--nwfb-divider-color);
        transform: translateX(-50%);
    }

    .nwfb-item {
        position: relative;
        width: 50px;
        height: 50px;
        border: 1px solid transparent;
        border-radius: 16px;
        background: transparent;
        color: #111827;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: none;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
    }

    .nwfb-item:hover {
        background: rgb(229, 231, 235, 0.95);
        border-color: #fcc803;
        color: #111827;
        transform: translateY(-1px);
    }
    

    .nwfb-icon {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nwfb-icon svg {
        display: block;
        width: 30px;
        height: 30px;
    }

    .nwfb-text {
        display: none;
    }

    .nwfb-qr {
        position: absolute;
        right: calc(100% + 14px);
        top: 50%;
        width: 250px;
        padding: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-50%) translateX(8px);
        transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
    }

    .nwfb-whatsapp:hover .nwfb-qr {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0);
    }

    .nwfb-qr::after {
        content: "";
        position: absolute;
        right: -7px;
        top: 50%;
        width: 12px;
        height: 12px;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        border-right: 1px solid #e5e7eb;
        transform: translateY(-50%) rotate(45deg);
    }

    .nwfb-qr img {
        display: block;
        width: 238px;
        height: 238px;
        object-fit: contain;
    }

    .nwfb-qr em {
        display: block;
        margin-top: 8px;
        color: #6b7280;
        font-size: 12px;
        line-height: 1.4;
        font-style: normal;
        font-weight: 700;
        text-align: center;
    }


    @media (max-width: 768px) {
        .nwfb-float {
            left: 0;
            right: 0;
            top: auto;
            bottom: 0;
            width: 100%;
            max-width: none;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
            padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
            border-radius: 0;
            border-left: none;
            border-right: none;
            border-bottom: none;
            border-top: 1px solid #e5e7eb;
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.12);
            transform: none;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
        }

        .nwfb-item,
        .nwfb-email,
        .nwfb-whatsapp,
        .nwfb-facebook {
            width: 100%;
            height: 56px;
            min-height: 56px;
            border-radius: 12px;
            background: #fff7d1;
            border: 1px solid #f2dc84;
            color: #111827;
            box-shadow: none;
            transform: none;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .nwfb-item:hover,
        .nwfb-item:active,
        .nwfb-item:focus,
        .nwfb-email:hover,
        .nwfb-email:active,
        .nwfb-email:focus,
        .nwfb-whatsapp:hover,
        .nwfb-whatsapp:active,
        .nwfb-whatsapp:focus,
        .nwfb-facebook:hover,
        .nwfb-facebook:active,
        .nwfb-facebook:focus {
            background: #fff7d1;
            border: 1px solid #f2dc84;
            color: #111827;
            box-shadow: none;
            transform: none;
            outline: none;
        }

        .nwfb-icon,
        .nwfb-icon svg {
            width: 20px;
            height: 20px;
        }

        .nwfb-text {
            display: block;
            color: #111827;
            font-size: 12px;
            line-height: 1.1;
            font-weight: 800;
            white-space: nowrap;
        }

        .nwfb-qr {
            display: none;
        }
    }

    @media (max-width: 390px) {
        .nwfb-float {
            gap: 6px;
            padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        }

        .nwfb-item,
        .nwfb-email,
        .nwfb-whatsapp,
        .nwfb-facebook {
            height: 54px;
            min-height: 54px;
            border-radius: 10px;
        }

        .nwfb-text {
            font-size: 11px;
        }
    }