/* 极简导航 - 自定义样式 */

/* 隐藏滚动条但保持滚动功能 */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* 卡片悬停效果 */
.nav-card {
    transition: all 0.2s ease;
}
.nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.dark .nav-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

/* 分类按钮激活状态 */
.category-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}
.category-btn:not(.active) {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.dark .category-btn:not(.active) {
    background: rgba(59, 130, 246, 0.15);
}

/* 拖拽状态 */
.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 图标加载失败回退 */
.favicon-fallback {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* 输入框动画 */
input:focus, select:focus {
    transition: box-shadow 0.15s ease;
}

/* 模态框动画 */
.modal-enter {
    opacity: 0;
    transform: scale(0.95);
}
.modal-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Toast 通知 */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast.success {
    background: #10b981;
}
.toast.error {
    background: #ef4444;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .header-search {
        order: 3;
        width: 100%;
        margin-top: 12px;
    }
    
    header {
        padding-bottom: 12px;
    }
    
    .nav-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 打印样式 */
@media print {
    header, footer, .category-btn, #add-link-btn, #theme-toggle {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}