@import url("public.css");



/* ========== 新闻内页左右布局 ========== */
.ep-news-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: flex-start; }
.ep-news-side { position: sticky; top: 140px; }

/* ---------- 左侧菜单卡片 ---------- */
.ep-news-side .el-card { border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

/* 二级栏目导航列表 */
.nextcolumn { background: #fff; padding: 8px 0; }
.nextcolumn ul { list-style: none; }
.nextcolumn ul li { border-bottom: 1px solid #f0f0f0; }
.nextcolumn ul li:last-child { border-bottom: none; }
.nextcolumn ul li a { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font-size: 14px; color: #555; transition: all 0.3s; border-left: 3px solid transparent; }
.nextcolumn ul li a:hover { background: #f0f9f1; color: #2e7d32; border-left-color: #81c784; padding-left: 24px; }
.nextcolumn ul li a.my { background: #e8f5e9; color: #1a5c3a; font-weight: 600; border-left-color: #2e7d32; }

/* ========== 面包屑导航 ========== */
.ep-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; padding: 14px 0; font-size: 14px; color: #888; }
.ep-breadcrumb a { color: #666; transition: color 0.3s; display: inline-flex; align-items: center; }
.ep-breadcrumb a:hover { color: #2e7d32; }
.ep-breadcrumb a .layui-icon-home { font-size: 14px; margin-right: 2px; }
.ep-breadcrumb a:last-child { color: #333; font-weight: 500; pointer-events: none; }
.ep-bc-sep { margin: 0 8px; color: #ccc; font-size: 12px; }

/* ========== 新闻主内容区 ========== */
.ep-news-main { min-width: 0; }

/* 栏目标题栏 + 工具按钮 */
.ep-cat-header { display: flex; align-items: center; justify-content: space-between; padding:20px; border-bottom: 2px solid #e8f5e9; }
.ep-cat-header__title { font-size: 20px; font-weight: 700; color: #1a5c3a; position: relative; padding-left: 14px; }
.ep-cat-header__title::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; background: linear-gradient(180deg, #2e7d32, #81c784); border-radius: 2px; }

.ep-cat-header__tools { display: flex; align-items: center; gap: 6px; }
.ep-font-btn, .ep-print-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid #ddd; border-radius: 4px; background: #fff; color: #888; cursor: pointer; transition: all 0.3s; font-size: 16px; }
.ep-font-btn:hover, .ep-print-btn:hover { background: #e8f5e9; color: #2e7d32; border-color: #81c784; }
.ep-font-label { font-size: 12px; color: #aaa; margin: 0 2px; user-select: none; }
.ep-tool-divider { display: inline-block; width: 1px; height: 16px; background: #ddd; margin: 0 6px; }

/* 新闻列表项 */
.ep-news-list-row { padding: 16px 0; border-bottom: 1px dashed #e8e8e8; transition: all 0.3s; }
.ep-news-list-row:last-of-type { border-bottom: none; }
.ep-news-list-row:hover { padding-left: 8px; }
.ep-news-list-row:hover .ep-article-title a { color: #2e7d32; }
.ep-article-title { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.ep-article-title a { color: #333; transition: color 0.3s; }
.ep-article-title a:hover { color: #2e7d32; }
.ep-list-desc { font-size: 14px; color: #777; line-height: 1.7; margin-bottom: 8px; }
.ep-list-desc--tight { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ep-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: #999; }
.ep-meta i { margin-right: 4px; }

/* ========== 暂无数据 ========== */
.ep-empty-data { text-align: center; padding: 80px 0; color: #ccc; }
.ep-empty-data .layui-icon { font-size: 56px; display: block; margin-bottom: 16px; }
.ep-empty-data p { font-size: 15px; color: #aaa; }

/* ========== 分页样式 ========== */
.xrpagination { margin-top: 24px; text-align: center; padding-bottom: 8px; }
.xrpagination a { display: inline-block; padding: 6px 14px; margin: 0 4px; font-size: 14px; color: #555; border: 1px solid #ddd; border-radius: 4px; transition: all 0.3s; }
.xrpagination a:hover, .xrpagination a.active { background: #2e7d32; color: #fff; border-color: #2e7d32; }

/* ========== 打印隐藏 ========== */
@media print {
    .header, .footer, .ep-news-side, .ep-breadcrumb, .ep-cat-header__tools, .back-top { display: none !important; }
    .ep-news-layout { grid-template-columns: 1fr !important; }
    .ep-news-main { min-height: auto !important; }
    body { background: #fff; }
}