/* =============================================
   新闻列表页 - BS5 适配
   ============================================= */
.exnlist .item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.exnlist .item:last-child {
    border-bottom: none;
}

.exnlist .picture {
    overflow: hidden;
    border-radius: 0.25rem;
}

.exnlist .picture img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.exnlist .picture:hover img {
    transform: scale(1.05);
}

.exnlist .detail h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.exnlist .detail h3 a {
    color: #404040;
    text-decoration: none;
}

.exnlist .detail h3 a:hover {
    color: #0067B8;
}

.exnlist .tags {
    font-size: 0.8rem;
}

/* --- 移动端响应式 --- */
@media (max-width: 575.98px) {
    .exnlist .item {
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .exnlist .picture {
        width: 100px;
        flex-shrink: 0;
    }

    .exnlist .picture img {
        width: 100px;
        height: 70px;
    }

    .exnlist .detail h3 {
        font-size: 1.2rem;
        -webkit-line-clamp: 2;
        min-height: 2.8em;
    }

    .exnlist .binfo {
        font-size: 0.75rem;
    }

    .exnlist .tags .badge {
        font-size: 0.7rem;
        padding: 0.2em 0.5em;
    }

    /* 侧边栏移动端 */
    .blog-side-item .d-flex {
        align-items: center !important;
    }

    .blog-side-item .d-flex img {
        width: 80px !important;
        height: 60px !important;
    }

    .blog-side-item .fs-6 {
        font-size: 0.85rem !important;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .share-feed {
        width: 100% !important;
        position: static !important;
        top: auto !important;
    }

    .blog-side-item .headline h3 {
        font-size: 1rem;
    }
}

/* =============================================
   技术资料列表 - BS5 适配
   文件: ex_news_article.css
   ============================================= */

/* --- 容器：两列网格（PC） --- */
.tech-article-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

/* 每张卡片占满格子，内嵌 row 布局 */
.tech-article-section .news_article {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px;
    transition: background 0.3s ease, border-color 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

.tech-article-section .news_article:hover {
    border-bottom-color: #0067B8;
    background: url(//img.changhaihuanbao.com/img/hotbg.png);
}

/* 内部 row：图片左 + 内容右 */
.tech-article-section .news_article .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1;
    min-height: 0;
}

.tech-article-section .news_article .row > .na_pic_col {
    flex: 0 0 140px;
    max-width: 140px;
    padding-left: unset;
}

.tech-article-section .news_article .row > .na_detail_col {
    flex: 1;
    min-width: 0;
}

/* --- 缩略图 .na_pic --- */
.na_pic {
    display: block;
    position: relative;
    overflow: hidden;
}

.na_pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.na_pic:hover img {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
}

/* --- 详情 .na_detail --- */
.news_article .na_detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- 标题 --- */
.news_title {
    position: relative;
}

.news_title h3 {
    font-size: 1.05rem;
    margin-bottom: 5px;
    height: 48px;
    margin-top: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news_title h3 a {
    color: #404040;
    text-decoration: none;
}

.news_title h3 a:hover {
    color: #0067B8;
}

/* --- 标签 --- */
.news_tag {
    float: left;
}

.news_tag .keywords {
    float: left;
    padding-right: 4px;
    height: 15px;
    line-height: 11px;
    margin-top: 4px;
    border-right: 1px solid #bbb;
    max-width: 180px;
    margin-right: 12px;
}

.barlink {
    float: left;
    margin-right: 10px;
}

.barlink a {
    float: left;
    font: 400 12px/16px STHeiti, SimSun;
    color: #0078d7;
    padding: 1px 7px;
    border: 1px solid #0067B8;
    border-radius: 2px;
    text-decoration: none;
    margin-right: 3px;
}

.barlink a:hover {
    background: #0078d7;
    color: #fff;
}

/* --- 时间 --- */
.share-join {
    position: relative;
    float: right;
}

.share-join span {
    color: #bbb;
    font-size: 12px;
}

/* --- hover 特效（共享按钮箭头等） --- */
.news_article:hover .ne-shares-arr,
.news_iframe_ad:hover .ne-shares-arr,
.news_photoview:hover .ne-shares-arr,
.news_special:hover .ne-shares-arr {
    border-color: #f8f8f8;
}

.news_article:hover .ne-shares-open .ne-shares-arr,
.news_iframe_ad:hover .ne-shares-open .ne-shares-arr,
.news_photoview:hover .ne-shares-open .ne-shares-arr,
.news_special:hover .ne-shares-open .ne-shares-arr {
    border-color: #ddd;
}

/* --- BS5 分页 --- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    gap: 0.25rem;
}

.pagination .page-item .page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: #0078d7;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.pagination .page-item .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #0056b3;
}

.pagination .page-item.active .page-link {
    background-color: #0078d7;
    border-color: #0078d7;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* --- 移动端响应式 --- */
@media (max-width: 575.98px) {
    .tech-article-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tech-article-section .news_article {
        padding: 12px;
        margin-bottom: 12px;
    }

    .tech-article-section .news_article .row {
        flex-direction: row;
        align-items: flex-start;
    }

    .tech-article-section .news_article .row > .na_pic_col {
        flex: 0 0 80px;
        max-width: 80px;
        margin-bottom: 0;
    }

    .tech-article-section .news_article .na_pic img {
        width: 80px;
    }

    .tech-article-section .news_article .row > .na_detail_col {
        flex: 1;
        padding-left: 10px;
    }

    .na_detail {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .news_title h3 {
        font-size: 0.9rem;
        line-height: 1.3;
        height: auto;
        -webkit-line-clamp: 2;
        margin-bottom: 0;
    }

    .news_tag {
        float: none;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .barlink {
        float: none;
        margin-right: 0;
    }

    .barlink a {
        font-size: 10px;
        padding: 0 5px;
    }

    .share-join {
        float: none;
        text-align: left;
    }

    .share-join span {
        font-size: 11px;
    }
}

/* =============================================
   标签/搜索结果列表页 - BS5 适配
   ============================================= */
.tag-item-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tag-item {
    border-bottom: 1px solid #676767;
    padding: 10px 0;
    margin: 20px 0;
}

.tag-item h2 {
    line-height: 26px;
    min-height: 40px;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 20px;
}

.tag-item h2 a {
    color: #404040;
    text-decoration: none;
}

.tag-item h2 a:hover {
    color: #0067B8;
}

.tag-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin: 8px 0;
}

.tag-item .picfix {
    float: left;
    position: relative;
    margin-right: 15px;
}

.tag-item .picfix img {
    max-width: 205px;
    height: auto;
}

.tag-item .time {
    color: #bbb;
    font-size: 12px;
}

.tag-item .btn-sm {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .tag-item .picfix {
        display: none;
    }
}

/* 高亮样式 */
.highlight {
    background-color: #ffffcc;
    font-weight: bold;
}