/* 新闻列表页 - 覆盖首页news-grid宽度限制，三列均分 */
body.portal-home { display: flex; flex-direction: column; min-height: 100vh; }
.portal-home .portal-topbar,
.portal-home .portal-header,
.portal-home > main,
.portal-home > .news-detail-main,
.portal-home .portal-footer { flex-shrink: 0; }
.portal-home > main,
.portal-home > .news-detail-main { flex: 1 0 auto; }
.news-section .news-grid {
    width: 100%;
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.news-section .news-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    box-shadow: none;
    transition: box-shadow .2s ease;
}
.news-section .news-card:hover {
    box-shadow: 0 1px 16px rgba(153, 153, 153, .2);
}
.news-section .news-card div {
    min-width: 0;
}
.news-section .news-title { margin-bottom: 30px; }

/* 列表内容区最低高度，避免底部上移 */
.news-list-body {
    min-height: 600px;
}
.news-empty {
    display: none;
    text-align: center;
    padding: 120px 0;
    color: #999;
    font-size: 15px;
}

/* 列表卡片：标题一行、简介两行省略 */
.news-section .news-card h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-section .news-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

/* Tab链接样式覆盖 - 与首页button风格一致 */
.news-tabs a.news-tab-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 34px;
    padding: 0 22px;
    border: 1px solid #eee;
    border-radius: 18px;
    background: #fff;
    color: #666;
    font-size: 16px;
    line-height: 32px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.news-tabs a.news-tab-item.active,
.news-tabs a.news-tab-item:hover {
    background: #f17930;
    border-color: #f17930;
    color: #fff;
}

/* 分页 */
.news-pagination { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:40px; padding-bottom:20px; }
.page-item { display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; padding:0 10px; border:1px solid #ddd; border-radius:4px; font-size:14px; color:#666; text-decoration:none; cursor:pointer; transition:all .2s; background:#fff; }
.page-item:hover { border-color:#f6762b; color:#f6762b; }
.page-item.active { background:#f6762b; border-color:#f6762b; color:#fff; cursor:default; }
.page-item.disabled { color:#ccc; border-color:#eee; cursor:not-allowed; }

@media (max-width:900px) {
    .news-section .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width:600px) {
    .news-section .news-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 详情页 - 上一篇/下一篇导航 */
.news-detail-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.news-detail-nav-item {
    display: block;
    padding: 8px 0;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    line-height: 1.6;
}
.news-detail-nav-item:hover {
    color: #f6762b;
}
.news-detail-nav-item .news-detail-nav-label {
    font-weight: 400;
    color: #333;
}
.news-detail-nav-disabled {
    color: #999;
    cursor: not-allowed;
}
.news-detail-nav-disabled:hover {
    color: #999;
}

/* 搜索结果列表 */
.news-search-list {
    width: 100%;
    background: #fff;
}
.news-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: background .2s ease;
}
.news-search-item:first-child {
    border-top: 1px solid #eee;
}
.news-search-item:hover {
    background: #fafafa;
}
.news-search-title {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #303133;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-search-date {
    flex-shrink: 0;
    font-size: 14px;
    color: #999;
    white-space: nowrap;
}
.news-search-highlight {
    color: #f00;
    font-weight: 700;
}
