/* 多列页脚：结构与内容由本站后台配置，配色直接继承子比主题变量。 */
body.zibll-child-custom-footer-active .footer {
    margin-top: 60px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--yq-footer-text, var(--main-color, #4e5358));
}

body.zibll-child-custom-footer-active .footer > .container-fluid,
body.zibll-child-custom-footer-active .footer > .container-footer,
body.zibll-child-custom-footer-active .footer .container-footer {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.zibll-child-custom-footer,
.zibll-child-custom-footer * {
    box-sizing: border-box;
}

.zibll-child-custom-footer {
    --yq-footer-bg: var(--footer-bg, var(--main-bg-color, #fff));
    --yq-footer-bar-bg: var(--muted-bg-2-color, var(--muted-bg-color, #f6f7f8));
    --yq-footer-text: var(--main-color, #4e5358);
    --yq-footer-muted: var(--muted-2-color, var(--muted-color, #999));
    --yq-footer-border: var(--main-border-color, rgb(50 50 50 / 6%));
    --yq-footer-accent: var(--theme-color, #f04494);
    --yq-footer-social-bg: var(--main-color, #4e5358);
    --yq-footer-social-text: var(--main-bg-color, #fff);
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    overflow: hidden;
    color: var(--yq-footer-text);
    background: linear-gradient(to bottom, transparent 0, var(--yq-footer-bg) 25%);
    font-size: 16px;
    line-height: 1.5;
    transition: color .3s ease, background-color .3s ease;
}

.zibll-child-custom-footer a {
    color: inherit;
    text-decoration: none;
}

.zibll-child-footer-social {
    display: flex;
    width: min(100%, 1200px);
    min-height: 72px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.zibll-child-footer-social-link,
.zibll-child-footer-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: var(--yq-footer-social-text) !important;
    background: var(--yq-footer-social-bg);
    box-shadow: 0 8px 24px rgb(0 0 0 / 16%);
    cursor: pointer;
    transition: color .25s ease, background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.zibll-child-footer-social-link {
    width: 32px;
    height: 32px;
    margin: 20px 27px;
    font-size: 16px;
}

.zibll-child-footer-logo {
    width: 50px;
    height: 50px;
    margin: 0 20px;
    padding: 0;
    overflow: visible;
    font-size: 24px;
}

.zibll-child-footer-logo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.zibll-child-footer-logo[data-footer-tooltip],
.zibll-child-footer-status[data-footer-tooltip] {
    position: relative;
}

.zibll-child-footer-logo[data-footer-tooltip]::after,
.zibll-child-footer-status[data-footer-tooltip]::after {
    position: absolute;
    z-index: 30;
    width: max-content;
    max-width: min(260px, 80vw);
    padding: 7px 10px;
    visibility: hidden;
    border: 1px solid var(--yq-footer-border);
    border-radius: var(--mini-radius, 6px);
    color: var(--yq-footer-text);
    background: var(--main-bg-color, #fff);
    box-shadow: 0 8px 24px rgb(0 0 0 / 16%);
    content: attr(data-footer-tooltip);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.zibll-child-footer-logo[data-footer-tooltip]::after {
    top: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, -4px);
}

.zibll-child-footer-status[data-footer-tooltip]::after {
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translate(-50%, 4px);
}

.zibll-child-footer-logo[data-footer-tooltip]:hover::after,
.zibll-child-footer-logo[data-footer-tooltip]:focus-visible::after,
.zibll-child-footer-status[data-footer-tooltip]:hover::after,
.zibll-child-footer-status[data-footer-tooltip]:focus-visible::after {
    visibility: visible;
    opacity: 1;
}

.zibll-child-footer-logo[data-footer-tooltip]:hover::after,
.zibll-child-footer-logo[data-footer-tooltip]:focus-visible::after {
    transform: translate(-50%, 0);
}

.zibll-child-footer-status[data-footer-tooltip]:hover::after,
.zibll-child-footer-status[data-footer-tooltip]:focus-visible::after {
    transform: translate(-50%, 0);
}

.zibll-child-footer-social-link:hover,
.zibll-child-footer-social-link:focus-visible,
.zibll-child-footer-logo:hover,
.zibll-child-footer-logo:focus-visible {
    color: var(--yq-footer-social-text) !important;
    background: var(--yq-footer-accent);
    box-shadow: 0 10px 28px rgb(0 0 0 / 24%);
    outline: none;
    transform: scale(1.1);
}

.zibll-child-footer-groups {
    display: grid;
    width: min(100%, 1200px);
    min-height: 200px;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    align-items: start;
    gap: 16px;
    margin: 0 0 32px;
    padding: 0 20px;
}

.zibll-child-footer-group {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: none;
    flex-direction: column;
    gap: 16px;
}

.zibll-child-footer-group-heading {
    display: flex;
    min-height: 32px;
    align-items: center;
    gap: 5px;
}

.zibll-child-footer-group-heading h2 {
    margin: 0 0 0 8px;
    padding: 0;
    color: var(--yq-footer-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 32px;
    white-space: nowrap;
}

.zibll-child-footer-group-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.zibll-child-footer-item {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 8px;
    overflow: hidden;
    border-radius: 999px;
    color: var(--yq-footer-text) !important;
    font-size: 16px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

a.zibll-child-footer-item:hover,
a.zibll-child-footer-item:focus-visible {
    color: var(--yq-footer-accent) !important;
    background: color-mix(in srgb, var(--yq-footer-accent) 15%, transparent);
    outline: none;
    transform: translateX(2px);
}

.zibll-child-footer-friend-refresh {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    color: var(--yq-footer-muted);
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, transform .35s ease;
}

.zibll-child-footer-friend-refresh:hover,
.zibll-child-footer-friend-refresh:focus-visible {
    color: var(--yq-footer-accent);
    outline: none;
    transform: rotate(180deg);
}

.zibll-child-footer-friend-item.is-hidden {
    display: none;
}

.zibll-child-footer-bar {
    width: 100%;
    margin-top: 20px;
    border-top: 1px solid var(--yq-footer-border);
    background: var(--yq-footer-bar-bg);
}

.zibll-child-footer-bar-inner {
    display: flex;
    width: min(100%, 1400px);
    min-height: 98px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 auto;
    padding: 20px 30px;
}

.zibll-child-footer-meta {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.zibll-child-footer-copyright {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--yq-footer-text);
    font-size: 16px;
    line-height: 24px;
    white-space: nowrap;
}

.zibll-child-footer-copyright-year,
.zibll-child-footer-copyright-site,
.zibll-child-footer-copyright-site strong {
    font-size: inherit;
    line-height: inherit;
}

.zibll-child-footer-copyright-year {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    font-weight: 400;
}

.zibll-child-footer-copyright-site {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--yq-footer-text) !important;
    font-weight: 400;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.zibll-child-footer-copyright-site strong {
    font-weight: 700;
}

.zibll-child-footer-copyright-site:hover,
.zibll-child-footer-copyright-site:focus-visible {
    color: var(--yq-footer-accent) !important;
    background: color-mix(in srgb, var(--yq-footer-accent) 12%, transparent);
    outline: none;
    transform: translateY(-1px);
}

.zibll-child-footer-copyright-site img {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    object-fit: cover;
    transition: box-shadow .2s ease, transform .2s ease;
}

.zibll-child-footer-copyright-site:hover img,
.zibll-child-footer-copyright-site:focus-visible img {
    box-shadow: 0 3px 10px rgb(0 0 0 / 20%);
    transform: scale(1.08);
}

.zibll-child-footer-records {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    color: var(--yq-footer-muted);
    font-size: 13px;
}

.zibll-child-footer-records > span,
.zibll-child-footer-records > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.zibll-child-footer-record,
.zibll-child-footer-status {
    color: var(--yq-footer-muted) !important;
}

a.zibll-child-footer-record:hover,
a.zibll-child-footer-status:hover {
    color: var(--yq-footer-accent) !important;
}

.zibll-child-footer-status i {
    position: relative;
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgb(73 213 118 / 18%);
}

.zibll-child-footer-status i::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #49d576;
    content: "";
}

.zibll-child-footer-status.is-warning i {
    background: rgb(255 168 38 / 18%);
}

.zibll-child-footer-status.is-warning i::after {
    background: #ffa826;
}

.zibll-child-footer-status.is-error i {
    background: rgb(255 82 82 / 18%);
}

.zibll-child-footer-status.is-error i::after {
    background: #ff5252;
}

.zibll-child-footer-bottom-links {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.zibll-child-footer-bottom-links a,
.zibll-child-footer-bottom-links span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--yq-footer-text) !important;
    font-size: 16px;
    white-space: nowrap;
    transition: color .2s ease, transform .2s ease;
}

.zibll-child-footer-bottom-links a:hover,
.zibll-child-footer-bottom-links a:focus-visible {
    color: var(--yq-footer-accent) !important;
    outline: none;
    transform: translateY(-2px);
}

@media (max-width: 1100px) {
    .zibll-child-footer-social-link {
        margin-right: 18px;
        margin-left: 18px;
    }

    .zibll-child-footer-groups {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        row-gap: 32px;
    }

    .zibll-child-footer-bar-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .zibll-child-footer-meta,
    .zibll-child-footer-records,
    .zibll-child-footer-bottom-links {
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    body.zibll-child-custom-footer-active .footer {
        margin-top: 40px !important;
    }

    .zibll-child-custom-footer {
        gap: 28px;
        background: linear-gradient(to bottom, transparent 0, var(--yq-footer-bg) 12%);
    }

    .zibll-child-footer-social {
        flex-wrap: wrap;
        padding: 0 12px;
    }

    .zibll-child-footer-social-link {
        width: 34px;
        height: 34px;
        margin: 12px;
    }

    .zibll-child-footer-logo {
        order: -1;
        width: 50px;
        height: 50px;
        margin: 12px calc(50% - 25px) 4px;
    }

    .zibll-child-footer-groups {
        display: none;
    }

    .zibll-child-footer-bar {
        margin-top: 8px;
    }

    .zibll-child-footer-bar-inner {
        min-height: 0;
        gap: 16px;
        padding: 22px 18px;
    }

    .zibll-child-footer-copyright {
        flex-wrap: wrap;
        justify-content: center;
        gap: 7px;
        white-space: normal;
    }

    .zibll-child-footer-bottom-links {
        gap: 10px 16px;
    }
}

@media (min-width: 768px) {
    body.zibll-child-custom-footer-hide-desktop .footer {
        display: none !important;
    }
}

@media (max-width: 767px) {
    body.zibll-child-custom-footer-hide-mobile .footer {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zibll-child-footer-social-link,
    .zibll-child-footer-logo,
    .zibll-child-footer-item,
    .zibll-child-footer-friend-refresh,
    .zibll-child-footer-copyright-site,
    .zibll-child-footer-copyright-site img,
    .zibll-child-footer-bottom-links a {
        transition: none;
    }
}

@supports not (background: color-mix(in srgb, black 50%, white)) {
    a.zibll-child-footer-item:hover,
    a.zibll-child-footer-item:focus-visible {
        background: rgb(255 200 72 / 14%);
    }

    .zibll-child-footer-copyright-site:hover,
    .zibll-child-footer-copyright-site:focus-visible {
        background: rgb(127 127 127 / 12%);
    }
}
