/* style.css */

/* 定义自定义动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 应用动画到 .animate-fadeIn 和 .animate-slideUp 类 */
.animate-fadeIn {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slideUp {
    animation: slideUp 1s ease-out forwards;
    animation-delay: 0.3s; /* 稍作延迟，让 fadeIn 先执行 */
}

/* 返回顶部按钮的基础样式 */
#back-to-top {
    display: none; /* 默认隐藏 */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4F46E5; /* Tailwind blue-600 */
    color: white;
    padding: 12px 15px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
    background-color: #6366F1; /* Tailwind indigo-500 */
    transform: translateY(-3px);
}