/* ============ 新闻列表页 ============ */

/* 分类标题 */
.query-header {
    padding: 30px 0;
}
.query-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #0579c4;
    display: inline-block;
}

/* 新闻卡片列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-card {
    display: flex;
    gap: 24px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all .3s;
}

.news-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    border-color: #ddd;
}

.news-card .card-img {
    flex-shrink: 0;
    width: 240px;
    height: 160px;
    border-radius: 6px;
    overflow: hidden;
}

.news-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.news-card:hover .card-img img {
    transform: scale(1.05);
}

.news-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.news-card .card-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.news-card .card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .card-title {
    color: #0579c4;
}

.news-card .card-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .card-more {
    margin-top: 10px;
    font-size: 13px;
    color: #0579c4;
    font-weight: 500;
    transition: gap .3s;
}

.news-card:hover .card-more {
    letter-spacing: 1px;
}

/* 响应式 */
@media (max-width: 768px) {
    .query-header h2 {
        font-size: 22px;
    }

    .news-card {
        flex-direction: column;
        padding: 0;
        border: none;
        border-bottom: 1px solid #eee;
        border-radius: 0;
        gap: 12px;
    }

    .news-card .card-img {
        width: 100%;
        height: 200px;
        border-radius: 0;
    }

    .news-card .card-body {
        padding: 0 16px 20px;
    }

    .news-card .card-title {
        font-size: 18px;
    }
}

/* ============翻页============== */

div#showpages {
clear:both;
padding:0px;
margin:20px 0px;
width:100%;
height:30px;
white-space: nowrap;
}

div#pagesinfo {
float:left;
padding:3px 8px;
white-space: nowrap;
}

div#pages {
float:right;
padding-right:8px;
white-space: nowrap;
}

div#pages ul{
margin:0;
padding:0;
}

div#pages a:link,div#pages a:visited,div#pages a:active{
color:#fff;
text-decoration: none;
}

div#pages a:hover{
color:#fff;
text-decoration: none;
}

div#pages li{
margin:3px;
padding:2px 5px;
list-style-type: none;
float:left;
background:#79b601;
color:#fff;
border:1px #79b601 solid;
white-space: nowrap;
}

div#pages li.pagesnow{
color:#fff;
background-color:#666666;
white-space: nowrap;
border:1px #666666 solid;
}

div#pages li.pbutton{
color:#fff;
background-color:#79b601;
padding:3px 5px 1px 5px;
white-space: nowrap;
border:1px #79b601 solid;
}

div#pages li.opt{
color:#000;
padding:0px 2px;
white-space: nowrap;
border:0px;
background:#fff;
}