/**
 * 在线客服悬浮框样式 - 简约固定显示版本
 */

/* 主容器 */
.customer-service-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* 客服组件主体 */
.customer-service-widget {
    width: 150px;
    background: linear-gradient(135deg, #00b4ff 0%, #0099e6 100%);
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 标题栏 */
.service-header {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-header i {
    font-size: 16px;
}

/* 服务列表 */
.service-list {
    background: white;
}

/* 服务项目 */
.service-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:hover {
    background: #f8f9fa;
}

/* 服务头像 */
.service-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

.service-item:nth-child(1) .service-avatar {
    background: #4ecdc4;
}

.service-item:nth-child(2) .service-avatar {
    background: #45b7d1;
}

.service-item:nth-child(3) .service-avatar {
    background: #f9ca24;
}

.service-item:nth-child(4) .service-avatar {
    background: #6c5ce7;
}

/* 服务标题 */
.service-title {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}

/* 二维码区域 */
.qr-section {
    background: white;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.service-qr {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .customer-service-widget {
        width: 130px;
    }
    
    .service-header {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .service-item {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .service-avatar {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .service-title {
        font-size: 12px;
    }
    
    .qr-section {
        padding: 12px;
    }
    
    .service-qr {
        width: 80px;
        height: 80px;
    }
}

/* 提示动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(0, 180, 255, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}
