/* ==========================================================================
   诺言美化插件 · 自定义页脚（精简版）
   结构对齐 zibll-beautify-plus，所有类名以 nf- 前缀并收在 #nuoyo-footer 内，
   颜色全部使用子比主题变量，日夜模式自动适配
   ========================================================================== */

/* ---------- 顶部动物装饰 ---------- */
#nuoyo-footer-animal {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    text-align: center;
    line-height: 0;
}

#nuoyo-footer-animal img {
    position: relative;
    z-index: 1;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    vertical-align: top;
}

/* ---------- 页脚主体 ---------- */
#nuoyo-footer {
    position: relative;
    clear: both;
    width: 100%;
    background-color: var(--main-bg-color);
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
}

#nuoyo-footer .nf-band {
    position: relative;
    overflow: hidden;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 有背景图时才铺这层淡绿渐变做融合；没有背景图就保持纯主题底色 */
#nuoyo-footer.has-bg .nf-band {
    background-image: linear-gradient(to top, #00ffbb36, transparent);
}

#nuoyo-footer .nf-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--mian-max-width);
    margin: 0 auto;
    padding: 36px 0;
    box-sizing: border-box;
}

/* ---------- 站点信息 ---------- */
#nuoyo-footer .nf-info {
    width: 60%;
}

#nuoyo-footer .nf-info h2 {
    margin: 0 0 10px;
    text-transform: uppercase;
    font-size: 20px;
    line-height: 1.4;
    color: var(--key-color);
}

#nuoyo-footer .nf-desc {
    max-width: 500px;
    color: var(--muted-color);
    font-size: 12px;
    line-height: 1.8;
    word-break: break-word;
}

#nuoyo-footer .nf-desc p {
    margin: 0 0 6px;
}

/* ---------- 收藏按钮 ---------- */
#nuoyo-footer .nf-act {
    padding-top: 5px;
}

#nuoyo-footer .nf-btn-fav {
    display: inline-block;
    padding: 0 1.2em;
    border-radius: 8px;
    background-color: var(--focus-color);
    color: #fff;
    font-size: 14px;
    line-height: 2.5;
    white-space: nowrap;
    text-decoration: none;
}

#nuoyo-footer .nf-btn-fav:hover {
    color: #fff;
    opacity: .9;
}

/* ---------- 女孩立绘 ---------- */
#nuoyo-footer .nf-girl-wrap {
    position: absolute;
    bottom: 0;
    left: 50%;
}

#nuoyo-footer .nf-girl {
    position: absolute;
    bottom: 0;
    left: 50px;
    width: 150px;
    transition: left .3s;
}

#nuoyo-footer .nf-girl .nf-thumb {
    display: block;
    width: 100%;
    height: 0;
    padding-top: 116.667%;
    background-color: transparent;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#nuoyo-footer .nf-hi {
    position: absolute;
    top: 40%;
    left: 100%;
    display: block;
    visibility: hidden;
    opacity: 0;
    color: var(--muted-2-color, #a7a7a7);
    font-size: 20px;
    line-height: 1.4;
    white-space: nowrap;
    transition: all .3s;
}

#nuoyo-footer .nf-girl-info {
    margin-bottom: 55px;
    margin-left: 150px;
}

#nuoyo-footer .nf-girl-info h4 {
    margin: 0;
    color: var(--muted-color);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.8;
}

/* ---------- 桌面端 ---------- */
@media (min-width: 768px) {
    #nuoyo-footer .nf-band {
        display: flex;
        overflow: visible;
        padding: 0;
    }

    #nuoyo-footer .nf-info {
        width: auto;
    }

    #nuoyo-footer .nf-info h2 {
        font-size: 26px;
    }

    #nuoyo-footer .nf-desc {
        font-size: 14px;
    }

    #nuoyo-footer .nf-act {
        padding-top: 24px;
    }

    #nuoyo-footer .nf-btn-fav {
        padding: 0 2em;
        line-height: 3.5;
    }

    #nuoyo-footer .nf-girl {
        left: -50px;
    }

    #nuoyo-footer .nf-band:hover .nf-girl {
        left: -80px;
    }

    #nuoyo-footer .nf-band:hover .nf-hi {
        visibility: visible;
        opacity: 1;
    }
}

/* ---------- 移动端 ---------- */
@media (max-width: 767px) {
    #nuoyo-footer-animal {
        height: 60px;
    }

    #nuoyo-footer .nf-band {
        padding-bottom: 0;
    }

    #nuoyo-footer .nf-row {
        flex-wrap: wrap;
        padding-bottom: 20px;
    }

    #nuoyo-footer .nf-info {
        width: 50%;
        padding-right: 12px;
        box-sizing: border-box;
    }

    #nuoyo-footer .nf-desc,
    #nuoyo-footer .nf-act,
    #nuoyo-footer .nf-girl-info {
        display: none;
    }

    #nuoyo-footer .nf-girl-wrap {
        position: static;
        display: flex;
        justify-content: flex-end;
        width: 50%;
        margin-left: auto;
        padding-top: 10px;
    }

    #nuoyo-footer .nf-girl {
        position: static;
        width: 100%;
        max-width: 140px;
    }

    #nuoyo-footer .nf-girl .nf-thumb {
        max-height: 160px;
    }
}
