/**
 * 全站页脚 — 使用 #footer 提高优先级，避免 flatsome / emergency-fix 中 .footer-wrapper !important 在后加载时盖住样式（尤其 product_detail 异步 CSS）
 */
#footer.site-footer.footer-wrapper {
    margin-top: 52px;
    padding: 0 !important;
    background: #141619 !important;
    background-color: #141619 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#footer.site-footer .absolute-footer,
#footer.site-footer .absolute-footer.dark {
    background: transparent !important;
    background-color: transparent !important;
    color: #e8eaed !important;
    padding: 0 !important;
}

#footer.site-footer .absolute-footer.medium-text-center,
#footer.site-footer .absolute-footer.small-text-center {
    text-align: left !important;
}

#footer.site-footer .absolute-footer .container {
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

#footer.site-footer .site-footer__stripe {
    height: 3px;
    background: #a85a32;
    opacity: 0.95;
}

#footer.site-footer .footer-site-inner {
    padding: 28px 0 32px !important;
}

#footer.site-footer .site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr) minmax(220px, 300px);
    gap: 36px 40px;
    align-items: start;
}

#footer.site-footer .site-footer__label {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

#footer.site-footer .site-footer__copyright-wrap .copyright-footer {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 400;
}

#footer.site-footer .site-footer__copyright-wrap .copyright-footer strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

#footer.site-footer .site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 4px;
    line-height: 1.7;
    max-width: 34rem;
}

#footer.site-footer .site-footer__link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82) !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#footer.site-footer .site-footer__link:hover {
    color: #fff !important;
    border-bottom-color: rgba(255, 255, 255, 0.45);
}

#footer.site-footer .site-footer__link:focus-visible {
    outline: 2px solid #c4d4e8;
    outline-offset: 3px;
    border-radius: 1px;
}

#footer.site-footer .site-footer__link--lead {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94) !important;
}

#footer.site-footer .site-footer__sep {
    color: rgba(255, 255, 255, 0.28);
    font-weight: 400;
    user-select: none;
    padding: 0 2px;
}

#footer.site-footer .footer-pay-card {
    background: #eceae6;
    color: #2c2925;
    padding: 16px 18px 14px;
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 24px rgba(0, 0, 0, 0.25);
}

#footer.site-footer .footer-pay-card__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 10px;
}

#footer.site-footer .footer-pay-card__kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5c5853;
}

#footer.site-footer .footer-pay-card__logo {
    display: flex;
    align-items: center;
}

#footer.site-footer .footer-pay-card__logo svg {
    display: block;
}

#footer.site-footer .footer-pay-card__note {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #4d4944;
}

/* 兼容旧类名（勿删，以免其它片段引用） */
#footer.site-footer .footer-payment-methods {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

#footer.site-footer .payment-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

#footer.site-footer .payment-icon {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px !important;
    padding: 6px 12px !important;
    min-width: 0 !important;
    height: auto !important;
}

#footer.site-footer .payment-icon span {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    #footer.site-footer .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    #footer.site-footer .site-footer__col--payment {
        grid-column: 1 / -1;
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    #footer.site-footer .absolute-footer.medium-text-center,
    #footer.site-footer .absolute-footer.small-text-center {
        text-align: center !important;
    }

    #footer.site-footer .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 26px;
        justify-items: center;
    }

    #footer.site-footer .site-footer__col--brand,
    #footer.site-footer .site-footer__col--nav,
    #footer.site-footer .site-footer__col--payment {
        grid-column: auto;
        width: 100%;
        max-width: 22rem;
    }

    #footer.site-footer .site-footer__nav {
        justify-content: center;
        max-width: none;
    }

    #footer.site-footer .footer-site-inner {
        padding: 24px 0 28px !important;
    }

    #footer.site-footer .footer-pay-card {
        text-align: left;
    }

    #footer.site-footer .payment-icons {
        justify-content: center;
    }
}
