/* ===========================================
   Site Footer
=========================================== */
.site-footer {
    margin-top: auto;
    background: var(--color-primary);
    color: #cfcfcf;
    overflow-x: hidden;
    max-width: 100%;
}

.footer-main {
    padding: 56px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 40px 32px;
}

/* ╔══════════════════════════════════════════════════════════════╗
   ║  【禁止删除】footer-links-pair                                 ║
   ║  包裹 Quick Links + Categories：移动端强制同一行两列并排        ║
   ║  桌面：pair 展开为 grid 的两列子项（subgrid / contents）        ║
   ╚══════════════════════════════════════════════════════════════╝ */
.footer-links-pair {
    display: contents;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .footer-contact-col {
        grid-column: 1 / -1;
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* 平板：Quick Links | Categories 仍占一行两列 */
    .footer-links-pair {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px 0;
    }

    .footer-brand-col,
    .footer-contact-col {
        grid-column: auto;
    }

    /* 【禁止删除】移动端：Quick Links 与 Categories 同一行 */
    .footer-links-pair {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
        width: 100%;
    }

    .footer-links-pair .footer-heading {
        font-size: 12px;
    }

    .footer-links-pair .footer-links a {
        font-size: 13px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

.footer-heading {
    margin: 0 0 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 10px;
    margin-bottom: 16px;
    color: #fff;
}

.footer-brand:hover {
    color: #fff;
}

.footer-brand-picture {
    display: block;
    width: 100%;
    line-height: 0;
}

.footer-brand-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    /* Footer 深底默认提亮；悬停再呼吸 + 加亮 */
    filter: brightness(1.35) saturate(1.1);
    transform: scale(1);
    transform-origin: left center;
    transition: filter 0.35s ease, transform 0.35s ease;
}

.footer-brand:hover .footer-brand-logo,
.footer-brand:focus-visible .footer-brand-logo {
    animation: footerLogoBreathe 2.4s ease-in-out infinite;
}

@keyframes footerLogoBreathe {
    0%,
    100% {
        filter: brightness(1.5) saturate(1.12);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.75) saturate(1.18);
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-brand:hover .footer-brand-logo,
    .footer-brand:focus-visible .footer-brand-logo {
        animation: none;
        filter: brightness(1.65) saturate(1.15);
        transform: scale(1.02);
    }
}

.footer-brand-mark {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(var(--color-accent-rgb), 0.35);
    border-radius: var(--radius-md);
}

.footer-brand-name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
}

.footer-desc {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.75;
    color: #a8a8a8;
    max-width: 320px;
}

.footer-cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-cert {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #e8e4df;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(var(--color-accent-rgb), 0.3);
    border-radius: var(--radius-sm);
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: #a8a8a8;
}

.footer-links a:hover {
    color: var(--color-accent-light);
}

.footer-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact-list a {
    color: #a8a8a8;
}

.footer-contact-list a:hover {
    color: #fff;
}

.footer-contact-list svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.7;
}

/* ── B2B 线索捕获通栏（双栏；法律句贴在输入行下方）──────── */
.footer-lead-band {
    margin-top: 12px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-lead-capture {
    margin: 0;
    padding: 16px 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-sizing: border-box;
}

.footer-lead-capture__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1.2fr);
    gap: 16px 32px;
    align-items: center;
}

.footer-lead-capture__copy {
    min-width: 0;
}

.footer-lead-capture__title {
    margin: 0 0 6px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: #fff;
}

.footer-lead-capture__meta {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
}

.footer-lead-capture__proof {
    margin: 8px 0 0;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: var(--color-accent-light, #b8a898);
}

.footer-lead-capture__form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.footer-lead-capture__label {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.72);
}

.footer-lead-capture__req {
    margin-left: 2px;
    color: var(--color-accent-light);
}

.footer-lead-capture__fields {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.footer-lead-capture__input {
    display: block;
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    font: inherit;
    font-size: 13px;
    font-family: var(--font-sans);
    color: #fff;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.footer-lead-capture__input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.footer-lead-capture__input:focus {
    border-color: rgba(196, 168, 130, 0.65);
    background: rgba(0, 0, 0, 0.3);
}

.footer-lead-capture__submit {
    flex: 0 0 auto;
    width: auto;
    min-width: 9.75rem;
    min-height: 42px;
    margin-top: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 8px;
    white-space: nowrap;
    background: var(--color-accent);
    color: #fff;
}

.footer-lead-capture__submit:hover {
    background: var(--color-accent-hover);
    color: #fff;
}

/* 信任句：紧贴 input+CTA 行下方 */
.footer-lead-capture__legal {
    margin: 2px 0 0;
    max-width: 36rem;
    font-size: 0.625rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
}

.footer-lead-capture__legal-ok {
    margin-right: 0.2em;
    color: #8fce9e;
    font-weight: 600;
}

.footer-lead-capture__legal a {
    color: rgba(255, 255, 255, 0.66);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-lead-capture__legal a:hover {
    color: #fff;
}

.footer-lead-capture__feedback {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
}

.footer-lead-capture__feedback.is-success {
    color: #b8e0c5;
}

.footer-lead-capture__feedback.is-error {
    color: #f0b4b4;
}

.footer-lead-capture__submit.is-loading .footer-lead-capture__submit-text {
    display: none;
}

.footer-lead-capture__submit.is-loading .footer-lead-capture__submit-loading {
    display: inline;
}

.footer-lead-capture__submit-loading[hidden] {
    display: none;
}

@media (max-width: 992px) {
    .footer-lead-band {
        margin-top: 20px;
        padding-top: 16px;
    }

    .footer-lead-capture {
        padding: 14px;
    }

    .footer-lead-capture__row {
        grid-template-columns: 1fr;
        gap: 14px;
        align-items: stretch;
    }

    .footer-lead-capture__fields {
        flex-direction: column;
        gap: 8px;
    }

    .footer-lead-capture__input {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
        padding: 0.85rem 1rem;
        touch-action: manipulation;
    }

    .footer-lead-capture__submit {
        width: 100%;
        min-width: 0;
        min-height: 48px;
    }

    .footer-lead-capture__legal {
        max-width: none;
        margin-top: 4px;
    }
}

.footer-bottom {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-copyright {
    margin: 0;
    font-size: 13px;
    color: #8a8a8a;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal a {
    font-size: 13px;
    color: #a8a8a8;
}

.footer-legal a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-legal {
        width: 100%;
        justify-content: center;
        gap: 10px 14px;
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-legal a {
        font-size: 12px;
        line-height: 1.35;
        white-space: nowrap;
    }
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #a8a8a8;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    transition: background var(--transition), color var(--transition);
}

.footer-social-link:hover {
    color: #fff;
    background: var(--color-accent);
}
