/* ========================================
   三亩地 - 新闻列表页样式
   ======================================== */

/* 新闻分类筛选 */
.news-filter {
    padding: 40px 0;
    background: #faf6ed;
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 28px;
    background: #fff;
    color: #666;
    border: 1px solid #e5e0d5;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: #8b2e2e;
    color: #f5f0e6;
    border-color: #8b2e2e;
}

/* 新闻网格布局 */
.news-list-page {
    padding: 60px 0;
}

.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
}

.news-card-full {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.news-card-full:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.news-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-full:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-body {
    padding: 25px;
}

.news-card-category {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f0e6;
    color: #8b2e2e;
    font-size: 12px;
    border-radius: 15px;
    margin-bottom: 12px;
}

.news-card-title {
    font-size: 19px;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a:hover {
    color: #8b2e2e;
}

.news-card-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.news-card-date {
    color: #999;
    font-size: 13px;
}

.news-card-link {
    color: #8b2e2e;
    font-size: 14px;
    font-weight: 600;
}

.news-card-link:hover {
    color: #6b2222;
}

/* 加载更多 */
.load-more-container {
    text-align: center;
    padding: 50px 0;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .news-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .filter-container {
        padding: 0 20px;
    }

    .news-cards-grid {
        grid-template-columns: 1fr;
    }

    .news-card-image {
        height: 180px;
    }
}
