/* ══════════════════════════════════════
   全站共享收束 CTA · HTML 源：sections/footer-cta.html
   ══════════════════════════════════════ */
#footer-cta[data-layout="brand-close"] {
    --bc-section-py: clamp(2rem, 4vh, 3rem);
    --bc-section-min-h: auto;
    --bc-title-size: clamp(1.25rem, 3.5vw, 2.25rem);
    --bc-sub-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
    --bc-stack-title-sub: 0.75rem;
    --bc-stack-sub-cta: 1.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: var(--bc-section-min-h);
    padding-block: var(--bc-section-py) !important;
    background-color: #F8FAFC;
    background-image: url("../../assets/common/brand-footer-bg.png");
    background-image: image-set(
        url("../../assets/common/optimized/footer-brand-bg.webp") type("image/webp") 1x,
        url("../../assets/common/optimized/footer-brand-bg.jpg") type("image/jpeg") 1x,
        url("../../assets/common/brand-footer-bg.webp") type("image/webp") 1x,
        url("../../assets/common/brand-footer-bg.png") type("image/png") 1x
    );
    background-position: center center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.8);
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
}

#footer-cta[data-layout="brand-close"] .bc-shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: var(--home-shell, min(1280px, calc(100% - 48px)));
    max-width: none;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2rem);
}

#footer-cta[data-layout="brand-close"] .bc-hero {
    width: 100%;
    text-align: center;
    padding: 0;
}

#footer-cta[data-layout="brand-close"] .bc-title-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-inline: auto;
    margin-bottom: var(--bc-stack-title-sub);
}

#footer-cta[data-layout="brand-close"] .bc-title {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #1E293B;
    font-size: var(--bc-title-size);
    font-weight: 500 !important;
    line-height: 1.15;
    letter-spacing: 0 !important;
}

#footer-cta[data-layout="brand-close"] .bc-title__accent {
    font-weight: 500 !important;
    background: linear-gradient(90deg, #165DFF, #8B5CF6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#footer-cta[data-layout="brand-close"] .bc-sub {
    margin: 0 auto var(--bc-stack-sub-cta);
    max-width: 32rem;
    color: #64748B;
    font-size: var(--bc-sub-size);
    font-weight: 400;
    line-height: 1.5;
}

#footer-cta[data-layout="brand-close"] .bc-cta {
    display: flex;
    justify-content: center;
}

#footer-cta[data-layout="brand-close"] .bc-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.625rem 1.75rem;
    border: 0;
    border-radius: 9999px;
    background: #165DFF;
    color: #FFFFFF;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(22, 93, 255, 0.25);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#footer-cta[data-layout="brand-close"] .bc-cta__btn svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

#footer-cta[data-layout="brand-close"] .bc-cta__btn:hover {
    background: #0045E6;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(22, 93, 255, 0.35);
}

#footer-cta[data-layout="brand-close"] .bc-cta__btn:hover svg {
    transform: translateX(3px);
}

@media (max-width: 1023px) {
    #footer-cta[data-layout="brand-close"] {
        --bc-section-py: clamp(1.75rem, 3.5vh, 2.5rem);
    }
}

@media (max-width: 767px) {
    #footer-cta[data-layout="brand-close"] {
        --bc-section-py: clamp(1.5rem, 3vh, 2rem);
        --bc-title-size: clamp(1.625rem, 6.5vw, 2rem);
        --bc-sub-size: clamp(0.875rem, 2vw, 0.9375rem);
        --bc-stack-title-sub: 0.625rem;
        --bc-stack-sub-cta: 1.5rem;
    }

    #footer-cta[data-layout="brand-close"] .bc-shell {
        width: calc(100% - 32px);
        padding-inline: 0;
    }

    #footer-cta[data-layout="brand-close"] .bc-cta__btn {
        width: 100%;
        max-width: 20rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #footer-cta[data-layout="brand-close"] .bc-cta__btn:hover,
    #footer-cta[data-layout="brand-close"] .bc-cta__btn:hover svg {
        transform: none;
    }
}

/* ══════════════════════════════════════
   全站共享页脚 · Teable 风格布局
   HTML 源：sections/footer.html
   ══════════════════════════════════════ */
#site-footer.site-footer--teable {
    padding: 0 !important;
    background: #000000;
    color: #94A3B8;
}

#site-footer.site-footer--teable .site-footer__shell {
    width: var(--home-shell, min(1280px, calc(100% - 48px)));
    max-width: none;
    margin-inline: auto;
    padding: clamp(3rem, 6vh, 4rem) clamp(1.5rem, 4vw, 2rem) clamp(1.5rem, 3vh, 2rem);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#site-footer.site-footer--teable .site-footer__main {
    display: flex;
    flex-direction: column;
    margin-bottom: clamp(2.5rem, 5vh, 3.5rem);
}

@media (min-width: 1024px) {
    #site-footer.site-footer--teable .site-footer__main {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: clamp(2rem, 4vw, 3rem);
    }
}

#site-footer.site-footer--teable .site-footer__brand {
    width: clamp(13rem, 18vw, 18rem);
    flex-shrink: 0;
    max-width: 25rem;
}

#site-footer.site-footer--teable .site-footer__brand-logo {
    margin-bottom: 1rem;
}

#site-footer.site-footer--teable .site-footer__brand-logo-img {
    display: block;
    width: min(188px, 100%);
    height: auto;
}

#site-footer.site-footer--teable .site-footer__brand-lead {
    margin: 2rem 0 0;
    font-size: 1.125rem;
    font-weight: 600 !important;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #FFFFFF;
}

#site-footer.site-footer--teable .site-footer__brand-tagline {
    margin: 0.625rem 0 0;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #E5E7EB;
}

#site-footer.site-footer--teable .site-footer__contact {
    margin-top: clamp(1.5rem, 3vw, 2rem);
    font-family: var(--prototype-title-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif);
}

#site-footer.site-footer--teable .site-footer__contact-title {
    margin: 0;
    color: #E5E7EB;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
}

#site-footer.site-footer--teable .site-footer__contact-phone {
    margin: 1rem 0;
    color: #F8FAFC;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: 0;
    white-space: nowrap;
}

#site-footer.site-footer--teable .site-footer__contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: #B8C7E6;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    cursor: pointer;
}

#site-footer.site-footer--teable .site-footer__contact-actions span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

#site-footer.site-footer--teable .site-footer__contact-actions span + span::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 1em;
    margin: 0 clamp(0.9rem, 1.8vw, 1.35rem);
    background: rgba(148, 163, 184, 0.28);
}

@media (max-width: 640px) {
    #site-footer.site-footer--teable .site-footer__shell {
        width: calc(100% - 32px);
        padding: 2.25rem 0 1.25rem;
    }

    #site-footer.site-footer--teable .site-footer__main {
        margin-bottom: 2rem;
    }

    #site-footer.site-footer--teable .site-footer__brand {
        width: 100%;
    }

    #site-footer.site-footer--teable .site-footer__brand-lead {
        margin-top: 1.5rem;
    }

    #site-footer.site-footer--teable .site-footer__contact-title {
        font-size: 1rem;
    }

    #site-footer.site-footer--teable .site-footer__contact-phone {
        margin: 0.75rem 0 0;
        font-size: clamp(1.25rem, 5.6vw, 1.5rem);
    }

    #site-footer.site-footer--teable .site-footer__contact-actions {
        font-size: 1rem;
    }

    #site-footer.site-footer--teable .site-footer__nav {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 1.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    #site-footer.site-footer--teable .site-footer__nav-col[data-footer-accordion] {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #site-footer.site-footer--teable .site-footer__nav-col--social {
        grid-column: 1 / -1;
        padding-top: 1.75rem;
    }

    #site-footer.site-footer--teable .site-footer__nav-col--social .site-footer__links {
        display: flex;
        flex-direction: row;
        gap: 1.25rem;
        align-items: flex-start;
    }

    #site-footer.site-footer--teable .site-footer__nav-col--social .site-footer__links li {
        margin-top: 0;
    }
}

#site-footer.site-footer--teable .site-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    flex: 1;
    min-width: 0;
}

@media (min-width: 640px) {
    #site-footer.site-footer--teable .site-footer__nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    #site-footer.site-footer--teable .site-footer__nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1.5rem 2rem;
        max-width: 58rem;
    }
}

#site-footer.site-footer--teable .site-footer__nav-col {
    min-width: 0;
}

#site-footer.site-footer--teable .site-footer__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600 !important;
    letter-spacing: 0;
    text-transform: none;
    color: #FFFFFF;
}

#site-footer.site-footer--teable .site-footer__heading svg {
    display: none;
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

#site-footer.site-footer--teable .site-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

#site-footer.site-footer--teable .site-footer__links li + li {
    margin-top: 0.625rem;
}

#site-footer.site-footer--teable .site-footer__links a,
#site-footer.site-footer--teable .site-footer__links span {
    font-size: 0.8125rem;
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
}

#site-footer.site-footer--teable .site-footer__links a[aria-disabled="true"] {
    cursor: default;
}

#site-footer.site-footer--teable .site-footer__links a:hover {
    color: #FFFFFF;
}

#site-footer.site-footer--teable .site-footer__social-links li {
    display: grid;
    justify-items: start;
    gap: 0.5rem;
}

#site-footer.site-footer--teable .site-footer__social-links img {
    display: block;
    width: 5rem;
    height: 5rem;
}

@media (max-width: 640px) {
    #site-footer.site-footer--teable [data-footer-accordion] .site-footer__heading {
        min-height: 3.25rem;
        margin: 0;
        cursor: pointer;
    }

    #site-footer.site-footer--teable [data-footer-accordion] .site-footer__heading svg {
        display: block;
    }

    #site-footer.site-footer--teable [data-footer-accordion].is-open .site-footer__heading svg {
        transform: rotate(180deg);
    }

    #site-footer.site-footer--teable [data-footer-accordion] .site-footer__links {
        display: none;
        padding: 0 0 1rem;
    }

    #site-footer.site-footer--teable [data-footer-accordion].is-open .site-footer__links {
        display: block;
    }

    #site-footer.site-footer--teable .site-footer__links li + li {
        margin-top: 0.75rem;
    }

    #site-footer.site-footer--teable .site-footer__bottom {
        gap: 0.625rem;
        padding-top: 1.25rem;
        line-height: 1.7;
    }
}

#site-footer.site-footer--teable .site-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: #64748B;
}

@media (min-width: 768px) {
    #site-footer.site-footer--teable .site-footer__bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

#site-footer.site-footer--teable .site-footer__bottom p {
    margin: 0;
}

#site-footer.site-footer--teable .site-footer__beian {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s ease;
}

#site-footer.site-footer--teable .site-footer__beian:hover {
    color: #CBD5E1;
}
