/* news.css - 新闻动态特定样式 */

.news-hero {
    background-image: url('../images/news-hero-bg.jpg'); /* 替换为你的新闻页背景图 */
}

.news-archive-section {
    padding: 80px 0;
    background-color: #fff;
}

/* 新闻筛选区域 */
.news-filter {
    text-align: center;
    margin-bottom: 50px;
}

.filter-btn {
    background-color: #f0f0f0;
    color: #666;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e0e0e0;
}

.filter-btn.active {
    background-color: #6a8e7a;
    color: #fff;
    box-shadow: 0 4px 10px rgba(106, 142, 122, 0.3);
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.news-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    display: flex;
    flex-direction: column;
}

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    display: inline-block;
    background-color: #eef5f0;
    color: #6a8e7a;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: bold;
    margin-bottom: 15px;
}

.news-card h3 a {
    color: #333;
    font-size: 1.4em;
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-card h3 a:hover {
    color: #6a8e7a;
}

.news-date {
    font-size: 0.9em;
    color: #999;
    margin-bottom: 15px;
}

.news-card p {
    color: #666;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* 确保内容区域高度一致 */
}

.btn-text {
    margin-top: auto; /* 将链接推到底部 */
}

/* 隐藏和显示新闻卡片 */
.news-card.hidden {
    display: none;
    opacity: 0;
}

.news-card.show {
    display: flex;
    opacity: 1;
}

/* 加载更多按钮容器 */
.load-more-container {
    text-align: center;
    margin-top: 30px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-archive-section {
        padding: 60px 0;
    }
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .news-filter {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .filter-btn {
        margin: 5px;
        padding: 8px 15px;
        font-size: 0.9em;
    }
}