/* 新闻列表页样式 */
.pub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pub-list li {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.pub-list li:last-child {
    border-bottom: none;
}

.pub-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    color: #212529;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pub-list a:hover {
    background-color: #f8f9fa;
    color: #4CAF47;
}

.news-time {
    flex-shrink: 0;
    font-size: 0.875rem;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-left: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pub-list a:hover .news-time {
    background-color: #e6f1e8;
    color: #4CAF47;
}

/* 分页样式 */
#pages {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

#pages a, #pages span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    background-color: #fff;
    color: #212529;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

#pages a:hover {
    background-color: #e6f1e8;
    color: #4CAF47;
    border-color: #4CAF47;
}

#pages span.current {
    background-color: #4CAF47;
    color: #fff;
    border-color: #4CAF47;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .pub-list a {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-time {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}
