/* i8HOME-Next 新闻页样式 */

.page-head {
    padding: 24px 0 12px;
}

.page-head h1 {
    font-size: 22px;
    margin: 0 0 6px;
    color: #111;
}

.breadcrumb {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #0a7a35;
}

/* 分类筛选 */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.filter-item {
    padding: 6px 14px;
    font-size: 14px;
    color: #555;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    transition: all 0.2s;
}

.filter-item:hover {
    border-color: #0a7a35;
    color: #0a7a35;
}

.filter-item.active {
    background: #0a7a35;
    border-color: #0a7a35;
    color: #fff;
}

/* 新闻列表 */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.article-item {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    position: relative;
}

.article-item:last-child {
    border-bottom: 0;
}

.article-item:hover {
    background: #fafbfc;
}

.article-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    padding-right: 100px;
}

.article-title:hover {
    color: #0a7a35;
}

.article-summary {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.6;
    padding-right: 100px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-date {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 13px;
    color: #aaa;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 32px 0;
    font-size: 14px;
}

.pagination a {
    padding: 8px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    color: #333;
}

.pagination a:hover {
    border-color: #0a7a35;
    color: #0a7a35;
}

.pagination .current {
    color: #888;
}

/* 详情页 */
.article-detail {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 24px;
}

.article-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 24px;
}

.article-header h1 {
    font-size: 22px;
    line-height: 1.4;
    margin: 0 0 12px;
    color: #111;
}

.article-meta {
    font-size: 13px;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.article-meta .date {
    color: #666;
}

.article-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.article-nav-item {
    display: block;
    padding: 12px 16px;
    background: #fafbfc;
    border-radius: 8px;
    transition: all 0.2s;
    overflow: hidden;
}

.article-nav-item .label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.article-nav-item .title {
    display: block;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-nav-item:hover:not(.disabled) {
    background: #eef7f1;
}

.article-nav-item:hover:not(.disabled) .title {
    color: #0a7a35;
}

.article-nav-item.disabled {
    opacity: 0.5;
}

.related-news {
    margin-bottom: 24px;
}

.related-news h2 {
    font-size: 18px;
    margin: 0 0 16px;
    color: #222;
}

/* 富文本 */
.rich-content {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
}

.rich-content p {
    margin: 0 0 16px;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border-radius: 6px;
}

.rich-content h2 {
    font-size: 20px;
    margin: 24px 0 12px;
    color: #111;
}

.rich-content h3 {
    font-size: 17px;
    margin: 20px 0 10px;
    color: #111;
}

.rich-content ul, .rich-content ol {
    padding-left: 24px;
    margin: 12px 0;
}

.rich-content li {
    margin: 6px 0;
}

.rich-content blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    background: #f6f7f9;
    border-left: 4px solid #0a7a35;
    color: #555;
}

/* PC 增强 */
@media (min-width: 768px) {
    .page-head h1 {
        font-size: 28px;
    }

    .article-item {
        padding: 22px 28px;
    }

    .article-title {
        font-size: 17px;
        padding-right: 120px;
    }

    .article-date {
        top: 22px;
        right: 28px;
    }

    .article-detail {
        padding: 40px 48px;
    }

    .article-header h1 {
        font-size: 28px;
    }

    .article-nav {
        grid-template-columns: 1fr 1fr;
    }
}