/* =============== footer.css =============== */
.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    background: #F2C94C;
    border-top: 1px solid rgba(0, 0, 0, .10);
    font-size: 12px;
    color: #111;
}

.site-footer__inner {
    height: 34px;
    display: flex;
    /* 改为真正的 flex 容器 */
    align-items: center;

    /* 占满整行宽度 */
    width: 100%;

    /* 左右留白，让整体不贴边 */
    padding-left: 72px;
    padding-right: 24px;

    /* 让三块自然分开 */
    justify-content: flex-start;
}

/* 两个文字链接也用 inline-flex，避免基线导致下沉 */
.site-footer__link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    /* ✅ 避免行高把视觉压低 */
}

/* badge 也用 inline-flex，确保图文居中 */
.site-footer__badge {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* 图片固定高度，并且 block 化，去掉 baseline 影响 */
.site-footer__badge img {
    height: 18px;
    /* 你想要更大就调 18/20/22 */
    width: auto;
    display: block;
    /* ✅ 关键：消除 inline baseline */
}

/* 三个元素作为独立块 */
.site-footer__icp {
    margin-right: 48px;
}

.site-footer__icp {
    position: relative;
    padding-bottom: 2px;
    /* 给下划线留一点空间 */
    margin-right: 48px;
    /* 你之前设的间距可以保留 */
}

.site-footer__icp::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(0, 0, 0, .6);
}

.site-footer__cert {
    margin-right: 48px;
}

/* .site-footer__badge {
    display: inline-flex;
    align-items: center;
} */

/* 链接样式：黑色、无下划线、hover 再出现下划线 */
.site-footer__link {
    color: #111;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
}

.site-footer__link:hover {
    text-decoration: underline;
}

.site-footer__sep {
    opacity: .55;
    font-weight: 700;
}

/* 右侧小徽章（你截图的蓝绿小牌） */
.site-footer__badge {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    text-decoration: none;
}

.site-footer__badge img {
    height: 20px;
    /* 接近截图尺寸 */
    width: auto;
    display: block;
}

/* 防遮挡：给页面留底 */
body {
    padding-bottom: 34px;
}

/* 手机端：footer 不固定 + 占满宽度 + 不换行 + 隐藏右侧图片 */
@media (max-width: 520px) {
    .site-footer {
        position: static;
        /* 不固定 */
        width: 100vw;
        /* ✅ 关键：按视口宽度铺满 */
        margin-left: calc(50% - 50vw);
        /* ✅ 关键：从居中容器里“拉满”到全屏 */
    }

    body {
        padding-bottom: 0;
        /* 取消为 fixed footer 预留的底部空间 */
    }

    .site-footer__badge {
        display: none;
        /* 右侧图片不显示 */
    }

    .site-footer__inner {
        width: 100%;
        /* ✅ 占满整行 */
        max-width: none;
        /* ✅ 取消桌面端 max-width */
        margin: 0;
        /* ✅ 取消居中造成的“窄块”效果 */

        height: auto;
        padding: 10px 12px;
        /* 手机端舒适一点 */

        display: flex;
        align-items: center;
        justify-content: flex-start;

        flex-wrap: nowrap;
        /* ✅ 不换行 */
        gap: 16px;
        /* 拉开一点点 */
        padding-left: 12px;
        /* ✅ 取消你桌面端那种大左缩进 */
    }

    .site-footer__link {
        white-space: nowrap;
        /* ✅ 两个链接都不换行 */
        font-size: 12px;
    }
}