/* 荣誉证书区块样式 v5 (自实现, 含轮播 + 官网同款灯箱, JS 淡入) */

/* ---- 公司动态缩略图: 容器内居中裁剪 (对齐官网 366xaf 效果) ---- */
.p_images .js_thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* ---- 右侧动态列表 (原样式在 dfs css 上, 无法外链; 按官网实际效果还原) ---- */
/* 行距压缩: 6 条总高与左侧公司动态区块齐平 */
.new-list { padding: 6px 10px; }
.new-list a.content { text-decoration: none; display: block; }
.new-list .title-time {
    color: #999 !important;
    font-size: 14px;
    line-height: 18px;
    padding-bottom: 3px;
    transition: color .3s ease;
}
.new-list .title {
    display: inline-block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #333 !important;
    font-size: 18px;
    line-height: 1.5;
    transition: color .3s ease;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
/* 悬停那条: 日期+标题一起变蓝, 其它条不变 (与官网一致) */
.new-list:hover .title-time,
.new-list:hover .title { color: #3e81d0 !important; }

.newBox { position: relative; width: 100%; overflow: hidden; padding: 6px 0 10px; }
.hnl-viewport { overflow: hidden; margin: 0 30px; }
.hnl-track {
    display: flex;
    align-items: flex-start;
    transition: transform .45s ease;
    will-change: transform;
}
/* 以下轮播专用规则全部限定在 .hnl-track 内, 避免污染普通网格列表页 */
.hnl-track .newLi {
    flex: 0 0 23.5%;
    max-width: 23.5%;
    margin-right: 2%;
}
.hnl-track .newLi:nth-child(4n) { margin-right: 2%; }
@media (max-width: 768px) {
    .hnl-track .newLi { flex: 0 0 48%; max-width: 48%; }
    .hnl-viewport { margin: 0 24px; }
}
.hnl-track .porTbox img {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
}
.hnl-track .porBbox { text-align: center; }
.hnl-track .porBbox .leftBox { margin-top: 12px; }
.hnl-track .newTitle {
    color: #fff;
    font-size: 15px;
    line-height: 1.7;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.hnl-track .porBbox a { text-decoration: none; }
.hnl-track .porBbox a:hover .newTitle { color: #f5d97a; }

/* 轮播箭头 (与官网一致: 白色半透明圆钮) */
.hnl-arrow {
    position: absolute;
    top: 38%;
    width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 22px;
    font-family: SimSun, serif;
    cursor: pointer;
    user-select: none;
    z-index: 5;
    transition: background .2s;
}
.hnl-arrow:hover { background: rgba(255, 255, 255, .45); }
.hnl-arrow.left { left: -8px; }
.hnl-arrow.right { right: -8px; }
.hnl-arrow.dis { opacity: .25; cursor: default; }

/* 灯箱 */
.hnl-lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, .78);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.hnl-lightbox img {
    max-width: 86%;
    max-height: 86%;
    box-shadow: 0 0 40px rgba(0, 0, 0, .6);
}
.hnl-lightbox-close {
    position: absolute;
    top: 12px; right: 28px;
    color: #fff;
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

/* 灯箱左右切换箭头 (对齐官网 slickLightbox) */
.hnl-lightbox-arrow {
    position: absolute;
    top: 50%;
    margin-top: -40px;
    color: #fff;
    font-size: 64px;
    line-height: 1;
    font-family: Georgia, serif;
    cursor: pointer;
    user-select: none;
    z-index: 2;
    text-shadow: 0 0 12px rgba(0,0,0,.5);
}
.hnl-lightbox-arrow.left { left: 24px; }
.hnl-lightbox-arrow.right { right: 24px; }
.hnl-lightbox-arrow:hover { opacity: .85; }
.hnl-lightbox img { cursor: default; }
.hnl-lightbox-close { z-index: 3; }
