/* =============================================
   Site Footer - Black & White Bento UI Style
   ============================================= */

/* ── 页面沉底布局支撑 ── */
html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 让主内容撑开，footer 自动沉底 */
body > .wrap,
body > main,
body > #wrapper,
body > .page-wrapper {
    flex: 1 0 auto;
}

/* ── Footer 主体 ── */
.site-footer {
    flex-shrink: 0;
    background: #111111;
    color: #cccccc;
    border-top: 1px solid #2a2a2a;
    padding: 16px 0 12px;
    margin-top: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* ── 导航链接区 ── */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    row-gap: 8px;
}

.footer-nav-link {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 3px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.footer-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.footer-nav-sep {
    color: #3a3a3a;
    font-size: 12px;
    margin: 0 2px;
    user-select: none;
}

/* ── 免责声明 ── */
.footer-disclaimer {
    max-width: 780px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 8px 14px;
}

.footer-disclaimer p {
    margin: 0;
    font-size: 11px;
    color: #555555;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* ── 版权信息 ── */
.footer-copyright {
    text-align: center;
    font-size: 11px;
    color: #444444;
    letter-spacing: 0.02em;
    padding-top: 2px;
    border-top: 1px solid #1e1e1e;
    width: 100%;
}

.footer-copyright span {
    display: block;
    text-align: center;
}

/* ── 返回顶部按钮 ── */
.site-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: #1a1a1a;
    color: #eeeeee;
    border: 1px solid #333333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, background 0.2s ease, transform 0.2s ease;
    z-index: 1050;
    font-size: 16px;
}

.site-scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.site-scroll-top:hover {
    background: #2d2d2d;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.site-scroll-top:active {
    transform: translateY(0);
}

/* ── 响应式 ── */
@media (max-width: 768px) {
    .site-footer {
        padding: 12px 0 10px;
        margin-top: 12px;
    }

    .site-footer .container {
        padding: 0 16px;
        gap: 8px;
    }

    .footer-nav {
        gap: 0;
        row-gap: 6px;
    }

    .footer-nav-link {
        font-size: 12px;
        padding: 2px 5px;
    }

    .footer-disclaimer {
        padding: 10px 14px;
    }

    .footer-disclaimer p {
        font-size: 10.5px;
    }

    .site-scroll-top {
        bottom: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .footer-nav-sep {
        display: none;
    }

    .footer-nav {
        gap: 4px;
        row-gap: 4px;
    }

    .footer-nav-link {
        padding: 3px 8px;
        border: 1px solid #2a2a2a;
        border-radius: 4px;
    }
}
