/* =========================================================
 * news-card.css
 * 文献中心 / 客户发表文献列表卡片样式
 * 来源：蓝湖设计稿（d:\lanhu_huaban1，画板 1）
 * 命名空间前缀 nc-（news card / 文献卡片），避免污染全局样式
 *
 * 卡片结构与设计稿字段对应关系：
 *   nc-journal    ← 期刊          (LinkUrl / Magazine)
 *   nc-if-badge   ← 影响因子 IF   (Introduction)
 *   nc-doi        ← DOI / 文章链接 (SubTitle)
 *   nc-title      ← 文献标题       (Title)
 *   nc-info(服务) ← 产品/相关服务   (Title1)
 *   nc-info(领域) ← 研究领域       (Title2)
 *   nc-info(单位) ← 单位/合作单位   (Title3)
 * ========================================================= */

.document .newslist > li {
    padding: 0;
}
/* ---------- 卡片容器 ---------- */
.nc-card {
    position: relative;
    display: block;
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 52px 32px;
    margin-bottom: 26px;
    transition: box-shadow 0.2s ease;
}
 

/* ---------- 顶部行：期刊 + IF + DOI ---------- */
.nc-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

/* 期刊名 */
.nc-journal {
    color: #181818;
    font-size: 24px;
    font-weight: 500;
    margin-right: 22px;
}

/* IF 蓝色胶囊 */
.nc-if-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 109px;
    height: 35px;
    padding: 0 18px;
    background: #2e4ec4;
    color: #ffffff;
    font-size: 20px;
    border-radius: 17px;
}

/* 若没有 IF，隐藏（避免空胶囊） */
.nc-if-badge:empty {
    display: none;
}

/* DOI 区 */
.nc-doi {
    display: flex;
    align-items: center;
    margin-left: auto;
}

    .nc-doi::before {
        content: "DOI:";
        color: #181818;
        font-size: 18px;
        margin-right: 14px;
    }

    .nc-doi .nc-doi-link {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        min-width: 270px;
        height: 35px;
        padding: 0 18px;
        color: #2e4ec4;
        font-size: 16px;
        border: 1px solid #2e4ec4;
        border-radius: 17px;
        background: #ffffff;
        text-decoration: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nc-doi .nc-doi-icon {
        width: 13px;
        height: 13px;
        background: url(../images/news/link.png) no-repeat center;
        background-size: contain;
        flex-shrink: 0;
        margin-left: 10px;
    }

/* 若 DOI 为空，隐藏整个 DOI 区 */
.nc-doi:empty {
    display: none;
}

/* ---------- 标题 ---------- */
.nc-title {
    display: block;
    color: #181818;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 35px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ---------- 底部行：信息卡 + 查看更多 ---------- */
.nc-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* 三个信息卡（服务 / 领域 / 单位）的容器 */
.nc-infos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

/* 单个信息卡 */
.nc-info {
    display: flex;
    align-items: center;
    width: 235px;
    height: 90px;
    padding: 0 25px;
    background: #eff1fe;
    border-radius: 20px;
    box-sizing: border-box;
    flex-shrink: 0;
}

    .nc-info + .nc-info {
        margin-left: 32px;
    }

.nc-info-icon {
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-right: 14px;
    flex-shrink: 0;
}

    .nc-info-icon.nc-icon-service {
        background-image: url(../images/news/icon-service.png);
    }

    .nc-info-icon.nc-icon-research {
        background-image: url(../images/news/icon-research.png);
    }

    .nc-info-icon.nc-icon-partner {
        background-image: url(../images/news/icon-partner.png);
    }

.nc-info-text {
    min-width: 0;
    line-height: 1.2;
}

.nc-info-label {
    color: #181818;
    font-size: 16px;
    margin-bottom: 10px;
}

.nc-info-value {
    color: #2e4ec4;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 查看更多 ---------- */
.nc-more {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 122px;
    height: 29px;
    text-decoration: none;
    color: #181818;
    font-size: 20px;
    flex-shrink: 0;
}

.nc-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;    
    border-radius: 50%;
    flex-shrink: 0;
}

    .nc-more-icon::after {
        content: "";
        display: block;
        width: 29px;
        height: 29px;
        background: url(../images/news/icon-more.png) no-repeat center;
        background-size: contain;
    }

/* ---------- 覆盖 document 页面原有 box2 区域（避免旧的查看更多残留） ---------- */
.document .newslist li .nc-card .box2 {
    display: none;
}

/* ---------- 响应式：小屏适配 ---------- */
@media (max-width: 1024px) {
    .nc-card {
        padding: 24px 20px 20px;
    }

    .nc-meta {
        margin-bottom: 20px;
    }

    .nc-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .nc-doi {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
    }

        .nc-doi .nc-doi-link {
            min-width: 0;
            width: 100%;
        }

    .nc-infos {
        flex-direction: column;
        align-items: stretch;
    }

    .nc-info {
        width: 100%;
        height: auto;
        min-height: 70px;
        padding: 14px 16px;
        margin-bottom: 12px;
    }

        .nc-info + .nc-info {
            margin-left: 0;
        }

    .nc-more {
        margin-top: 8px;
    }
}