/* ============================================================
   1. 文章列表页专用样式 (#article-list-container)
   ============================================================ */
#article-list-container {
    background: #fff; 
    padding: 40px; 
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 20px rgba(0, 51, 153, 0.05); 
    border-radius: 8px;
    min-height: 600px; 
    margin-bottom: 30px;
}

.list-category-header { 
    border-left: 6px solid #003399; 
    background: linear-gradient(to right, #f4f8ff, #ffffff); 
    padding: 20px 25px; 
    margin-bottom: 40px; 
}

.list-category-header .cat-title { 
    font-size: 26px; 
    color: #003399; 
    font-weight: bold; 
}

.standard-article-list .list-item { 
    border-bottom: 1px solid #f1f5f9; 
    transition: all 0.2s; 
}

.standard-article-list .list-item:hover { 
    background-color: #f1f5ff; 
    box-shadow: inset 4px 0 0 #003399; /* 悬停条同步为橙色 */
}

.standard-article-list .item-link { 
    display: flex; 
    align-items: center; 
    padding: 20px 15px; 
    text-decoration: none; 
}

.standard-article-list .dot { 
    width: 8px; 
    height: 8px; 
    background-color: #cbd5e1; 
    border-radius: 50%; 
    margin-right: 18px; 
}

.standard-article-list .item-title { 
    font-size: 16px; 
    color: #1e293b; 
    flex-grow: 1; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}

.standard-article-list .item-date { 
    color: #94a3b8; 
    font-size: 14px; 
}

/* ============================================================
   3. 分页样式 - 核心修复 (同步全站橙色风格并适配易优)
   ============================================================ */
.pagination-wrapper {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

/* 强制横向排列易优输出的 li 结构 */
.pagination-wrapper li {
    display: inline-block !important;
    margin: 0 4px !important;
    list-style: none !important;
    vertical-align: middle;
}

/* 基础按钮样式 (针对 a 标签和当前页 span 标签) */
.pagination-wrapper a, 
.pagination-wrapper span {
    display: inline-block !important;
    padding: 8px 16px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    color: #475569 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.2;
}

/* 鼠标悬停效果 */
.pagination-wrapper a:hover {
    border-color: #ff6600 !important;
    color: #ff6600 !important;
    background-color: #fff5ee !important;
}

/* 【高亮修复】同步全站颜色 #ff6600 并适配易优 class="hover" */
.pagination-wrapper .hover,
.pagination-wrapper a.hover,
.pagination-wrapper li a.hover,
.pagination-wrapper .active,
.pagination-wrapper .current {
    background-color: #ff6600 !important; /* 品牌橙色背景 */
    color: #ffffff !important;           /* 纯白文字 */
    border-color: #ff6600 !important;
    font-weight: bold !important;
    cursor: default !important;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.2);
}

/* 响应式适配 */
@media screen and (max-width: 768px) {
    .pagination-wrapper a, 
    .pagination-wrapper span { 
        padding: 6px 10px !important; 
        font-size: 12px !important; 
        margin: 2px !important;
    }
}


/* ============================================================
   2. 文章详情页专用样式 - 法律法规排版优化 
   ============================================================ */

#legal-article-view {
    padding-bottom: 50px;
}

#legal-article-view .article-container {
    background: #fff;
    padding: 45px 60px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-radius: 4px;
    margin: 0 auto;
    max-width: 1200px; /* 限制宽度，提升长文阅读体验 */
}

/* 标题样式 */
#legal-article-view .article-header {
    text-align: center;
    margin-bottom: 30px;
}

#legal-article-view .article-header h1 {
    font-size: 28px;
    color: #333;
    line-height: 1.5;
    font-weight: bold;
    margin-bottom: 20px;
}

#legal-article-view .article-meta {
    font-size: 14px;
    color: #888;
}

#legal-article-view .article-meta .split {
    margin: 0 15px;
    color: #ddd;
}

#legal-article-view .article-line {
    height: 1px;
    background: linear-gradient(to right, #fff, #e0e0e0, #fff);
    margin-bottom: 40px;
}

/* 正文内容排版 */
#legal-article-view .content-rich-text {
    font-size: 17px; /* 法律法规类文字稍大更易读 */
    line-height: 2;
    color: #444;
    text-align: justify;
}

#legal-article-view .content-rich-text p {
    margin-bottom: 25px;
    text-indent: 2em; /* 段落首行缩进 */
}

#legal-article-view .content-rich-text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* 上下篇导航样式 */
#legal-article-view .article-nav-links {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dashed #eee;
}

#legal-article-view .nav-item {
    font-size: 15px;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#legal-article-view .nav-label {
    color: #999;
}

#legal-article-view .nav-item a {
    color: #003399; /* 统一政务蓝 */
    transition: 0.3s;
}

#legal-article-view .nav-item a:hover {
    color: #ff6600;
    text-decoration: underline;
}

/* 返回按钮 */
#legal-article-view .back-to-list {
    text-align: center;
    margin-top: 40px;
}

#legal-article-view .back-to-list a {
    display: inline-block;
    padding: 10px 35px;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    transition: 0.3s;
    font-size: 14px;
}

#legal-article-view .back-to-list a:hover {
    background: #003399;
    color: #fff;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    #legal-article-view .article-container {
        padding: 25px 20px;
    }
    #legal-article-view .article-header h1 {
        font-size: 22px;
    }
}