/* 客服按钮样式 */
.customer-service-btn {
    position: fixed;
    left: 10px;
    top: 60%;
    transform: translateY(-50%);
    background-color: #6b07d1;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-service-btn:hover {
    background-color: #0056b3;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* 客服面板样式 */
.customer-service-panel {
    position: fixed;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px;
    width: 180px;
    z-index: 9998;
    display: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.customer-service-panel.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* 面板头部样式 */
.panel-header {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    color: #343a40;
    font-size: 16px;
    position: relative;
    padding-bottom: 6px;
    border-bottom: 1px solid #e9ecef;
}

/* 关闭按钮样式 */
.close-btn {
    position: absolute;
    top: -5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #343a40;
    background-color: #f8f9fa;
}

/* 面板内容样式 */
.panel-content {
    text-align: center;
}

.panel-content img {
    width: 130px;
    height: 130px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    padding: 3px;
    border-radius: 5px;
    background-color: white;
}

/* 联系信息样式 */
.panel-contact {
    margin-top: 5px;
    font-size: 16px;
    color: #495057;
    text-align: center;
}

.panel-contact p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-contact i {
    color: #007bff;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 客服链接样式 */
.service-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.service-links a {
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.service-links a:hover {
    color: #0056b3;
}

.service-links i {
    margin-right: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .customer-service-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
        left: 10px;
    }
    
    .customer-service-panel {
        left: 70px;
        width: 150px;
        padding: 6px;
    }
    
    .panel-content img {
        width: 130px;
        height: 130px;
    }
    
    .panel-contact {
        font-size: 14px;
    }
}