/* 返回顶部按钮样式优化 */

/* 确保图标正确显示 */
.back-to-top i {
    font-size: 1.2rem !important;
    font-weight: bold !important;
    color: white !important;
    display: inline-block !important;
}

/* 增强返回顶部按钮的视觉效果 */
.back-to-top {
    background-color: #3B82F6 !important; /* 确保背景色为蓝色 */
    color: white !important; /* 确保文字/图标颜色为白色 */
    border: 2px solid rgba(255, 255, 255, 0.3) !important; /* 添加白色边框 */
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important; /* 增强阴影效果 */
    transition: all 0.3s ease !important;
}

/* 增强悬浮效果 */
.back-to-top:hover {
    background-color: #2563EB !important; /* 更深的蓝色 */
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* 为按钮添加脉动动画，提高可见性 */
@keyframes pulse-light {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    }
}

.back-to-top.visible {
    animation: pulse-light 2s infinite;
}

/* 确保按钮在不同状态下都能正确显示 */
.back-to-top:active {
    transform: translateY(-2px) scale(0.98) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .back-to-top {
        width: 2.5rem !important;
        height: 2.5rem !important;
        bottom: 1.5rem !important;
        right: 1.5rem !important;
    }
    
    .back-to-top i {
        font-size: 1rem !important;
    }
}