/* 新闻页头部 */
.news-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/news-header-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 150px 0 80px;
    margin-bottom: 0;
    color: white;
    text-align: center;
}

.news-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.news-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 新闻分类 */
.news-categories {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.category-list li {
    margin: 0;
}

.category-list a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.category-list li.active a,
.category-list a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 新闻列表 */
.news-list {
    padding: 80px 0;
    background-color: var(--light-gray);
}

/* 置顶新闻 */
.featured-news {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 40px;
}

.featured-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.featured-content h2 a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-content h2 a:hover {
    color: var(--primary-color);
}

/* 新闻卡片 */
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    height: 100%;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-image {
    position: relative;
    padding-top: 66.67%; /* 3:2 比例 */
}

.news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.news-content h3 a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: var(--primary-color);
}

.news-meta {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.news-meta span {
    margin-right: 20px;
}

.news-meta i {
    margin-right: 5px;
}

.news-content p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/* 分页样式 */
.pagination-wrapper {
    margin-top: 50px;
}

.pagination .page-link {
    color: var(--text-color);
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 5px;
    border-radius: 5px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-header {
        padding: 120px 0 60px;
    }
    
    .news-header h1 {
        font-size: 2rem;
    }
    
    .category-list {
        gap: 10px;
    }
    
    .category-list a {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .news-categories {
        top: 60px;
    }
    
    .featured-image {
        min-height: 300px;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .featured-content h2 {
        font-size: 1.5rem;
    }
    
    .news-content h3 {
        font-size: 1.1rem;
    }
} 