/* 全站共用页脚（首页同款） */

footer.lb-site-footer {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    clear: both;
    float: none;
    position: relative;
    background: #eff4ff;
    padding: 50px 0;
    color: #647993;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 15px;
    line-height: 1.75;
    text-align: left;
}

footer.lb-site-footer:has(.lb-friend-links) {
    padding-top: 0;
}

.lb-site-footer *,
.lb-site-footer *::before,
.lb-site-footer *::after {
    box-sizing: border-box;
}

.lb-site-footer a {
    color: inherit;
    text-decoration: none;
}

.lb-site-footer a:hover {
    text-decoration: none;
}

.lb-site-footer a:focus-visible {
    outline: 3px solid #faad50;
    outline-offset: 3px;
}

.lb-site-footer h2,
.lb-site-footer p {
    margin: 0;
    color: inherit;
    font-weight: inherit;
}

.lb-site-footer .lb-foot-wrap {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
}

.lb-friend-links {
    margin: 0 0 40px;
    padding: 56px 0 48px;
    border: 0;
    background: #f3f4ff;
    overflow: hidden;
}

.lb-friend-links > .lb-foot-wrap {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.lb-friend-heading {
    display: block;
    margin: 0 0 36px;
    text-align: center;
}

.lb-friend-heading h2 {
    margin: 0;
    display: block;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    color: #171a1d;
}

.lb-friend-heading p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #8b95a8;
}

.lb-friend-wall {
    position: relative;
    overflow: hidden;
}

.lb-friend-wall::before,
.lb-friend-wall::after {
    content: "";
    position: absolute;
    top: -10%;
    z-index: 1;
    width: 140px;
    height: 120%;
    pointer-events: none;
}

.lb-friend-wall::before {
    left: 0;
    background: linear-gradient(90deg, #f3f4ff 18%, rgba(243, 244, 255, 0));
}

.lb-friend-wall::after {
    right: 0;
    background: linear-gradient(270deg, #f3f4ff 18%, rgba(243, 244, 255, 0));
}

.lb-friend-row {
    display: flex;
    width: max-content;
    animation: lb-friend-marquee 48s linear infinite;
}

.lb-friend-wall:hover .lb-friend-row,
.lb-friend-wall:focus-within .lb-friend-row {
    animation-play-state: paused;
}

.lb-friend-track {
    display: flex;
    flex: none;
}

.lb-friend-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex: none;
    width: 248px;
    height: 88px;
    margin: 0 24px 0 0;
    padding: 14px 16px;
    background: #fff;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    color: #171a1d;
    transition: box-shadow .22s ease;
}

.lb-friend-card:hover,
.lb-friend-card:focus-visible {
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 26, 29, 0.08);
    color: #171a1d;
}

.lb-friend-picture,
.lb-friend-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f7ff;
    border: 1px solid #e7eef8;
}

.lb-friend-picture img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    display: block;
}

.lb-friend-icon {
    font-size: 18px;
    font-weight: 700;
    color: #0d76fd;
    background: #eaf3ff;
}

.lb-friend-icon.is-1 { background: #efebff; color: #8062d6; }
.lb-friend-icon.is-2 { background: #e6f7f3; color: #159981; }
.lb-friend-icon.is-3 { background: #fff2e4; color: #d68d30; }

.lb-friend-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

.lb-friend-name,
.lb-friend-desc {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lb-friend-name {
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
    color: #171a1d;
}

.lb-friend-desc {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #8b95a8;
}

@keyframes lb-friend-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.lb-foot-row {
    display: flex;
    gap: 80px;
    justify-content: space-between;
}

.lb-foot-brand {
    flex: none;
}

.lb-foot-brand img {
    display: block;
    height: 72px;
    width: auto;
    max-width: none;
}

.lb-foot-links {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 12px 30px;
    font-size: 13px;
    align-content: start;
}

.lb-foot-contact {
    font-size: 13px;
    line-height: 1.9;
    color: #6d8098;
}

.lb-foot-contact a {
    color: #0D76FD;
}

.lb-foot-copy {
    font-size: 12px;
    line-height: 1.75;
    color: #8090a5;
}

.lb-foot-legal {
    margin-top: 8px;
    font-size: 12px;
    color: #8090a5;
    line-height: 1.8;
}

.lb-foot-legal a {
    color: #5d7594;
}

@media (max-width: 950px) {
    .lb-site-footer .lb-foot-wrap {
        width: calc(100% - 48px);
    }

    .lb-foot-row {
        gap: 35px;
    }
}

@media (max-width: 700px) {
    .lb-friend-links {
        padding: 36px 0 28px;
    }

    .lb-friend-heading {
        margin-bottom: 22px;
    }

    .lb-friend-heading h2 {
        font-size: 22px;
    }

    .lb-friend-card {
        width: 220px;
        height: 76px;
        margin-right: 14px;
        padding: 12px;
        gap: 10px;
    }

    .lb-friend-picture,
    .lb-friend-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 16px;
    }

    .lb-friend-name {
        font-size: 14px;
    }
}

@media (max-width: 680px) {
    .lb-site-footer .lb-foot-wrap {
        width: calc(100% - 40px);
    }

    .lb-foot-row {
        flex-direction: column;
        gap: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lb-friend-row {
        animation: none;
    }

    .lb-friend-card {
        transition: none;
    }
}
