/* 资讯列表页面样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面容器 */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 24px;
    background: #fff;
}

/* 分类筛选 */
.category-filter {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 25px;
    border: 1px solid #e8e8e8;
}

.category-filter h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-item {
    padding: 0.5rem 1.5rem;
    border: 2px solid #e0e6ed;
    border-radius: 25px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.95rem;
}

.category-item:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.category-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* 文章列表 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.article-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
}

.article-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-abstract {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e0e6ed;
    font-size: 0.9rem;
    color: #999;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-date {
    color: #999;
}

.article-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-state svg {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #bbb;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.page-link {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    background: white;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 45px;
    text-align: center;
}

.page-link:hover {
    border-color: #667eea;
    color: #667eea;
}

.page-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.page-link.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-container {
        padding: 24px 16px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-list {
        gap: 0.5rem;
    }

    .category-item {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 16px 12px;
    }

    .article-cover {
        height: 180px;
    }

    .article-content {
        padding: 1rem;
    }

    .article-title {
        font-size: 1.1rem;
    }
}
