/* 科技感页面过渡动画与交互 */

/* 页面加载动画 - 带有扫描效果的感觉 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* 页面内容淡入 */
.page-content {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 消息提示动画 - 科技感划入 */
@keyframes slideIn {
    from {
        transform: translateX(120%) skewX(-10deg);
        opacity: 0;
    }
    to {
        transform: translateX(0) skewX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.notification {
    position: fixed;
    top: 90px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 4px;
    color: var(--text-bright);
    z-index: 10000;
    animation: slideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.notification.success {
    background: rgba(0, 255, 132, 0.2);
    border-left: 4px solid #00ff84;
    color: #00ff84;
}

.notification.error {
    background: rgba(255, 0, 122, 0.2);
    border-left: 4px solid #ff007a;
    color: #ff007a;
}

.notification.info {
    background: rgba(0, 229, 255, 0.2);
    border-left: 4px solid #00e5ff;
    color: #00e5ff;
}

/* 科技感呼吸等效 */
@keyframes neon-breath {
    from { box-shadow: 0 0 5px var(--primary-glow); }
    to { box-shadow: 0 0 20px var(--primary-glow); }
}

.neon-active {
    animation: neon-breath 2s infinite alternate;
}

/* 扫描线效果已经在 common.css 中定义 */

/* 科技感滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--border-line);
    border-radius: 10px;
    border: 1px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* 加载动画 - 环形旋转 */
@keyframes spin-tech {
    0% { transform: rotate(0deg) scale(1); border-top-color: var(--primary); }
    50% { transform: rotate(180deg) scale(1.1); border-top-color: var(--accent); }
    100% { transform: rotate(360deg) scale(1); border-top-color: var(--primary); }
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255,255,255,0.05);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin-tech 1.5s linear infinite;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}
