/* 动画效果 */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 分类行悬停效果 */
.category-row {
    transition: all 0.2s ease;
}

.category-row:hover {
    background-color: #f9fafb;
    transform: scale(1.01);
}

/* 图片预览样式 */
.image-preview {
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.image-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* 上传中遮罩层 */
.uploading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

/* 导航按钮样式 */
.nav-btn {
    transition: all 0.2s ease;
}

.nav-btn:hover {
    transform: scale(1.05);
}

/* 表单输入框焦点效果 */
input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* 按钮禁用状态 */
.opacity-50 {
    opacity: 0.5;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .card-hover:hover {
        transform: none;
    }
    
    .category-row:hover {
        transform: none;
    }
}