/* 前台官网统一页脚（hv2-ft）；帮助/协议等旧页只需引本文件即可 */

.hv2-ft {
    box-sizing: border-box;
    padding: 64px 0 28px;
    color: #b6c6d8;
    background-color: #000000;
}

.hv2-ft *,
.hv2-ft *::before,
.hv2-ft *::after {
    box-sizing: border-box;
}

.hv2-ft .hv2-wrap {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.hv2-ft-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.6fr;
    gap: 40px;
}

.hv2-ft-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.hv2-ft-brand img {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.hv2-ft-brand span {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.hv2-ft-desc {
    margin: 0;
    max-width: 380px;
    font-size: 14px;
    line-height: 1.9;
}

.hv2-ft h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 18px;
}

.hv2-ft ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hv2-ft a {
    color: inherit;
    text-decoration: none;
}

.hv2-ft a:hover {
    color: #fff;
}

.hv2-ft li,
.hv2-ft-contact>div {
    margin-bottom: 12px;
    font-size: 14px;
}

.hv2-ft-wechat {
    position: relative;
}

.hv2-ft-wechat-btn {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    line-height: 1.7;
    text-align: left;
    cursor: pointer;
}

.hv2-ft-wechat-btn:hover,
.hv2-ft-wechat-btn:focus-visible {
    color: #fff;
}

.hv2-ft-wechat-pop {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    z-index: 30;
    padding: 8px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}

.hv2-ft-wechat-pop img {
    display: block;
    width: min(200px, 72vw);
    height: auto;
}

@media (hover: hover) {
    .hv2-ft-wechat:hover .hv2-ft-wechat-pop {
        display: block;
    }
}

.hv2-ft-wechat-btn:focus-visible+.hv2-ft-wechat-pop {
    display: block;
}

.hv2-ft-wechat.is-open .hv2-ft-wechat-pop {
    display: block;
}

.hv2-ft-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 13px;
}

.hv2-ft-icp {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    align-items: center;
}

.hv2-ft-icp img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* 短页粘底：协议/关于页、行业动态等 body 高度不足时，footer 贴视口底部 */
body.agreement-page,
body.industry-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.agreement-page>.hv2-ft,
body.industry-page>.hv2-ft {
    margin-top: auto;
    flex-shrink: 0;
}

.index-float-btns {
    align-items: center;
}

.index-float-kefu {
    display: block;
    width: 130px;
    max-width: 28vw;
    height: auto;
    max-height: min(46vh, 340px);
    object-fit: contain;
}

@media (max-width: 640px) {
    .index-float-kefu {
        width: 78px;
        max-height: min(42vh, 260px);
    }
}

@media (max-width: 900px) {
    .hv2-ft {
        padding: 48px 0 28px;
    }

    .hv2-ft-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hv2-ft-grid>div:first-child {
        grid-column: auto;
    }

    .hv2-ft-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}