/* ============================================================
 * list.css —— 栏目概览页（左侧栏目导航 + 右侧稿件列表 + 分页）
 * 依赖：public.css（容器 / 头部 / 页脚）、bootstrap 栅格
 *
 * 设计稿反解（1920 稿，缩放 0.572）：
 *   侧栏宽 ≈280px；蓝头高 78px、字 26px；面板底 #EFF7FE
 *   子栏目行高 ≈72px、字 20px、居中；激活项蓝色 + 文档图标
 *   列表行高 60px、每 5 条一组、组间 1px 分隔线（#E1EAF5）
 *   分页：白底蓝框蓝字，激活页蓝底白字
 * ============================================================ */

.list-main {
    margin-top: 24px;
    margin-bottom: 48px;
    --bs-gutter-x: 1.75rem;    /* 桌面两列间距 28px */
    --bs-gutter-y: 1.5rem;     /* 堆叠时的纵向间距 */
}

/* ---------- 左侧：栏目导航 ---------- */
.col-side {
    display: flex;
    flex-direction: column;
    height: 100%;   
}

.side-head {
    flex: 0 0 auto;
    height: 78px;
    color: #fff;
    font-size: 26px;
    font-weight: bold;
    line-height: 78px;
    letter-spacing: 2px;
    text-align: center;
    background-image:linear-gradient(to bottom,#1A6CBD,#53BAFF);
    border-top-left-radius: 20px;
}

.side-body {
    flex: 1 1 auto;
    background-image:linear-gradient(to right,rgba(234, 245, 254, 1),rgba(234, 245, 254, 0.5));
    padding: 16px 0 28px;
}

.side-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-nav li + li {
    margin-top: 12px;
}

.side-nav a {
    display: flex;
    align-items: center;
    justify-content: center;   /* 设计稿子栏目居中 */
    height: 60px;
    color: #333;
    font-size: 20px;
    text-decoration: none;
    transition: color 180ms ease;
    position: relative;          /* 为图标绝对定位提供参照 */
}

.side-nav a .icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    color: #1A6CBD;
    position: absolute;
    left: 50px;
}

/* 图标只在激活项出现 */
.side-nav li:not(.active) .icon {
    display: none;
}

.side-nav li.active a,
.side-nav a:hover,
.side-nav a:focus {
    color: #1A6CBD;
    font-weight: bold;
    border-bottom: 1px solid #fff;
}

/* ---------- 右侧：列表区 ---------- */
.list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #E1EAF5;
    padding: 15px 0px 20px 0px;
}

.list-title {
    margin: 0;
    color: #1A6CBD;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.list-crumb {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 14px;
}

.list-crumb .icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    color: #0080FF;
}

.list-crumb a {
    color: #999;
    text-decoration: none;
    transition: color 180ms ease;
}

.list-crumb a:hover,
.list-crumb a:focus {
    color: #1A6CBD;
}

.list-crumb .crumb-sep {
    margin: 0 8px;
    color: #C4CDD6;
}

.list-crumb .crumb-cur {
    color: #999;
}

/* 列表：每组 5 条，组间 1px 分隔线 */
.list-group {
    margin: 0;
    padding: 0;
    list-style: none;
}

.list-group li {
    height: 60px;
}

.list-group li a {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

/* 菱形装饰块（与首页稿件列表同款：#32C5FF 旋转 45°） */
.list-group li a::before {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-right: 14px;
    border:1px #1A6CBD solid;
    content: "";
    transform: rotate(45deg);
    transition: background-color 180ms ease;
    box-shadow: 3px -3px 0px #0080FF;
}

.l-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: #333;
    font-size: 18px;
    line-height: 26px;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 180ms ease;
}

.l-date {
    flex: 0 0 auto;
    margin-left: 24px;
    color: #999;
    font-size: 15px;
}

.list-group li a:hover .l-text,
.list-group li a:focus .l-text {
    color: #1A6CBD;
}

.list-group li a:hover::before,
.list-group li a:focus::before {
    background: #1A6CBD;
}

/* 组间分隔线：线紧贴上一组末行，隔 28px 进入下一组 */
.list-group + .list-group {
    margin-top: 0;
    padding-top: 28px;
    border-top: 1px solid #E1EAF5;
}

/* 列表改为置标循环（单个 ul 平铺）后，用 nth-child 还原「每 5 条一组」的组间分隔线 */
.list-group li:nth-child(5n+1):not(:first-child) {
    border-top: 1px solid #E1EAF5;
    padding-top: 28px;
}
/* ---------- 分页 ---------- */
.list-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 36px;
}

.list-pager a,
.pager-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-width: 30px;
    margin-left: 8px;
    padding: 0 12px;
    border: 1px solid #9FC0E0;
    border-radius: 3px;
    background: #fff;
    color: #1A6CBD;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.pagenav_span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-width: 30px;
    margin-left: 8px;
    padding: 0 12px;
    border: 1px solid #9FC0E0;
    border-radius: 3px;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
    background: #1A6CBD;
}
.list-pager a:hover,
.list-pager a:focus,
.pager-go:hover,
.pager-go:focus {
    border-color: #1A6CBD;
    background: #EAF3FC;
}

/* 当前页：蓝底白字 */
.list-pager a.active {
    border-color: #1A6CBD;
    background: #1A6CBD;
    color: #fff;
    cursor: default;
}

.pager-input {
    width: 52px;
    height: 34px;
    margin-left: 8px;
    padding: 0 6px;
    border: 1px solid #9FC0E0;
    border-radius: 3px;
    color: #333;
    font-size: 14px;
    text-align: center;
    outline: none;
}

.pager-input:focus {
    border-color: #1A6CBD;
}

/* ---------- 响应式 ---------- */
@media (max-width: 991.98px) {
    .list-main {
        margin-top: 16px;
        margin-bottom: 32px;
    }

    /* 堆叠后侧栏不再跟随右列高度 */
    .col-side {
        height: auto;
    }

    .side-head {
        height: 60px;
        line-height: 60px;
        font-size: 22px;
        border-top-left-radius: 0;
    }

    .side-body {
        padding: 8px 0 12px;
    }

    .side-nav {
        display: flex;
        flex-wrap: wrap;
    }

    .side-nav li {
        flex: 1 1 33.33%;
    }

    .side-nav li + li {
        margin-top: 0;
    }

    .side-nav a {
        height: 48px;
        font-size: 16px;
    }
    .side-nav a .icon {
        display: none;          /* 堆叠后不再显示图标 */
    }
    .list-head {
        height: auto;
        margin-top: 16px;
    }

    .list-title {
        font-size: 20px;
    }

    .list-group li {
        height: 52px;
    }

    .l-text {
        font-size: 16px;
        line-height: 24px;
    }

    .l-date {
        margin-left: 12px;
        font-size: 13px;
    }

    .list-pager {
        margin-top: 24px;
    }
}

@media (max-width: 575.98px) {
    .l-date {
        display: none;         /* 太窄时隐藏日期，标题独占 */
    }

    .list-pager a,
    .pager-go {
        height: 30px;
        min-width: 30px;
        margin-left: 6px;
        padding: 0 8px;
        font-size: 13px;
    }

    .pager-input {
        width: 44px;
        height: 30px;
        margin-left: 6px;
    }
}
