/* ======================
   全局变量：浅色 / 深色
   ====================== */
:root {
    --footer-text: rgba(255, 255, 255, 0.75); /* 普通文字 */
    --footer-link: rgba(255, 255, 255, 0.85); /* 普通链接 */
    --footer-hover: #409eff; /* 浅色模式下的链接悬停颜色（蓝色） */
    --footer-bg: transparent;
}

/* 系统浅色模式 */
@media (prefers-color-scheme: light) {
    :root {
        --footer-text: #555;
        --footer-link: #333;
        --footer-hover: #409eff; /* 蓝色 */
        --footer-bg: rgba(255, 255, 255, 0.4);
    }
}

/* ======================
   Footer 吸底核心
   ====================== */
.site-footer {
    margin-top: auto;                  /* 吸底关键 */
    padding: 14px 10px env(safe-area-inset-bottom);
    background: transparent !important; /* ✅ 完全透明 */
    backdrop-filter: none;             /* ❌ 关闭磨砂 */
    -webkit-backdrop-filter: none;
    z-index: 2;
}

/* 内容容器 */
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: var(--footer-text);
}

/* 段落 */
.footer-inner p {
    margin: 4px 0;
}

/* 链接 */
.footer-inner a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.3s ease; /* 为了更平滑的过渡效果 */
}

.footer-inner a:hover {
    color: var(--footer-hover); /* 当鼠标悬停时变成蓝色 */
}

/* ICP */
.footer-links span {
    margin: 0 6px;
}

/* 公安备案 */
.footer-police a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-police img {
    width: 16px;
    height: 16px;
}

/* ======================
   手机端特别优化
   ====================== */
@media (max-width: 480px) {
    .site-footer {
        padding: 10px 8px env(safe-area-inset-bottom);
    }

    .footer-inner {
        font-size: 12px;
    }

    /* 避免误触 */
    .footer-inner a {
        padding: 2px 0;
        display: inline-block;
    }

    /* ICP 分行，避免挤 */
    .footer-links span {
        display: none;
    }

    .footer-links a {
        display: block;
    }
}

/* ===== 强制 footer 彻底透明（终极兜底）===== */
.site-footer,
.site-footer *,
.footer-inner,
.footer-content {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
