/* Footer */
.site-footer {
    background: #0F172A;
    color: #fff;
    padding: 40px 0;
    margin-top: 0 !important;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: all 0.3s;
}

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

/* 底部社交图标与弹窗 */
.footer-social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-item {
    position: relative;
    cursor: pointer;
}

.social-icon-box {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon-box svg {
    width: 18px;
    height: 18px;
}

.social-item:hover .social-icon-box {
    background: var(--beisen-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--beisen-primary-rgb), 0.3);
}

.social-popover {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 180px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    text-align: center;
}

.social-popover::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
}

.social-item:hover .social-popover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.popover-qr {
    width: 150px;
    height: 150px;
    margin: 0 auto 10px;
    background: #F1F5F9;
    padding: 5px;
    border-radius: 8px;
}

.popover-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.popover-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.popover-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* 全局悬浮工具栏 */
.site-float-tools {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-tool-item {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(var(--beisen-primary-rgb), 0.15);
    border-radius: 14px;
    color: #475569;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.float-tool-item .tool-label {
    font-size: 10px;
    font-weight: 700;
    margin-top: 2px;
}

.float-tool-item:hover {
    background: var(--beisen-primary);
    color: #fff;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(var(--beisen-primary-rgb), 0.3);
    border-color: var(--beisen-primary);
}

.float-tool-item.back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.float-tool-item.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.float-tool-item.lead-trigger-btn {
    background: var(--beisen-btn-gradient, linear-gradient(135deg, #2563EB 0%, #7C3AED 100%));
    color: #fff;
    border-color: transparent;
    box-shadow: none;
}

.float-tool-item.lead-trigger-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: none;
}

@media (max-width: 768px) {
    .site-float-tools {
        right: 20px;
        bottom: 20px;
        gap: 10px;
    }
    .float-tool-item {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    .float-tool-item .tool-label {
        display: none;
    }
    .footer-social-links { justify-content: center; }
    .site-footer { padding: 30px 0; font-size: 13px; }
}
