/* ============================================
   list.css  栏目列表页样式
   ============================================ */

/* ----- 面包屑/页面标题区(可选) ----- */
.list-wrap {
    background: #fff;
    border: 1px solid #d4e2f1;
    border-radius: 6px;
    padding: 22px;
    min-height: 780px;
}

/* ----- 列表 ----- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.news-item {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e7eef6;
    border-radius: 6px;
    padding: 20px 22px;
    transition: all .2s;
    cursor: pointer;
}

.news-item:hover {
    border-color: #d4e2f1;
    box-shadow: 0 2px 8px rgba(40, 80, 160, .08);
    transform: translateY(-1px);
}

/* 日期方块 */
.news-date {
    flex: 0 0 88px;
    height: 88px;
    background: #f4f8fc;
    border: 1px solid #e0e8f2;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.news-date .day {
    font-size: 36px;
    color: #0036A2;
    font-weight: bold;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.news-date .ym {
    font-size: 12px;
    color: #0036A2;
    margin-top: 6px;
    letter-spacing: 1px;
    font-family: Arial, sans-serif;
}

/* 文章主体 */
.news-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.news-main h4 {
    font-size: 17px;
    color: #222;
    font-weight: bold;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item:hover .news-main h4 {
    /*color: #e63838*/
}

.news-main .desc {
    font-size: 14px;
    color: #888;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 查看详情按钮 */
.news-action {
    flex: 0 0 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
}

.news-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 0 16px;
    background: #f4f8fc;
    border: 1px solid #d4e2f1;
    border-radius: 6px;
    color: #666;
    font-size: 13px;
    transition: all .15s;
}

.news-item:hover .news-btn {
    /*background: #f4f8fc;*/
    /*border: 1px solid #d4e2f1;*/
    /*color: #666;*/
}

/* ----- 分页 ----- */
.pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.pagination a, .pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4e2f1;
    background: #fff;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all .15s;
}

.pagination a:hover {
    border-color: #0036A2;
    color: #0036A2
}

.pagination .current {
    background: #0036A2;
    border-color: #0036A2;
    color: #fff;
    cursor: default
}

.pagination .ellipsis {
    border: 0;
    background: transparent;
    cursor: default
}

.pagination .prev, .pagination .next {
    font-family: "SimSun", serif;
    font-weight: bold
}

/* ----- 列表为空 ----- */
.empty-tip {
    padding: 60px 0;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* ============================================
   媒体查询 - Tablet (≤1024)
   ============================================ */
@media (max-width: 1024px) {
    .list-wrap {
        padding: 18px;
        min-height: auto
    }

    .news-list {
        gap: 14px
    }

    .news-item {
        padding: 16px 18px
    }

    .news-date {
        flex: 0 0 76px;
        height: 76px;
        margin-right: 16px
    }

    .news-date .day {
        font-size: 30px
    }

    .news-action {
        flex: 0 0 100px;
        margin-left: 16px
    }
}

/* ============================================
   媒体查询 - Mobile (≤768)
   ============================================ */
@media (max-width: 768px) {
    .list-wrap {
        padding: 14px
    }

    .news-list {
        gap: 10px
    }

    .news-item {
        flex-wrap: wrap;
        padding: 14px;
        align-items: flex-start;
    }

    .news-date {
        flex: 0 0 60px;
        height: 60px;
        margin-right: 12px;
    }

    .news-date .day {
        font-size: 24px
    }

    .news-date .ym {
        font-size: 10px;
        margin-top: 4px
    }

    .news-main {
        flex: 1;
        min-width: 0
    }

    .news-main h4 {
        font-size: 15px;
        margin-bottom: 4px
    }

    .news-main .desc {
        font-size: 12px;
        line-height: 1.5;
        -webkit-line-clamp: 2
    }

    .news-action {
        flex: 1 0 100%;
        margin-left: 0;
        margin-top: 10px;
        justify-content: flex-end;
    }

    .news-btn {
        height: 30px;
        padding: 0 12px;
        font-size: 12px
    }

    .pagination {
        margin-top: 20px;
        gap: 4px
    }

    .pagination a, .pagination span {
        min-width: 30px;
        height: 30px;
        padding: 0 6px;
        font-size: 13px
    }
}
