/* 页脚样式 */
.site-footer {
    background: linear-gradient(135deg, #4a90e2 0%, #1e5799 100%);
    color: #fff;
    padding: 60px 0 0;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 0 20px;
}

.footer-company {
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

.company-logo img {
    width: 180px;
    margin-bottom: 20px;
    margin-top: -30px;
}

.company-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: -20px;
    margin-left: 10px;
    color: #fff;
}
.company-info p{
    margin-left: 10px;
}

.footer-contact h3,
.footer-links h3,
.footer-social h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
    padding-bottom: 0;
}

.footer-contact {
    margin-left: 20px; /* 添加左边距，让联系我们区域向右移动 */
}

.contact-item {
    margin-bottom: 10px;
}

.contact-item span {
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-left: -10px; /* 添加负的左边距，让产品资源区域向左移动 */
}

.links-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.links-column a:hover {
    color: #fff;
}

.footer-social .social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: flex-start;
}

.footer-social .social-icons:last-of-type {
    margin-bottom: 0;
}

.social-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 18px;
    transition: all 0.3s;
}

.social-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.social-icon img {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 120px;
    height: 120px;
    border: 5px solid #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.social-icon:hover img {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 社交媒体图标颜色 */
.icon-wechat { color: #07C160; }
.icon-qq { color: #12B7F5; }
.icon-weibo { color: #E6162D; }
.icon-bilibili { color: #FB7299; }
.icon-douyin { color: #000; }

.footer-social .social-icons a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s;
}

.footer-social .social-icons a:hover {
    color: #4a90e2;
}

.qr-code img {
    width: 100px;
    height: 100px;
    margin-bottom: 5px;
}

.qr-code p {
    font-size: 12px;
    color: #b0b0b0;
}

/* 页脚底部样式 */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.1);
}

.copyright-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.copyright {
    display: inline-block;
    text-align: center;
    color: rgba(255,255,255,0.8);
}

.footer-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 页脚底部链接样式 */
.footer-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-footer {
        max-width: 100vw;
        overflow-x: hidden;
    }
    .footer-container {
        grid-template-columns: 1fr; /* 移动端改为单列布局 */
        gap: 30px; /* 减少间距 */
        padding-left: 15px !important; /* 统一为15px */
        padding-right: 15px !important; /* 统一为15px */
        box-sizing: border-box;
        max-width: 100vw;
        overflow-x: hidden;
    }
    .footer-contact,
    .footer-links,
    .footer-social {
        margin-left: 0 !important;
        padding-left: 0 !important; /* 移除额外的padding */
    }

    /* 优化移动端页脚内容显示 */
    .company-logo img {
        width: 150px; /* 减小logo尺寸 */
        margin-bottom: 15px;
        margin-top: -20px;
    }

    .footer-links {
        margin-left: 0 !important; /* 确保产品资源区域不偏移 */
    }

    .footer-contact {
        margin-left: 0 !important; /* 确保联系我们区域不偏移 */
    }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
    .footer-container {
        gap: 20px; /* 进一步减少间距 */
        padding-left: 10px !important; /* 统一为10px */
        padding-right: 10px !important; /* 统一为10px */
    }

    .company-logo img {
        width: 120px; /* 小屏幕进一步减小logo */
        margin-bottom: 10px;
        margin-top: -15px;
    }

    .footer-contact h3,
    .footer-links h3,
    .footer-social h3 {
        font-size: 14px; /* 减小标题字体 */
        margin-bottom: 10px;
    }

    .contact-item span {
        font-size: 12px; /* 减小联系信息字体 */
    }

    .links-column a {
        font-size: 12px; /* 减小链接字体 */
        margin-bottom: 8px;
    }
}

/* 超小屏幕设备适配 */
@media (max-width: 360px) {
    .footer-container {
        gap: 15px; /* 最小间距 */
        padding-left: 8px !important; /* 统一为8px */
        padding-right: 8px !important; /* 统一为8px */
    }

    .company-logo img {
        width: 100px; /* 超小屏幕最小logo */
        margin-bottom: 8px;
        margin-top: -10px;
    }

    .company-info h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .footer-contact h3,
    .footer-links h3,
    .footer-social h3 {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .contact-item span {
        font-size: 11px;
        line-height: 1.3;
    }

    .links-column a {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .social-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* 修改悬浮图标样式 */
.float-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.float-icon i {
    font-size: 24px;
    color: #007BFF;
    margin-bottom: 5px;
}

.float-icon span {
    font-size: 12px;
    color: #333;
}

.float-icon:hover {
    background: #007BFF;
}

.float-icon:hover i,
.float-icon:hover span {
    color: white;
}

/* 调整悬浮容器位置 */
.side-float-container {
    right: 20px;
}

/* 调整二维码弹出位置 */
.hover-image {
    left: -160px;
    border-radius: 8px;
}

/* 高级视觉效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}