/* 文章列表区域 */
.list-section {
    padding: 3rem 0;
}

.list-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
}

/* 文章列表项 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.list-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.8rem;
    transition: var(--transition);
    display: flex;
    gap: 1.5rem;
}

.list-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.list-item-img {
    flex-shrink: 0;
    width: 180px;
    height: 130px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    background-size: cover;
    background-position: center;
}

.list-item-content {
    flex: 1;
}

.item-category {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding: 0.2rem 0.8rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.item-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.item-title a:hover {
    text-decoration: underline;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    color: var(--medium-gray);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.item-meta i {
    margin-right: 0.2rem;
}

.item-excerpt {
    color: var(--dark-color);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页 */
.pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.page-item {
    display: inline-block;
    padding: 0.6rem 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    font-weight: 500;
    color: var(--dark-color);
    min-width: 40px;
    text-align: center;
}

.page-item:hover:not(.disabled):not(.active) {
    background-color: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-1px);
}

.page-item.active {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
    font-weight: 600;
}

.page-item.disabled {
    color: #999;
    cursor: not-allowed;
    border-color: #eee;
    background: #f9f9f9;
}

/* 响应式设计：小屏幕时减小页码大小 */
@media (max-width: 768px) {
    .page-item {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

/* 侧边栏 (复用之前的样式) */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.category-item a:hover {
    color: var(--primary-color);
}

.category-count {
    color: var(--medium-gray);
    font-size: 0.85rem;
}

.hot-article-item {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hot-article-item:last-child {
    border-bottom: none;
}

.hot-article-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.hot-article-title:hover {
    color: var(--primary-color);
}

.hot-article-meta {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

/* 响应式 */
@media (max-width: 992px) {
    .list-grid {
        grid-template-columns: 1fr;
    }

    .list-item {
        flex-direction: column;
    }

    .list-item-img {
        width: 100%;
        height: 200px;
    }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    min-height: 300px;  /* 设置最小高度 */
    width: 100%;
    margin: 40px auto;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 2px dashed #e0e0e0;
    transition: all 0.3s ease;
}

.empty-state:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.empty-state i {
    font-size: 80px;  /* 图标变大 */
    color: #ccc;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.empty-state i:hover {
    color: #bbb;
    transform: scale(1.1);
}

.empty-state p {
    font-size: 18px;
    color: #888;
    margin: 0;
    font-weight: 500;
    line-height: 1.6;
}

/* 可选：添加动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-state {
    animation: fadeIn 0.6s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .empty-state {
        padding: 40px 15px;
        min-height: 250px;
    }
    
    .empty-state i {
        font-size: 60px;
    }
    
    .empty-state p {
        font-size: 16px;
    }
}