/* 浮动客服样式 */
.float-service {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.service-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 80px;
    transition: all 0.4s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    width: 280px;
}

.service-header {
    background: linear-gradient(135deg, #2f318b, #325DEB);
    color: white;
    padding: 20px;
    text-align: center;
}

.service-header h3 {
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.service-header h3 i {
    font-size: 1.5rem;
}

.service-items {
    padding: 15px 0;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:hover {
    background-color: #f8f9fa;
}

.service-item i {
    width: 40px;
    height: 40px;
    background: #f1f2f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #325DEB;
    transition: all 0.3s ease;
}

.service-item:hover i {
    background: #325DEB;
    color: white;
    transform: scale(1.1);
}

.item-details {
    margin-left: 15px;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.item-details h4 {
    font-size: 1rem;
    margin-bottom: 3px;
    color: #2c3e50;
}

.item-details p {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin: 0;
    text-align: left;
}

/* 二维码弹出层 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalAppear 0.4s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #e74c3c;
}

.modal-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.qrcode {
    width: 200px;
    height: 200px;
    background: #f8f9fa;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
}

.qrcode img {
    max-width: 100%;
    max-height: 100%;
}

.modal-text {
    color: #7f8c8d;
    font-size: 1rem;
    margin-top: 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .float-service {
        right: 15px;
    }

    .service-box {
        width: 60px;
    }

    .service-box:hover {
        width: 260px;
    }

    .service-header h3 {
        font-size: 1rem;
    }

    .service-item {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .float-service {
        top: auto;
        bottom: 20px;
        transform: none;
        right: 20px;
    }

    .service-box {
        width: 50px;
    }

    .service-box:hover {
        width: 240px;
        transform: translateY(-5px);
    }

    .service-header {
        padding: 15px 10px;
    }

    .service-header h3 {
        font-size: 0.9rem;
    }

    .service-header h3 i {
        font-size: 1.2rem;
    }

    .service-item {
        padding: 10px 15px;
    }

    .item-details h4 {
        font-size: 0.9rem;
    }

    .item-details p {
        font-size: 0.8rem;
    }
}