/* 客服悬浮按钮样式 - 重新设计 - 版本2.3 - 保持主图标原始显示 */
/* 测试CSS加载 */
body { --customer-service-loaded: true; }
.customer-service-float {
    position: fixed !important;
    right: 20px !important;
    bottom: 80px !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: center !important;
    width: 60px !important;
    height: auto !important;
}

.service-main-btn {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: white !important;
    border: 2px solid #667eea !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

.service-main-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6) !important;
    background: #f8f9fa !important;
    border-color: #667eea !important;
}

/* 悬停时也保持图标原始状态 */
.service-main-btn:hover img {
    filter: none !important;
}

.service-main-btn img {
    width: 28px !important;
    height: 28px !important;
    /* 完全保持原始图标，无任何滤镜或变换 */
    filter: none !important;
    transition: transform 0.3s ease !important;
    object-fit: contain !important;
}

.service-main-btn.active img {
    transform: rotate(45deg) !important;
    filter: none !important;
}

.service-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) scale(0.8) !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    pointer-events: none !important;
}

.service-items.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

.service-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border-radius: 50% !important;
    padding: 0 !important;
    text-decoration: none !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    transform: scale(0) !important;
    opacity: 0 !important;
    width: 40px !important;
    height: 40px !important;
    position: relative !important;
}

.service-item.show {
    transform: scale(1) !important;
    opacity: 1 !important;
}

.service-item:hover {
    transform: scale(1.15) !important;
    text-decoration: none !important;
    color: #333 !important;
}

.service-item:hover .service-name {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-50%) translateX(-100%) !important;
}

.service-icon {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    background: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.service-icon img {
    width: 26px !important;
    height: 26px !important;
    /* 移除滤镜，保持原始图标颜色 */
}

.service-name {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* 动画延迟 */
.service-item:nth-child(1) { transition-delay: 0.05s; }
.service-item:nth-child(2) { transition-delay: 0.1s; }
.service-item:nth-child(3) { transition-delay: 0.15s; }
.service-item:nth-child(4) { transition-delay: 0.2s; }
.service-item:nth-child(5) { transition-delay: 0.25s; }

/* 响应式设计 */
@media (max-width: 768px) {
    .customer-service-float {
        right: 15px;
        bottom: 70px;
        padding: 6px;
    }

    .service-main-btn {
        width: 40px;
        height: 40px;
    }

    .service-main-btn img {
        width: 20px;
        height: 20px;
    }

    .service-item {
        width: 35px;
        height: 35px;
    }

    .service-icon {
        width: 35px;
        height: 35px;
    }

    .service-icon img {
        width: 20px;
        height: 20px;
    }

    .service-name {
        font-size: 11px;
        right: 40px;
    }
}

/* 脉冲动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.service-main-btn.pulse {
    animation: pulse 2s infinite !important;
}

/* 特定社交媒体图标样式 - 保持原始图标颜色 */
.service-item[data-service="Facebook"] .service-icon {
    background: white;
}

.service-item[data-service="Telegram"] .service-icon {
    background: white;
}

.service-item[data-service="Instagram"] .service-icon {
    background: white;
}

.service-item[data-service="YouTube"] .service-icon {
    background: white;
}
