/* QQ悬浮窗样式 */

/* 悬浮窗容器 */
.qq-float-container {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 悬浮窗按钮 */
.qq-float-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #F5B824 0%, #F09D1E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(245, 184, 36, 0.4);
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.qq-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(245, 184, 36, 0.6);
}

.qq-float-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 12px rgba(245, 184, 36, 0.4);
}

/* QQ图标 */
.qq-float-btn svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 提示气泡 */
.qq-float-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.qq-float-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(0, 0, 0, 0.85);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.qq-float-container:hover .qq-float-tooltip {
    opacity: 1;
}

/* 复制成功提示 */
.qq-float-copied {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(76, 175, 80, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
    z-index: 10000;
}

.qq-float-copied::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(76, 175, 80, 0.9);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.qq-float-copied.show {
    opacity: 1;
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(245, 184, 36, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(245, 184, 36, 0.7);
    }
}

.qq-float-btn.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* 响应式设计 */
@media screen and (max-width: 480px) {
    .qq-float-container {
        right: 10px;
    }
    
    .qq-float-btn {
        width: 55px;
        height: 55px;
    }
    
    .qq-float-btn svg {
        width: 32px;
        height: 32px;
    }
    
    .qq-float-tooltip,
    .qq-float-copied {
        right: 70px;
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media screen and (max-width: 360px) {
    .qq-float-container {
        right: 8px;
    }
    
    .qq-float-btn {
        width: 50px;
        height: 50px;
    }
    
    .qq-float-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .qq-float-tooltip,
    .qq-float-copied {
        right: 65px;
        font-size: 11px;
        padding: 5px 8px;
    }
}

/* 暗黑模式支持 */
@media (prefers-color-scheme: dark) {
    .qq-float-tooltip {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .qq-float-tooltip::after {
        border-left-color: rgba(255, 255, 255, 0.1);
    }
}
