/* 易代理统一页脚 — 主色 #0fbbd8 / #067db2 */

.site-footer.footer,
.footer.site-footer {
    margin-top: auto;
    background: #152028;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.6;
}

.site-footer__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.site-footer__main {
    padding: 48px 0 36px;
}

.site-footer__main .site-footer__container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px 48px;
}

.site-footer__brand {
    flex: 0 0 200px;
    min-width: 0;
}

.site-footer__logo-link {
    display: inline-block;
    margin-bottom: 12px;
    opacity: 0.95;
    transition: opacity 0.2s;
}

.site-footer__logo-link:hover {
    opacity: 1;
}

.site-footer__logo {
    display: block;
    height: auto;
    max-width: 130px;
    filter: brightness(1.05);
}

.site-footer__slogan {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

.site-footer__cols {
    flex: 1 1 520px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 32px;
    min-width: 0;
}

.site-footer__heading {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

.site-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__list li + li {
    margin-top: 10px;
}

.site-footer__list a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__list a:hover {
    color: #0fbbd8;
    text-decoration: none;
}

.site-footer__list--contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer__list--contact i {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    color: #0fbbd8;
    transform: translateY(-1px);
}

.site-footer__bottom {
    padding: 24px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
}

.site-footer__disclaimer {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.site-footer__legal {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.site-footer__legal a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
}

.site-footer__legal a:hover {
    color: #0fbbd8;
    text-decoration: none;
}

.site-footer__beian {
    display: flex;
    justify-content: center;
}

.site-footer__beian-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #939393;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__beian-link:hover {
    color: #b0b0b0;
    text-decoration: none;
}

.site-footer__beian-link img {
    display: block;
    flex-shrink: 0;
}

/* 兼容旧版 .footer 选择器（无 site-footer 结构的遗留页） */
.footer:not(.site-footer) {
    background: #152028;
    color: rgba(255, 255, 255, 0.82);
}

.footer:not(.site-footer) a {
    color: inherit;
}

.footer:not(.site-footer) .icon-img {
    width: 15px;
    height: 15px;
    position: absolute;
    margin-left: -18px;
    margin-top: 3px;
}

/* ===== 移动端全站统一页脚（991px 及以下） ===== */
@media (max-width: 991px) {
    footer.site-footer,
    .footer.site-footer,
    .site-footer.footer {
        box-sizing: border-box;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        background: #152028 !important;
        color: rgba(255, 255, 255, 0.82) !important;
        text-align: left !important;
        float: none !important;
        position: relative !important;
        height: auto !important;
        overflow: hidden;
    }

    /* 覆盖 zhima/common.css 遗留 .footer 子结构（若被误嵌套） */
    .site-footer > .footer-box,
    .site-footer > .footer_main,
    .site-footer > .authentication,
    .site-footer .website-nav,
    .site-footer.new-footer > .footer-main {
        display: none !important;
    }

    .site-footer__container {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-footer__main {
        padding: 28px 0 22px;
    }

    .site-footer__main .site-footer__container {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .site-footer__brand {
        flex: none;
        width: 100%;
        text-align: left;
    }

    .site-footer__logo-link {
        display: inline-block;
        margin-bottom: 8px;
    }

    .site-footer__cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px 8px;
        width: 100%;
        flex: none;
    }

    /* 前三列（企业信息 / 旗下产品 / 商务合作）同一行三列 */
    .site-footer__cols .site-footer__col:nth-child(1),
    .site-footer__cols .site-footer__col:nth-child(2),
    .site-footer__cols .site-footer__col:nth-child(3) {
        grid-column: auto;
        min-width: 0;
    }

    /* 联系我们单独占一行 */
    .site-footer__cols .site-footer__col:last-child {
        grid-column: 1 / -1;
    }

    .site-footer__heading {
        margin-bottom: 8px;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-footer__list li + li {
        margin-top: 6px;
    }

    .site-footer__list a {
        font-size: 12px;
        line-height: 1.45;
        word-break: break-all;
    }

    .site-footer__list--contact {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
    }

    .site-footer__list--contact li {
        margin: 0 !important;
        min-width: 0;
        font-size: 12px;
        align-items: center;
    }

    /* 第一行：电话 | 服务时间；第二行：QQ1 | QQ2 */
    .site-footer__list--contact li:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .site-footer__list--contact li:nth-child(4) {
        grid-column: 2;
        grid-row: 1;
    }

    .site-footer__list--contact li:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .site-footer__list--contact li:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .site-footer__list--contact li span {
        min-width: 0;
        word-break: break-all;
    }

    .site-footer__bottom {
        padding: 18px 0 calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .site-footer__disclaimer,
    .site-footer__legal {
        text-align: left;
        font-size: 11px;
        line-height: 1.65;
    }

    .site-footer__legal {
        margin-bottom: 12px;
    }

    .site-footer__beian {
        justify-content: flex-start;
    }

    /* 各页面容器内的 footer 布局一致 */
    .home-page .site-footer,
    .home-page .footer.site-footer,
    .ov-page .site-footer,
    .ov-page .footer.site-footer,
    .buy-page .site-footer,
    .buy-page .footer.site-footer,
    body.site-page > .site-footer,
    body.site-page > .footer.site-footer {
        margin-top: auto;
        flex-shrink: 0;
    }

    /* 覆盖 domestic-package 等对 .footer .row 的旧规则（不影响 site-footer 结构） */
    .buy-page .footer.site-footer .row,
    .home-page .footer.site-footer .row,
    .ov-page .footer.site-footer .row {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        text-align: left !important;
    }
}

@media (max-width: 575px) {
    .site-footer__main {
        padding: 24px 0 18px;
    }

    .site-footer__brand {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .site-footer__logo {
        max-width: 110px;
    }

    .site-footer__slogan {
        font-size: 12px;
    }

    .site-footer__cols {
        gap: 14px 6px;
    }

    .site-footer__heading {
        font-size: 12px;
    }

    .site-footer__list a {
        font-size: 11px;
    }
}

/* 遗留页脚（无 site-footer 结构）移动端基础适配 */
@media (max-width: 991px) {
    .footer:not(.site-footer) {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 16px;
        text-align: left;
        box-sizing: border-box;
    }

    .footer:not(.site-footer) .footer-box {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
        float: none !important;
    }
}
