/* 页面横幅样式 */
.page-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    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);
}

/* 资讯分类样式 */
.news-categories {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.category-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #4a6741;
    border-radius: 30px;
    background: transparent;
    color: #4a6741;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.category-btn:hover,
.category-btn.active {
    background: #4a6741;
    color: #fff;
}

/* 热门资讯样式 */
.featured-news {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-grid {
    margin-top: 2rem;
}

.featured-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.featured-item:hover {
    transform: translateY(-5px);
}

.featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 2rem;
}

.featured-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 1rem 0;
}

.featured-content p {
    color: #666;
    margin-bottom: 1rem;
}

/* 最新资讯列表样式 */
.news-list {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #4a6741;
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-content h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.news-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.9rem;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: #4a6741;
    color: #fff;
    border-color: #4a6741;
}

.page-dots {
    color: #666;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-item {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .featured-image {
        height: 100%;
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
} 