/* 悬浮客服联系方式样式 */
.customer-service-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.customer-service-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.customer-service-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.customer-service-menu {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 15px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
    display: none;
}

.customer-service-menu.show {
    opacity: 1;
    visibility: visible;
    display: block;
    transform: translateY(0) scale(1);
}

.customer-service-menu::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.customer-service-menu::after {
    content: '';
    position: absolute;
    bottom: -9px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #e1e5e9;
}

.customer-service-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.customer-service-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.customer-service-header p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 12px;
}

.customer-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.customer-service-item {
    margin-bottom: 8px;
}

.customer-service-item:last-child {
    margin-bottom: 0;
}

.customer-service-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.customer-service-link:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
    transform: translateX(-2px);
    text-decoration: none;
    color: #333;
}

.customer-service-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.customer-service-icon.qq {
    color: #12B7F5;
}

.customer-service-icon.wechat {
    color: #07C160;
}

.customer-service-icon.telegram {
    color: #0088CC;
}

.customer-service-icon.phone {
    color: #FF6B6B;
}

.customer-service-icon.email {
    color: #4ECDC4;
}

.customer-service-text {
    flex: 1;
}

.customer-service-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
}

.customer-service-value {
    font-size: 12px;
    color: #666;
    word-break: break-all;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .customer-service-float {
        right: 15px;
        bottom: 15px;
    }
    
    .customer-service-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .customer-service-menu {
        min-width: 180px;
        padding: 12px;
    }
    
    .customer-service-menu::before,
    .customer-service-menu::after {
        right: 20px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .customer-service-menu {
        background: #2d3748;
        border-color: #4a5568;
        color: white;
    }
    
    .customer-service-menu::before {
        border-top-color: #2d3748;
    }
    
    .customer-service-menu::after {
        border-top-color: #4a5568;
    }
    
    .customer-service-header h4 {
        color: white;
    }
    
    .customer-service-header p {
        color: #a0aec0;
    }
    
    .customer-service-header {
        border-bottom-color: #4a5568;
    }
    
    .customer-service-link {
        color: white;
    }
    
    .customer-service-link:hover {
        background: #4a5568;
        border-color: #718096;
        color: white;
    }
    
    .customer-service-value {
        color: #a0aec0;
    }
}

/* 加载动画 */
.customer-service-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.customer-service-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误状态 */
.customer-service-error {
    padding: 15px;
    text-align: center;
    color: #e53e3e;
    font-size: 14px;
}

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