@charset "utf-8";
/* ============================================================
   列表页（资讯列表）样式 —— 独立文件（new.html / diqv.html 共用）
   引用方式：<link rel="stylesheet" href="{pboot:httpurl}/skin/css/list-mobile.css">
   放在 style.css / sjlm.css 之后引用，保证优先级
   ============================================================ */

/* ========== PC 端卡片整体 ========== */
.list-3 li { margin-bottom: 20px; }
.list-3 li a {
    display: block;
    overflow: hidden;
    background-color: #fff;
    padding: 24px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}
.list-3 li a:hover {
    border-color: #fbdcdc;
    box-shadow: 0 10px 26px rgba(230, 32, 34, .08);
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
}

/* 缩略图：固定尺寸裁切，保证列表整齐 */
.list-3 li .img-center {
    float: left;
    width: 240px;
    height: 150px;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    line-height: normal;
}
.list-3 li .img-center img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transition: all .5s;
    transition: all .5s;
}
.list-3 li a:hover .img-center img {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}
.list-3 li .text { margin-left: 264px; }

/* 标题行：栏目标签 + 标题（最多两行） */
.list-3 li .text h4 {
    display: flex;
    align-items: flex-start;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}
.sort-badge {
    display: inline-block !important;
    flex: 0 0 auto !important;
    float: none !important;
    margin: 4px 10px 0 0 !important;
    padding: 0 8px !important;
    border: none !important;
    background: #fdf0f0 !important;
    color: #e62022 !important;
    font-size: 12px !important;
    font-weight: normal;
    border-radius: 2px;
    line-height: 20px;
    white-space: nowrap;
    letter-spacing: .5px;
}
.list-3 li .text h4 .title-text {
    flex: 1 1 auto;
    min-width: 0;
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 !important;
    font-size: inherit !important;
    color: inherit !important;
    word-break: break-word;
}
.list-3 li a:hover .text h4 .title-text { color: #e62022 !important; }

/* 描述：最多两行 */
.list-3 li .text p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #888;
}

/* 元信息行：日期 | 作者 | 浏览 */
.list-3 .meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: 12px;
    color: #999;
}
.list-3 .meta span {
    position: relative;
    margin: 0 !important;
    font-size: 12px !important;
    color: #999 !important;
}
.list-3 .meta span + span { margin-left: 20px !important; }
.list-3 .meta span + span::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 1px;
    height: 10px;
    margin-top: -5px;
    background: #e3e3e3;
}
.list-3 .meta span:empty { display: none; }
.list-3 .meta .pub-date,
.list-3 .meta .pub-author { display: block !important; }

/* 标题+标签的包装层：不生成盒子 */
.title-row { display: contents; }

/* 分页按钮置灰态（JS 控制） */
.mypages li.disabled { border-color: #e5e5e5 !important; }
.mypages li.disabled a { color: #bbb !important; pointer-events: none; }

/* ========== 手机端布局 ========== */
@media (max-width: 768px) {
    .list-3 li { margin-bottom: 12px; }
    .list-3 li > a {
        display: grid !important;
        grid-template-columns: 110px 1fr !important;
        column-gap: 10px !important;
        row-gap: 6px !important;
        align-items: start !important;
        padding: 14px !important;
        border-radius: 8px !important;
    }
    .list-3 .text { display: contents !important; }

    /* 第一行通栏：标签浮动在左，标题文字环绕（换行后第二行回到标签下方） */
    .list-3 .title-row {
        grid-column: 1 / -1 !important;
        grid-row: 1;
        display: flex !important;
        align-items: flex-start !important;
    }
    .list-3 .title-row .sort-badge {
        float: left !important;
        flex: none !important;
        line-height: 16px;
        margin: 3px 6px 0 0 !important;
        padding: 0 6px !important;
        border: none !important;
        border-radius: 3px !important;
        background: #fdf0f0 !important;
        color: #e62022 !important;
        font-weight: normal;
        letter-spacing: .5px;
        white-space: nowrap;
    }
    .list-3 .title-row h4 {
        order: 2;
        flex: 1 1 0 !important;
        min-width: 0;
        display: block !important;
        margin: 0 !important;
        font-size: 16px !important;
        line-height: 1.45 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: break-word;
    }
    .list-3 li .text h4 .title-text {
        display: inline !important;
        overflow: visible !important;
        -webkit-line-clamp: unset;
    }

    /* 左列：图跨第二三行 */
    .list-3 .img-center {
        grid-column: 1;
        grid-row: 2 / span 2;
        width: 100% !important;
        height: auto !important;
        min-height: 70px !important;
        margin: 0 !important;
        float: none !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        align-self: stretch !important;
        position: relative !important;
    }
    .list-3 .img-center img {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    /* 右列：描述第二行 */
    .list-3 .text p {
        grid-column: 2;
        grid-row: 2;
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
        -webkit-line-clamp: 4 !important;
    }

    /* 元信息第三行：日期 | 作者（浏览隐藏） */
    .list-3 .meta {
        grid-column: 2;
        grid-row: 3;
        display: flex !important;
        align-items: center;
        margin: 0 !important;
        white-space: nowrap;
        overflow: hidden;
    }
    .list-3 .meta span + span { margin-left: 14px !important; }
    .list-3 .meta span + span::before { left: -7px; }
    .list-3 .meta .pub-visits { display: none !important; }

    /* 手机端分页：上一页 / 数字平铺 / 下一页（单行不换行） */
    .mypages { height: auto; margin: 20px 0 10px; line-height: normal; }
    .mypages ul { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; }
    .mypages li { float: none; flex-shrink: 0; }
    .mypages li.page-first,
    .mypages li.page-last { display: none; }
    .mypages .page-num,
    .mypages .page-num-current {
        display: inline-block !important;
        flex-shrink: 0;
        min-width: 28px;
        height: 30px;
        padding: 0 4px;
        box-sizing: border-box;
        line-height: 28px;
        text-align: center;
        font-size: 12px;
        color: #666;
        border: 1px solid #ddd;
        border-radius: 4px;
        background: #fff;
        margin: 0 2px;
    }
    .mypages .page-num-current {
        background: #e62022 !important;
        border-color: #e62022 !important;
        color: #fff !important;
    }
    .mypages .page-dot {
        flex-shrink: 0;
        border: none;
        background: none;
        padding: 0 1px;
        margin: 0;
        line-height: 30px;
        font-size: 12px;
        color: #999;
        cursor: default;
    }
    .mypages li.page-prev,
    .mypages li.page-next {
        height: 30px;
        margin: 0 3px;
        padding: 0;
        line-height: 28px;
        border: 1px solid #e62022;
        background: #fff;
    }
    .mypages li.page-prev a,
    .mypages li.page-next a {
        display: block;
        padding: 0 10px;
        color: #e62022;
        font-size: 12px;
        line-height: 28px;
        white-space: nowrap;
    }
    .mypages li.page-prev a[href=''],
    .mypages li.page-next a[href=''] {
        color: #bbb;
    }
}

/* ========== 地区列表（diqv.html）专属 ========== */
/* 地区标签：品牌红底白字 + 定位图标，突出地域属性（区别于资讯页的浅红底红字） */
.list-3.area-list .sort-badge::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 11px;
    margin-right: 4px;
    vertical-align: -1px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.list-3.area-list li .text h4 .sort-badge,
.list-3.area-list .title-row .sort-badge {
    background: #e62022 !important;
    color: #fff !important;
    border-radius: 3px;
    letter-spacing: 1px;
}
.list-3.area-list li a:hover .text h4 .sort-badge {
    background: #c5181a !important;
}
