/* Footer优化样式 */
.site-footer {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    color: #b0b8c4;
    margin-top: 0;
}

.footer-links {
    padding: 30px 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.footer-col h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 5px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #667eea);
    border-radius: 1px;
}

.footer-col ul li {
    margin-bottom: 2px;
    line-height: 1.2;
}

.footer-col ul li a {
    color: #b0b8c4;
    transition: all 0.3s ease;
    display: block;
    padding: 0;
    line-height: 1.2;
}

.footer-col ul li a:hover {
    color: #3498db;
    transform: translateX(5px);
}

/* 联系方式列优化 */
.footer-col-contact {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0 0 6px 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 2px;
    padding: 0;
    line-height: 1.1;
}

.contact-icon {
    font-size: 13px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    line-height: 1;
}

.contact-text {
    color: #b0b8c4;
    font-size: 12px;
    line-height: 1.1;
}

/* 二维码区域优化 */
.footer-qrcode {
    text-align: center;
    margin-top: 4px;
}

.qrcode-wrapper {
    display: inline-block;
    padding: 4px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 3px;
}

.qrcode-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.footer-qrcode img {
    width: 95px;
    height: 95px;
    border-radius: 4px;
    display: block;
    object-fit: cover;
}

.footer-qrcode p {
    font-size: 11px;
    color: #b0b8c4;
    margin: 0;
    line-height: 1.2;
}

/* Footer底部 */
.footer-bottom {
    padding: 12px 0;
}

.footer-nav {
    text-align: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-nav a {
    margin: 0;
    font-size: 13px;
    color: #b0b8c4;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: #3498db;
}

.footer-nav a:not(:last-child)::after {
    content: '|';
    margin-left: 15px;
    color: rgba(255, 255, 255, 0.2);
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.3;
}

.copyright p {
    margin: 0;
}

/* 备案号链接样式 */
.copyright a {
    color: #7f8c8d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.copyright a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* 在线客服优化 */
.online-service {
    position: fixed;
    right: 30px;
    bottom: 100px;
    z-index: 1000;
}

.service-btn {
    background: linear-gradient(135deg, #3498db 0%, #667eea 100%);
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
}

.service-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.5);
}

.service-icon {
    font-size: 24px;
    line-height: 1;
}

.service-text {
    font-size: 11px;
    margin-top: 4px;
    line-height: 1;
}

.service-popup {
    display: none;
    position: absolute;
    right: 80px;
    bottom: 0;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    width: 300px;
    border: 1px solid #ecf0f1;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-popup h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
    text-align: center;
}

.service-time,
.service-phone,
.service-qq {
    margin-bottom: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.service-time:last-child,
.service-phone:last-child,
.service-qq:last-child {
    border-bottom: none;
}

.service-wechat {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.service-qrcode-wrapper {
    display: inline-block;
    padding: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

.service-wechat img {
    width: 160px;
    height: 160px;
    border-radius: 6px;
    display: block;
    object-fit: cover;
}

.service-wechat p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .footer-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-col-contact {
        grid-column: span 2;
    }

    .footer-nav {
        flex-wrap: wrap;
    }

    .footer-nav a:not(:last-child)::after {
        display: none;
    }

    .footer-nav a {
        margin: 5px 10px;
    }
}

@media (max-width: 768px) {
    .footer-cols {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col-contact {
        grid-column: span 1;
    }

    .footer-links {
        padding: 20px 0 12px;
    }

    .footer-bottom {
        padding: 10px 0;
    }

    .copyright p:last-child br {
        display: none;
    }

    .online-service {
        right: 20px;
        bottom: 80px;
    }

    .service-btn {
        width: 60px;
        height: 60px;
    }

    .service-icon {
        font-size: 20px;
    }

    .service-text {
        font-size: 10px;
    }

    .service-popup {
        right: 70px;
        width: 260px;
    }
}

@media (max-width: 480px) {
    .footer-qrcode img,
    .qrcode-wrapper {
        width: 100px;
        height: 100px;
    }

    .service-wechat img {
        width: 140px;
        height: 140px;
    }
}
