/* 新闻页面专用样式 */

.news-filter {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #666;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.news-list-section {
    padding: 80px 0;
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item.featured {
    position: relative;
}

.news-item.featured .news-image {
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.news-image {
    flex: 0 0 300px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.news-date {
    color: #999;
    font-size: 14px;
}

.news-category {
    padding: 3px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

.news-category.company {
    background: #e3f2fd;
    color: #1976d2;
}

.news-category.product {
    background: #f3e5f5;
    color: #7b1fa2;
}

.news-category.industry {
    background: #e8f5e8;
    color: #388e3c;
}

.news-content h2 {
    margin-bottom: 15px;
}

.news-content h2 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.4rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-content h2 a:hover {
    color: #667eea;
}

.news-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.news-author {
    color: #999;
    font-size: 14px;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #764ba2;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
}

.page-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn:hover:not(.disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 10px;
}

.page-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number:hover,
.page-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .news-list-section {
        padding: 60px 0;
    }
    
    .news-item {
        flex-direction: column;
        margin-bottom: 30px;
    }
    
    .news-image {
        flex: none;
        height: 200px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-content h2 a {
        font-size: 1.2rem;
    }
    
    .news-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .page-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .page-number {
        width: 35px;
        height: 35px;
    }
}