
.floating-service {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    transform: scale(1);
}

.service-option:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.service-option.active {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.service-option.phone {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.service-option.wechat {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
}

.service-option.qq {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
}

.service-tooltip {
    position: absolute;
    right: 60px;
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 140px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s ease;
    z-index: 9;
    pointer-events: auto;
}

.service-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    border-left: 10px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.service-option.wechat.active .service-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.service-tooltip img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 6px;
}

.service-tooltip p {
    margin: 0;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.service-label {
    position: absolute;
    right: 60px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.service-option.active .service-label,
.service-option:hover .service-label {
    opacity: 1;
    visibility: visible;
}

/* 点击空白区域关闭的遮罩层 */
.service-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9998;
    display: none;
}

/* HUD样式 */
.copy-hud {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.copy-hud.show {
    opacity: 1;
}

/* 响应式调整 - 与原代码完全一致 */
@media (max-width: 768px) {
    .floating-service {
        bottom: 90px;
        right: 15px;
    }
    
    .service-option {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .service-tooltip {
        width: 120px;
        right: 55px;
    }
    
    .service-label {
        right: 45px;
    }
}

@media (max-width: 480px) {
    .floating-service {
        bottom: 50px;
        right: 5px;
    }
    
    .service-option {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .service-tooltip {
        width: 110px;
        right: 50px;
        padding: 8px;
    }
}

.service-option.online {
    background: linear-gradient(135deg, #FF5722, #FF7043); /* 橙色渐变，可自行调整 */
}
