/* ===== 面包屑导航 ===== */
.breadcrumb {
    padding: 0 40px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #999;
}

.breadcrumb a {
    color: #005aa6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #333;
}

/* ===== 列表页主体布局 ===== */
.list-wrapper {
    display: flex;
    gap: 30px;
    padding: 0 40px 35px 40px;
    align-items: flex-start;
}

/* ===== 左侧二级导航 ===== */
.list-sidebar {
    width: 260px;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    background-color: #005aa6;
    color: #fff;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
}

.sidebar-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #fff;
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: middle;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.sidebar-nav li:last-child {
    border-bottom: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    position: relative;
}

.sidebar-nav li a::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid #aaa;
    margin-right: 10px;
    flex-shrink: 0;
    transition: border-left-color 0.2s;
}

.sidebar-nav li a:hover {
    background-color: #f0f8ff;
    color: #005aa6;
    padding-left: 25px;
}

.sidebar-nav li a:hover::before {
    border-left-color: #005aa6;
}

.sidebar-nav li.active a {
    background-color: #e8f3ff;
    color: #005aa6;
    font-weight: bold;
}

.sidebar-nav li.active a::before {
    border-left-color: #005aa6;
}

/* ===== 右侧文章列表区 ===== */
.list-main {
    flex: 1;
    min-width: 0;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.list-main-header {
    background-color: #f0f8ff;
    padding: 16px 24px;
    border-bottom: 1px solid #e0e0e0;
    color: #005aa6;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

.list-main-body {
    padding: 5px 24px;
}

/* ===== 文章条目 ===== */
.article-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px dashed #e8e8e8;
    transition: background-color 0.15s;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    background-color: #fafcff;
}

.article-title {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-title a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-title a:hover {
    color: #005aa6;
}

.article-tag {
    display: inline-block;
    background-color: #005aa6;
    color: #fff;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 3px;
    flex-shrink: 0;
}

.article-tag.hot {
    background-color: #e74c3c;
}

.article-tag.new {
    background-color: #27ae60;
}

.article-date {
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
    margin-left: 20px;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 25px 24px;
    border-top: 1px solid #e8e8e8;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: #005aa6;
    color: #005aa6;
    background-color: #f0f8ff;
}

.pagination .current {
    background-color: #005aa6;
    border-color: #005aa6;
    color: #fff;
    font-weight: bold;
}

.pagination .ellipsis {
    border: none;
    min-width: auto;
    padding: 0 4px;
}

.pagination .prev,
.pagination .next {
    font-size: 13px;
}

/* ===== 响应式：大屏幕 ≥1400px ===== */
@media (min-width: 1400px) {
    .breadcrumb { padding: 0 60px; width: 1200px;margin: 20px calc(50% - 670px);}
    .list-wrapper {
        margin: 0 calc(50% - 650px) 45px calc(50% - 650px);
        /*! gap: 40px; */
        width: 1300px;
    }
}

/* ===== 响应式：中屏 768-1199px ===== */
@media (min-width: 768px) and (max-width: 1199px) {
    .breadcrumb { padding: 0 30px; }
    .list-wrapper { padding: 0 30px 30px 30px; gap: 20px; }
    .list-sidebar { width: 220px; }
}

/* ===== 响应式：小屏 <768px ===== */
@media (max-width: 767px) {
    .breadcrumb {
        padding: 0 16px;
        font-size: 13px;
    }

    .list-wrapper {
        flex-direction: column;
        padding: 0 16px 25px 16px;
        gap: 16px;
    }

    .list-sidebar { width: 100%; }

    .sidebar-title { font-size: 16px; padding: 14px 16px; }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }

    .sidebar-nav li {
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
        flex: 1 1 auto;
        min-width: 33.33%;
    }

    .sidebar-nav li:nth-child(3n) { border-right: none; }

    .sidebar-nav li a {
        padding: 12px 10px;
        font-size: 14px;
        justify-content: center;
    }

    .sidebar-nav li a::before { display: none; }
    .sidebar-nav li a:hover { padding-left: 10px; }

    .list-main-header { padding: 14px 16px; font-size: 16px; }
    .list-main-body { padding: 0 16px; }

    .article-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
        gap: 6px;
    }

    .article-title a {
        font-size: 14px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
    }

    .article-date { margin-left: 0; font-size: 12px; }

    .pagination {
        padding: 20px 16px;
        flex-wrap: wrap;
    }

    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}
