/* ============================================================
   新闻列表页 - news_list.css
============================================================ */

.btn-sm { font-size: 14px; padding: 10px 22px; }

/* 新闻分类 Tab */
.news-tabs {
    display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap;
}
.news-tabs ul li{float:left;margin: 0 5px;}
.news-tabs li a {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 32px; border-radius: 12px;
    font-size: 15px; font-weight: 600; color: var(--ink-soft);
    background: var(--bg-soft); border: 1.5px solid var(--line);
    transition: all .25s ease;
}
.news-tabs li a:hover {
    color: var(--green-700); border-color: var(--green-300);
    background: var(--green-50);
}
.news-tabs li a.active {
    color: #fff; background: var(--green-600); border-color: transparent;
}

.news-section { padding: 80px 0 96px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--line);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
    display: flex; flex-direction: column; position: relative;
}
.news-card::before {
    content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
    background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--green-200); }
.news-card:hover::before { transform: scaleX(1); }
.news-thumb {
    position: relative; overflow: hidden; aspect-ratio: 16/9;
    background: var(--bg-soft);
}
.news-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-thumb .tag {
    position: absolute; top: 14px; left: 14px;
    background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
    padding: 5px 14px; border-radius: 999px; letter-spacing: .5px;
}
.news-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.news-meta {
    display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted-2); margin-bottom: 12px;
}
.news-meta .date { display: flex; align-items: center; gap: 5px; }
.news-meta .date svg { width: 14px; height: 14px; }
.news-meta .views { display: flex; align-items: center; gap: 5px; }
.news-meta .views svg { width: 14px; height: 14px; }
.news-body h3 {
    font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-body h3 a { transition: color .2s; }
.news-body h3 a:hover { color: var(--green-600); }
.news-excerpt {
    color: var(--muted); font-size: 15px; line-height: 1.75; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-link {
    display: inline-flex; align-items: center; gap: 6px; color: var(--green-700);
    font-weight: 700; font-size: 15px; margin-top: 18px; transition: gap .2s, color .2s;
}
.news-link:hover { gap: 10px; color: var(--green-600); }
.news-link svg { width: 16px; height: 16px; }

/* 分页 */
.pagination {
    display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 56px;
}
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px;
    font-size: 15px; font-weight: 600; transition: all .2s;
    border: 1px solid var(--line); color: var(--ink-soft); background: #fff;
}
.pagination a:hover { border-color: var(--green-300); color: var(--green-700); background: var(--green-50); }
.pagination .active, .pagination .actiive {
    background: var(--grad); color: #fff; border-color: transparent;
    box-shadow: 0 4px 12px rgba(9,146,80,.25);
}
.pagination .prev, .pagination .next { gap: 4px; font-size: 14px; }
.pagination .prev svg, .pagination .next svg { width: 16px; height: 16px; }
.pagination .disabled { opacity: .4; pointer-events: none; }
.pagination .page-numbers { text-decoration: none; }

/* 空状态 */
.empty-state {
    text-align: center; padding: 80px 20px;
    color: var(--muted);
}
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 20px; opacity: .5; }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.empty-state p { font-size: 15px; }

/* 响应式 */
@media (max-width: 960px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-tabs { gap: 8px; margin-bottom: 32px; }
    .news-tabs li a { padding: 10px 26px; font-size: 14px; }
}
@media (max-width: 768px) {
    .news-tabs { gap: 8px; margin-bottom: 28px; }
    .news-tabs li a { padding: 10px 24px; font-size: 14px; }
}
@media (max-width: 560px) {
    .news-grid { grid-template-columns: 1fr; gap: 20px; }
    .news-section { padding: 56px 0 64px; }
    .news-body { padding: 20px 20px 24px; }
    .news-body h3 { font-size: 17px; }
    .news-tabs { gap: 8px; margin-bottom: 24px; }
    .news-tabs li a { padding: 10px 20px; font-size: 13px; }
    .pagination { gap: 6px; flex-wrap: wrap; }
    .pagination a, .pagination span { min-width: 38px; height: 38px; font-size: 14px; }
}
