/* 首页页脚：所有调整限定在这一版页脚内。 */
body.poster-home #pageFooter.footer-refreshed {
    padding: 40px 0 30px !important;
    color: var(--poster-ink, #40316b);
    border-top: 1px solid rgba(64, 49, 107, .16);
    background: linear-gradient(180deg, rgba(255, 255, 255, .1), transparent);
}

#pageFooter.footer-refreshed .footer-shell {
    max-width: 1440px;
    padding: 0 36px;
}

#pageFooter.footer-refreshed .footer-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.65fr);
    gap: 28px;
}

#pageFooter.footer-refreshed .footer-col--service { order: 3; }
#pageFooter.footer-refreshed .footer-col--connect { order: 4; }
#pageFooter.footer-refreshed .footer-col--brand {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    text-align: left;
}
#pageFooter.footer-refreshed .footer-col--connect .footer-col-title {
    text-align: left;
    padding-left: 28px;
}
#pageFooter.footer-refreshed .footer-brand-copy,
#pageFooter.footer-refreshed .footer-quote-copy { display: block; }

#pageFooter.footer-refreshed .footer-brand {
    color: var(--poster-ink);
    font-size: 1.6rem;
    letter-spacing: .14em;
}

#pageFooter.footer-refreshed .footer-brand-en {
    color: var(--poster-ink-soft);
    font-size: .6rem;
    letter-spacing: .2em;
    margin-top: 8px;
}

#pageFooter.footer-refreshed .footer-tagline {
    color: var(--poster-ink);
    margin: 16px 0 20px;
    font-size: .9rem;
    letter-spacing: .15em;
}

#pageFooter.footer-refreshed .footer-col-title {
    color: var(--poster-ink);
    font-size: .88rem;
    letter-spacing: .12em;
    margin-bottom: 16px;
    min-height: 24px;
}

#pageFooter.footer-refreshed .footer-list { gap: 2px; }

#pageFooter.footer-refreshed .footer-list a,
#pageFooter.footer-refreshed .footer-list .doudou-trigger {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 0;
    font-size: .8rem;
    line-height: 1.6;
    letter-spacing: .01em;
    color: rgba(64, 49, 107, .8);
}

#pageFooter.footer-refreshed .footer-icons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 12px;
}

#pageFooter.footer-refreshed .footer-icons .footer-icon-link,
#pageFooter.footer-refreshed .footer-icons #wechat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    min-width: 0;
    min-height: 32px;
    margin: 0;
    padding: 5px 0;
    gap: 8px;
    color: var(--poster-ink);
}

/* 覆盖旧拆字组件对连接栏的初始隐藏状态，链接始终可用。 */
body.poster-home #pageFooter.footer-refreshed .footer-col--connect .footer-icon-link {
    opacity: 1;
    visibility: visible;
    filter: none;
    transform: none;
    animation: none;
}

#pageFooter.footer-refreshed .footer-icon-name {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: .8rem;
    letter-spacing: 0;
    line-height: 1.6;
}

#pageFooter.footer-refreshed .footer-icon {
    width: 20px !important;
    height: 20px !important;
}

#pageFooter.footer-refreshed .footer-companions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(64, 49, 107, .12);
}

#pageFooter.footer-refreshed .footer-companions-title {
    color: var(--poster-ink-soft);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .12em;
    margin: 0;
}

#pageFooter.footer-refreshed .footer-companion-links {
    flex-direction: column;
    gap: 0;
}

#pageFooter.footer-refreshed .footer-meta {
    margin-top: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    color: var(--poster-ink-soft);
    font-size: .73rem;
}

#pageFooter.footer-refreshed .footer-meta-main { grid-column: auto; gap: 8px; }
#pageFooter.footer-refreshed .footer-literary {
    display: flex;
    flex-direction: column;
    order: 5;
    align-self: stretch;
    min-width: 0;
    gap: 28px;
}
#pageFooter.footer-refreshed .footer-story-motto {
    margin: 0;
    color: var(--poster-ink);
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: .06em;
    text-align: left;
}
#pageFooter.footer-refreshed .footer-story-motto span { display: block; }
#pageFooter.footer-refreshed .footer-quote {
    grid-column: auto;
    min-width: 0;
    margin: auto 0 0;
    color: var(--poster-ink-soft);
    line-height: 2;
}
#pageFooter.footer-refreshed .footer-quote-source { color: var(--poster-ink-soft); }
#pageFooter.footer-refreshed .footer-row { gap: 4px 16px; }
#pageFooter.footer-refreshed .footer-row--copy,
#pageFooter.footer-refreshed .footer-row--beian { overflow-wrap: anywhere; }
#pageFooter.footer-refreshed .footer-row--copy { order: 0; }
#pageFooter.footer-refreshed .footer-row--legal { order: 1; }
#pageFooter.footer-refreshed .footer-row--beian { order: 2; }
#pageFooter.footer-refreshed .footer-row--stats { order: 3; }
#pageFooter.footer-refreshed .footer-row--records { order: 4; font-size: .7rem; }
#pageFooter.footer-refreshed .beian-link { color: inherit; }
#pageFooter.footer-refreshed .footer-stat-divider { padding: 0 8px; }
#pageFooter.footer-refreshed #footerStats { font-variant-numeric: tabular-nums; }
#pageFooter.footer-refreshed .wechat-container:focus-within .wechat-popup { display: block; }

#pageFooter.footer-refreshed a:focus-visible,
#pageFooter.footer-refreshed [tabindex="0"]:focus-visible {
    outline: 2px solid rgba(64, 49, 107, .55);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Use the installed Split Text lines effect without transforming entire columns. */
#pageFooter.footer-refreshed split-text[data-footer-split] {
    perspective: none;
    font: inherit;
    letter-spacing: inherit;
}

#pageFooter.footer-refreshed :focus-within > split-text[data-footer-split] {
    visibility: visible;
}

#pageFooter.footer-refreshed :focus-within > split-text[data-footer-split] .split-text-word-inner {
    animation: none;
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    #pageFooter.footer-refreshed split-text[data-footer-split] { visibility: visible; }
}

@media (max-width: 1100px) and (min-width: 961px) {
    #pageFooter.footer-refreshed .footer-grid { gap: 18px; }
}

@media (max-width: 960px) {
    #pageFooter.footer-refreshed .footer-literary { display: none; }
    body.poster-home #pageFooter.footer-refreshed { padding: 36px 0 24px !important; }
    #pageFooter.footer-refreshed .footer-shell { padding: 0 22px; }
    #pageFooter.footer-refreshed .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 28px 20px !important;
        justify-items: stretch;
    }
    #pageFooter.footer-refreshed .footer-col--brand { display: block; grid-column: 1 / -1; text-align: left; padding: 0; }
    #pageFooter.footer-refreshed .footer-brand { font-size: 1.5rem; }
    #pageFooter.footer-refreshed .footer-tagline { margin: 14px 0 20px; }
    #pageFooter.footer-refreshed .footer-col--explore,
    #pageFooter.footer-refreshed .footer-col--service,
    #pageFooter.footer-refreshed .footer-col--connect,
    #pageFooter.footer-refreshed .footer-col-title { text-align: left; }
    #pageFooter.footer-refreshed .footer-col--connect .footer-col-title { padding-left: 0; }
    #pageFooter.footer-refreshed .footer-list { align-items: stretch; gap: 0; }
    #pageFooter.footer-refreshed .footer-list li { text-align: left; }
    #pageFooter.footer-refreshed .footer-list a,
    #pageFooter.footer-refreshed .footer-list .doudou-trigger {
        display: flex !important;
        min-height: 44px !important;
        padding: 8px 0;
        justify-content: flex-start;
        text-align: left;
        font-size: .8rem;
    }
    #pageFooter.footer-refreshed .footer-icons {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 4px !important;
    }
    #pageFooter.footer-refreshed .footer-icons .footer-icon-link,
    #pageFooter.footer-refreshed .footer-icons #wechat-icon {
        flex-direction: row !important;
        justify-content: flex-start !important;
        width: 100% !important;
        height: auto !important;
        min-height: 44px !important;
        min-width: 0 !important;
        padding: 8px 10px !important;
        gap: 8px !important;
        border: 1px solid rgba(64, 49, 107, .1);
        border-radius: 8px;
        background: rgba(255, 255, 255, .1);
    }
    #pageFooter.footer-refreshed .footer-icon-name { display: block !important; text-align: left; }
    #pageFooter.footer-refreshed .footer-icons .xcx-popup-image {
        left: 0;
        transform: none;
        bottom: calc(100% + 10px);
    }
    #pageFooter.footer-refreshed .footer-companions { margin-top: 12px; gap: 8px; }
    #pageFooter.footer-refreshed .footer-companions-title { width: 100%; text-align: left; }
    #pageFooter.footer-refreshed .footer-companion-links { width: 100%; gap: 0; }
    #pageFooter.footer-refreshed .footer-meta { grid-template-columns: 1fr !important; gap: 0; margin-top: 0; text-align: left; }
    #pageFooter.footer-refreshed .footer-meta-main { align-items: stretch; text-align: left; }
    #pageFooter.footer-refreshed .footer-row { justify-content: flex-start; text-align: left; }
    #pageFooter.footer-refreshed .footer-row--copy,
    #pageFooter.footer-refreshed .footer-row--beian { align-items: flex-start; }
    #pageFooter.footer-refreshed .footer-row--legal a { display: inline-flex; align-items: center; min-height: 44px; }
    #pageFooter.footer-refreshed .footer-row--records { gap: 4px 12px; }
    #pageFooter.footer-refreshed .footer-row--records a { padding: 6px 0; }
    #pageFooter.footer-refreshed .footer-stat-divider { padding: 0 4px; }
}
