/* shared/css/technical-articles-enhanced.css */
/* 技术文章页面增强样式 */

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 文章卡片动画 */
.article-card {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }

/* 图片过渡效果 */
.article-image {
    transition: transform 0.3s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

/* 分类筛选器 */
.category-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.category-item:hover {
    background-color: #f8f9fa;
    border-left-color: #0066CC;
}

.category-item.active {
    background-color: #e7f1ff;
    border-left-color: #0066CC;
    font-weight: 600;
}

/* 难度徽章 */
.badge.bg-success { background-color: #00A859 !important; }
.badge.bg-warning { background-color: #FFC107 !important; }
.badge.bg-danger { background-color: #DC3545 !important; }

/* 搜索框 */
#articleSearch:focus {
    border-color: #0066CC;
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

/* 加载更多按钮 */
#loadMoreArticles {
    transition: all 0.3s ease;
    min-width: 200px;
}

#loadMoreArticles:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

#loadMoreArticles:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 热门文章 */
#popularArticles .list-group-item {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 1rem 0.5rem;
}

#popularArticles .list-group-item:last-child {
    border-bottom: none;
}

#popularArticles .list-group-item:hover {
    background-color: #f8f9fa;
}

/* 专家模块增强 */
.expert-avatar {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 无结果提示 */
#noResultsMessage {
    animation: fadeInUp 0.5s ease-out;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-card {
        animation-delay: 0s !important;
        animation-duration: 0.3s;
    }
    
    .featured-article .card-title {
        font-size: 1.25rem;
    }
    
    .article-card .card-title {
        font-size: 1.1rem;
    }
}

/* 打印样式 */
@media print {
    .category-filter,
    #popularArticles,
    .expert-avatar,
    #searchBtn,
    #loadMoreContainer {
        display: none !important;
    }
    
    .article-card {
        break-inside: avoid;
    }
}