/* 模板3底栏唯一视觉定义。限定ID，兼容旧页面的主题色和全局链接/通配规则。 */
#site-footer.site-footer {
    position:fixed !important;
    z-index:99999;
    left:50% !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    bottom:0 !important;
    display:flex !important;
    align-items:stretch;
    width:100% !important;
    max-width:680px;
    min-height:calc(72px + env(safe-area-inset-bottom));
    padding:10px 9px calc(10px + env(safe-area-inset-bottom));
    box-sizing:border-box;
    border-top:1px solid #e9e6e1;
    background:#f7f6f3 !important;
    transform:translateX(-50%);
    font-family:-apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
}
#site-footer .site-footer-item {
    display:flex !important;
    flex:1;
    min-width:0;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:0 2px;
    color:#77736e !important;
    font-size:10px !important;
    font-weight:400;
    line-height:1.5;
    text-decoration:none !important;
    text-align:center;
    overflow-wrap:anywhere;
    -webkit-tap-highlight-color:transparent;
}
#site-footer .site-footer-item.is-current {
    color:var(--theme-primary) !important;
    font-weight:600;
}
#site-footer svg,
#site-footer svg * {
    color:inherit !important;
    stroke:currentColor;
    fill:none;
}
#site-footer .w-icon {
    display:block;
    width:23px !important;
    height:23px !important;
    flex:0 0 auto;
}
#site-footer .site-footer-item:focus-visible {
    outline:2px solid var(--theme-primary);
    outline-offset:2px;
    border-radius:8px;
}
/* 固定底栏和固定提交栏各自只预留一次。 */
body.has-site-footer {
    --site-footer-offset: var(--site-footer-height, calc(72px + env(safe-area-inset-bottom)));
    padding-bottom:var(--site-footer-offset);
}

body.has-fixed-site-footer:not(.product-buy) .finance-shell {
    padding-bottom:calc(12px + var(--finance-submit-height, 0px));
}

body.has-fixed-site-footer .finance-submit-bar,
body.has-fixed-site-footer .product-buy .product-action-bar {
    bottom:var(--site-footer-offset);
}
