/* ===== 页脚 ===== */
.site-footer {
    background: #0d6efd;
    padding-top: 50px;
    /*padding-bottom: 40px;*/
    color: #fff;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-brand {
    flex: 0 0 260px;
    text-align: center;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 14px;
}

.footer-brand .logo-icon {
    height: 150px;
    width: 150px;
    background: white;
    padding: 5px;
    border-radius: 70%;
    object-fit: contain;
}

.footer-brand .website {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.footer-nav,
.footer-contact,
.footer-follow {
    flex: 1;
}

.footer-nav h4,
.footer-contact h4,
.footer-follow h4 {
    font-size: 18px;
    font-weight: bold;
    color: #c5f015;
    margin-bottom: 22px;
}

.footer-nav ul li {
    margin-bottom: 16px;
}

.footer-nav ul li a {
    font-size: 15px;
    color: #fff;
    transition: color 0.3s;
}

.footer-nav ul li a:hover {
    color: #c5f015;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 15px;
    color: #fff;
}

.footer-contact .contact-item .icon {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    margin-top: 2px;
    fill: #fff;
}

.footer-contact .contact-item .text {
    line-height: 1.6;
}

.footer-follow .qr-codes {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.footer-follow .qr-code-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 8px;
    padding: 8px 8px 6px;
}

.footer-follow .qr-code-item img {
    width: 100px;
    height: 100px;
    display: block;
}

.footer-follow .qr-code-item span {
    font-size: 13px;
    color: #333;
}

.footer-follow .social-icons {
    display: flex;
    gap: 12px;
}

.footer-follow .social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #29c5e6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.3s;
}

.footer-follow .social-icon:hover {
    opacity: 0.85;
}

.footer-follow .social-icon img {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    text-align: center;
    padding: 16px 0;
    color: #A2BA80;
    font-size: 13px;
    background: #AFFF60 ;
}

.footer-bottom a {
    color: #A2BA80;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ===== 右侧悬浮工具栏 ===== */
.float-toolbar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 8px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 30px;
    z-index: 999;
}

.float-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    /*background: rgba(255, 255, 255, 0.25);*/
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    border: none;
    transition: background 0.3s;
}

.float-item:hover {
    background: rgba(255, 255, 255, 0.45);
}

.float-item svg {
    width: 33px;
    height: 33px;
    fill: #fff;
}

.float-top {
    background: #0d6efd;
}

.float-top svg {
    fill: #c5f015;
}

.float-top:hover {
    background: #0b5ed7;
}

.float-qr {
    display: none;
    position: absolute;
    right: 54px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 126px;
    box-sizing: content-box;
}

.float-qr img {
    width: 110px;
    height: 110px;
    display: block;
    flex-shrink: 0;
}

.float-wechat:hover .float-qr {
    display: block;
}

@media (max-width: 768px) {
    .float-toolbar {
        right: 10px;
        gap: 6px;
    }

    .float-item {
        width: 38px;
        height: 38px;
    }

    .float-item svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 992px) {
    .footer-main {
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-brand {
        flex: 0 0 100%;
    }

    .footer-nav,
    .footer-contact,
    .footer-follow {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding-top: 30px;
        /*padding-bottom: 24px;*/
    }

    .footer-main {
        flex-direction: column;
        gap: 24px;
    }

    .footer-brand {
       flex: 0 0 100%;
        margin: 0 auto;
    }

    .footer-brand .logo-icon {
        height: 90px;
        width: 90px;
    }

    .footer-nav,
    .footer-contact,
    .footer-follow {
        flex: 0 0 100%;
    }

    .footer-nav h4,
    .footer-contact h4,
    .footer-follow h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }

    .footer-nav ul li {
        width: 50%;
        margin-bottom: 10px;
    }

    .footer-nav ul li a {
        font-size: 14px;
    }

    .footer-contact .contact-item {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .footer-follow .qr-code-item img {
        width: 80px;
        height: 80px;
    }

    .footer-bottom {
        padding: 12px 0;
        font-size: 12px;
    }
}
