.kefu-wrapper {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

.kefu-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8f67 100%);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #fff;
}

.kefu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.5);
}

.kefu-btn.active {
    background: linear-gradient(135deg, #ff8f67 0%, #ff6b9d 100%);
}

.kefu-avatar {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.kefu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kefu-avatar-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 20px;
}

.kefu-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ccc;
    border: 2px solid #fff;
}

.kefu-status.online {
    background: #52c41a;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(82, 196, 26, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(82, 196, 26, 0);
    }
}

.kefu-title {
    position: absolute;
    top: -28px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.kefu-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.4);
}

.kefu-panel {
    display: none;
    position: absolute;
    right: 80px;
    bottom: 0;
    width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.kefu-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8f67 100%);
}

.kefu-panel-title {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.panel-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.panel-avatar-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
}

.kefu-close {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kefu-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.kefu-panel-content {
    padding: 15px;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.service-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 12px;
}

.qq-icon {
    background: linear-gradient(135deg, #e8f4fd 0%, #d4eafd 100%);
}

.service-icon svg {
    width: 22px;
    height: 22px;
}

.service-info {
    flex: 1;
}

.service-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    margin-bottom: 3px;
}

.service-link {
    font-size: 12px;
    color: #12B7F5;
    text-decoration: none;
    font-family: 'Microsoft YaHei', sans-serif;
}

.service-link:hover {
    text-decoration: underline;
}

.kefu-panel-footer {
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.service-time {
    margin: 0;
    font-size: 12px;
    color: #999;
    text-align: center;
}

@media (max-width: 768px) {
    .kefu-wrapper {
        right: 15px;
        bottom: 100px;
    }
    
    .kefu-panel {
        width: 260px;
        right: 75px;
    }
}