/* 页面标题样式 */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/news-banner.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb .separator {
    color: rgba(255,255,255,0.6);
}

.breadcrumb .current {
    color: var(--secondary-color);
}

/* 新闻分类样式 */
.news-category {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.category-list li a {
    color: #666;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
}

.category-list li.active a,
.category-list li a:hover {
    color: var(--primary-color);
}

.category-list li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* 新闻列表样式 */
.news-list {
    padding: 80px 0;
    background: #f9f9f9;
}

/* 置顶新闻样式 */
.featured-news {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 60px;
}

.featured-news .news-image {
    position: relative;
    height: 400px;
}

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

.featured-news .news-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.featured-news .news-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-news .news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.featured-news .category {
    color: var(--primary-color);
    font-weight: 600;
}

.featured-news .date {
    color: #666;
}

.featured-news h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.featured-news p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* 新闻网格样式 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.news-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.news-item .news-image {
    position: relative;
    height: 220px;
}

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

.news-item .news-category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.news-item .news-content {
    padding: 25px;
}

.news-item .news-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.news-item h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

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

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: white;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover:not(.disabled) {
    background: var(--primary-color);
    color: white;
}

.pagination .active {
    background: var(--primary-color);
    color: white;
}

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

.pagination .dots {
    background: none;
}

/* 响应式样式 */
@media screen and (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .featured-news {
        grid-template-columns: 1fr;
    }

    .featured-news .news-image {
        height: 300px;
    }

    .category-list {
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .page-header {
        height: 200px;
        margin-top: 60px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .category-list {
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 0 20px;
    }

    .featured-news .news-content {
        padding: 30px;
    }

    .featured-news h2 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 576px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .featured-news .news-image {
        height: 200px;
    }

    .featured-news .news-content {
        padding: 20px;
    }

    .featured-news h2 {
        font-size: 1.5rem;
    }

    .news-item .news-image {
        height: 180px;
    }
} 