/* 右下角悬浮按钮 - 黑色主题 */
.floating-button {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.5);
    transition: all 0.3s;
    z-index: 1000;
    text-align: center;
    line-height: 1.2;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.floating-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    animation: floatShine 4s infinite;
    border-radius: 50%;
}

@keyframes floatShine {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

.floating-button::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(from 0deg, #ff4444, #ff6b6b, #ff4444);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.floating-button:hover::after {
    opacity: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floating-button:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(255, 68, 68, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
}

.floating-button:active {
    transform: scale(1.1) rotate(0deg);
}

.floating-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
}

.floating-button:hover .floating-icon {
    transform: scale(1.1);
}

.floating-button span {
    display: block;
    position: relative;
    z-index: 2;
}

/* 脉冲动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

.floating-button {
    animation: pulse 2s infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-button {
        width: 60px;
        height: 60px;
        bottom: 25px;
        right: 25px;
    }
    
    .floating-icon {
        width: 28px;
        height: 28px;
    }
}
