/* 新闻页面样式 */

/* 新闻列表样式 */
.news-list {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-list h1 {
    font-size: 36px;
    margin-bottom: 24px;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.news-list h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #0099ff);
    border-radius: 2px;
}

.news-list .categories {
    margin-bottom: 30px;
    color: #666;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-radius: 6px;
    display: inline-block;
    border-left: 4px solid #0066cc;
}

.news-list .categories span {
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.news-list .categories span:hover {
    color: #0066cc;
    background-color: #e3f2fd;
}

/* 新闻列表网格样式 */
.news-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

/* 新闻项样式 - 完全匹配用户要求 */
.news-item {
    border: 1px solid #ddd;
    padding: 16px;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.news-item:hover {
    border-color: #0066cc;
}

.news-item__content {
    display: block;
}

.news-item__title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
}

.news-item__title a {
    text-decoration: none;
    color: #333;
    display: block;
}

.news-item__title a:hover {
    color: #0066cc;
}

.news-item__excerpt {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.news-item__date {
    font-size: 13px;
    color: #999;
    text-align: right;
    display: block;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    background-color: #f8f9fa;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.pagination-info .highlight {
    color: #0066cc;
    font-weight: 600;
    margin: 0 4px;
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .pagination-info {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

.pagination a {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 6px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: #333;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.pagination a.active {
    background: linear-gradient(135deg, #0066cc, #0099ff);
    color: white;
    border-color: #0066cc;
    box-shadow: 0 2px 8px rgba(0,102,204,0.3);
}

.pagination a:hover:not(.active) {
    background-color: #f8f9fa;
    border-color: #0066cc;
    color: #0066cc;
}

.pagination .next {
    background-color: #f8f9fa;
    font-weight: 600;
}

.pagination .next:hover {
    background-color: #0066cc;
    color: white;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .news-list-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
    
    .news-list {
        padding: 20px;
    }
    
    .news-item {
        padding: 12px;
    }
    
    .news-list h1 {
        font-size: 28px;
    }
    
    .news-item__title {
        font-size: 15px;
    }
}