/* ============================================================
   学术论文页 · 版本一「编年时间轴」
   左侧竖轴 + 年份标新红胶囊 + 连续序号节点 + 期刊红字 + 灰色元信息
   仅作用于 .journal-timeline（模板层精准包裹，仅论文页命中）
   正文文字完全不改，高优先级覆盖正文内联 <style>；中英通用
   ============================================================ */

.journal-timeline .paper{
    box-sizing: border-box !important;
    width: min(1000px, 100%) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 44px 0 30px !important;
    font-family: "Source Han Sans CN", "Microsoft YaHei", sans-serif !important;
    font-size: 1.2em !important; /* 沿用改动前正文原字号 */
    text-align: left !important;
}

/* 时间轴容器 + 竖线 */
.journal-timeline .paper .list{
    box-sizing: border-box !important;
    position: relative;
    padding: 0 0 0 52px !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: left !important;
    line-height: 1.75 !important;
}
.journal-timeline .paper .list::before{
    content: "";
    position: absolute;
    left: 20px;
    top: 26px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(to bottom, var(--base-red, #b40000) 0%, #dfe3e8 100%);
    border-radius: 2px;
}

/* 年份胶囊徽章，挂轴上（沿用企业资质页样式） */
.journal-timeline .paper .j-year{
    position: relative;
    display: inline-flex !important;
    align-items: center;
    font-family: Arial, "Microsoft YaHei", sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    color: #fff !important;
    background: var(--base-red, #b40000) !important;
    padding: 7px 24px !important;
    margin: 34px 0 20px !important;
    border-radius: 999px !important;
    text-align: left !important;
    text-shadow: none !important;
    box-shadow: 0 4px 14px rgba(180,0,0,.2);
}
.journal-timeline .paper .list > .j-year:first-child{
    margin-top: 4px !important;
}
/* 年份节点：外圈白底红边大圆（沿资质页 22px） */
.journal-timeline .paper .j-year::before{
    content: "";
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--base-red, #b40000);
    box-sizing: border-box;
    box-shadow: 0 0 0 4px var(--color-background-primary, #fff);
}
/* 年份节点：内圈红实心点（沿资质页 7px） */
.journal-timeline .paper .j-year::after{
    content: "";
    position: absolute;
    left: -32.5px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--base-red, #b40000);
}

/* 文献条目 */
.journal-timeline .paper .list ul{
    list-style: none !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    width: 100% !important;
}
.journal-timeline .paper .j-item{
    box-sizing: border-box !important;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left !important;
    line-height: 1.75 !important;
    color: #4a5158 !important;
    text-shadow: none !important;
    margin: 0 0 4px !important;
    padding: 13px 2px !important;
    border-bottom: 1px solid #eceff2 !important;
    background: transparent !important;
    width: 100% !important;
    transform: none !important;
    transition: background .2s ease;
}
.journal-timeline .paper .j-item:nth-child(odd){
    color: #4a5158 !important;
}
.journal-timeline .paper .j-item:hover{
    color: #4a5158 !important;
    background: #fafbfc !important;
    transform: none !important;
}

/* 序号节点：轴上小圆点用序号本身承载，加左侧圆点标识 */
.journal-timeline .paper .j-num{
    position: relative;
    flex: 0 0 auto;
    min-width: 28px;
    font-family: Arial, sans-serif !important;
    font-size: .9rem !important;
    font-weight: 700 !important;
    color: var(--base-red, #b40000) !important;
    line-height: 1.75 !important;
    padding-top: 0 !important;
}
/* 每条文献的小节点，串在竖轴上（沿资质页 8px） */
.journal-timeline .paper .j-item::before{
    content: "";
    position: absolute;
    left: -38px;
    top: 22px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c8cdd3;
    transition: background .25s ease, transform .25s ease;
}
.journal-timeline .paper .j-item:hover::before{
    background: var(--base-red, #b40000);
    transform: scale(1.25);
}

/* 文献正文 */
.journal-timeline .paper .j-text{
    flex: 1 1 auto;
    min-width: 0;
    text-align: left !important;
    overflow-wrap: anywhere;
}

/* 期刊名：标新红斜体，作为视觉锚点 */
.journal-timeline .paper .j-journal{
    color: var(--base-red, #b40000) !important;
    font-style: italic !important;
    font-weight: 700 !important;
}

/* doi / PMID / Epub 元信息：灰色小字降权 */
.journal-timeline .paper .j-meta{
    display: block;
    margin-top: 3px;
    font-size: .95rem !important;
    line-height: 1.6 !important;
    color: #9aa1a9 !important;
    font-style: normal !important;
    font-weight: 400 !important;
    word-break: break-word;
}

/* 窄屏适配 */
@media screen and (max-width: 786px){
    .journal-timeline .paper{
        padding: 30px 0 20px !important;
    }
    .journal-timeline .paper .list{
        padding-left: 38px !important;
    }
    .journal-timeline .paper .list::before{
        left: 13px;
    }
    .journal-timeline .paper .j-year{
        font-size: 1.15rem !important;
        padding: 6px 18px !important;
        margin: 26px 0 16px !important;
    }
    .journal-timeline .paper .j-year::before{
        left: -30px;
        width: 18px;
        height: 18px;
    }
    .journal-timeline .paper .j-year::after{
        left: -24px;
        width: 6px;
        height: 6px;
    }
    .journal-timeline .paper .j-item{
        gap: 10px;
        padding: 12px 0 !important;
    }
    .journal-timeline .paper .j-item::before{
        left: -29px;
        top: 18px;
    }
    .journal-timeline .paper .j-num{
        min-width: 24px;
        font-size: .82rem !important;
    }
}
