/* 页面标题banner */
.page-banner {
    margin-top: 80px;
    position: relative;
    height: 400px;
    overflow: hidden;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-text h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.banner-text p {
    font-size: 18px;
}

/* 新闻分类 */
.news-categories {
    background: #f9f9f9;
    padding: 20px 0;
    margin-bottom: 30px;
}

.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.category-item {
    padding: 10px 20px;
    border-radius: 20px;
    color: #666;
    transition: all 0.3s;
}

.category-item:hover,
.category-item.active {
    background: #2c5530;
    color: #fff;
}

/* 新闻列表 */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-item {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.news-image {
    flex: 0 0 300px;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.news-content {
    flex: 1;
}

.news-meta {
    margin-bottom: 15px;
}

.news-category {
    background: #2c5530;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 15px;
}

.news-date {
    color: #999;
    font-size: 14px;
}

.news-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.news-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-item,
.page-next {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    transition: all 0.3s;
}

.page-item:hover,
.page-item.active {
    background: #2c5530;
    color: #fff;
    border-color: #2c5530;
}

.page-next:hover {
    background: #f5f5f5;
}

.page-dots {
    color: #666;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        height: 200px;
    }

    .news-content {
        padding: 20px;
    }

    .news-content h3 {
        font-size: 20px;
    }
}

/* 新闻详情页样式 */
.news-detail {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.detail-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

.detail-header {
    text-align: center;
    margin-bottom: 30px;
}

.detail-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.detail-meta {
    color: #666;
    font-size: 14px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.detail-image {
    margin: 20px 0;
}

.detail-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.detail-text {
    line-height: 1.8;
    color: #333;
    margin: 30px 0;
}

.detail-text p {
    margin-bottom: 20px;
}

.detail-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.nav-prev, .nav-next {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    max-width: 45%;
}

.nav-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.nav-title {
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-prev:hover .nav-title,
.nav-next:hover .nav-title {
    color: #2c5530;
}

@media screen and (max-width: 480px) {
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }

    .news-date {
        margin-right: 0;
    }

    .detail-title {
        font-size: 24px;
    }

    .detail-meta {
        flex-direction: column;
        gap: 10px;
    }

    .detail-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .nav-prev, .nav-next {
        max-width: 100%;
    }
} 