/* ========== 原有头部横幅背景（保留不变） ========== */
.pkp_structure_head {
    background-image: url("https://jfed.insspress.org/public/journals/2/homepageImage_en.png") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.pkp_head_wrapper {
    background-color: transparent !important;
}
/* ========== 编委会块作为全站左侧窄栏 ========== */
.pkp_structure_content.has_sidebar {
    position: relative;
}
#customblock-editorial-board {
    position: absolute;
    top: -25px;
    left: 28px;
    width: min(200px, calc((100vw - 1180px) / 2));
    margin-left: calc(-1 * min(205px, max(0px, (100vw - 1176px) / 2)));
    z-index: 20;
    padding: 0 8px;
    box-sizing: border-box;
    max-height: 720px;
}
/* ========== ✅【修复核心】条目容器占满整栏宽度，文字才能真正居中 ========== */
#customblock-editorial-board .content > div {
    width: 100% !important;  /* 新增：条目占满父容器宽度 */
    margin: 30px 0 !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box;
}
#customblock-editorial-board .content > div > div {
    margin-right: 0 !important;
    text-align: center !important;
    width:100% !important; /* 子文本容器也100%宽 */
}
/* ========== 左侧侧边栏编委会自定义块样式 ========== */
/* 头像 */
#customblock-editorial-board .content img {
    width:85px !important;
    height:auto;
    margin-bottom:4px !important;
    display:block;
    margin-left:auto;
    margin-right:auto;
}
/* 【名字链接：放大加粗，居中，缩小行高】 */
#customblock-editorial-board .content a {
    font-size: 15px !important;
    font-weight: 700 !important;
    color:#0066cc !important;
    text-decoration:none !important;
    display:block;
    line-height:1.1 !important;
    text-align:center !important;
    width:100% !important; /* 链接占满宽度 */
}
/* 【职位文字缩小，居中，压缩行高】 */
#customblock-editorial-board .content > div > div:nth-child(1) {
    font-size:8px !important;
    color:#555 !important;
    line-height:1.1 !important;
    margin:0 0 1px 0 !important;
    text-align:center !important;
    width:100% !important;
}
/* 【机构/学校文字缩小，居中，压缩行高】 */
#customblock-editorial-board .content > div > div:nth-child(3) {
    font-size:9px !important;
    color:#666 !important;
    line-height:1.1 !important;
    margin:1px 0 0 0 !important;
    text-align:center !important;
    width:100% !important;
}
/* 卷期封面右侧描述文本块：字号放大、加大行间距、与图片高度对齐 */
.obj_issue_toc .heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.obj_issue_toc .heading .description {
    font-size: 16px;
    line-height: 1.85;
}
/* 隐藏系统原生DOI与Published（保留，不要删） */
.obj_issue_toc .pub_id.doi {
    display: none !important;
}
.obj_issue_toc .published {
    display: none !important;
}
/* 标题样式，固定在顶部 */
#customblock-editorial-board h2 {
    margin: 0 0 10px 0;
    background: #ffffff;
    padding: 8px 0;
    z-index: 10;
    text-align:center;
}
/* ========== 【关键改动】外层容器board-list，只做可视裁剪，不加动画 ========== */
#customblock-editorial-board .board-list {
    height: 700px;
    overflow: hidden !important; /* 强制裁掉容器外的内容，防止图片跑出去覆盖标题 */
    padding-right: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#customblock-editorial-board .board-list::-webkit-scrollbar {
    display: none;
}
/* 内层board-inner：放全部编委内容，动画加在内层，而不是外层board-list */
#customblock-editorial-board .board-inner {
    animation: boardAutoScroll 180s linear infinite;
}
#customblock-editorial-board .board-inner:hover {
    animation-play-state: paused;
}
@keyframes boardAutoScroll {
 0% {
    transform: translateY(0);
 }
 100% {
    transform: translateY(-100%);
 }
}
/* 手机窄屏恢复原位 + 移动端字号适配，取消自动滚动 */
@media (max-width: 1200px) {
    #customblock-editorial-board {
        position: static;
        width: auto;
        margin-left: 0;
        max-height: unset;
    }
    #customblock-editorial-board .board-list {
        height: auto;
        overflow-y: visible;
        scrollbar-width: auto;
        -ms-overflow-style: auto;
    }
    #customblock-editorial-board .board-list::-webkit-scrollbar {
        display: block;
    }
    #customblock-editorial-board .content a {
        font-size:15px !important;
    }
    #customblock-editorial-board .content > div > div:nth-child(1),
    #customblock-editorial-board .content > div > div:nth-child(3) {
        font-size:12px !important;
    }
/* 移动端关闭动画，不要写时间！ */
    #customblock-editorial-board .board-inner {
        animation: none !important;
    }
}
.pkp_site_name {
    text-align: center !important;
    margin: 0 0 40px -52px !important;
    padding: 2px 0 !important;
}
.pkp_site_name a {
    font-size: 28px !important;
    font-weight: bold !important;
    color:#fff !important;
}
.obj_issue_toc .heading {
    display: flex;
    align-items: flex-start !important;
    gap: 2rem;
}
.obj_issue_toc .heading .cover {
    /* 去掉图片容器默认的下边距/空白 */
    margin-bottom: 0 !important;
}
.obj_issue_toc .heading .cover img {
    max-width: 220px;
    height: auto;
    display:block;
}
/* 清除下方多余留白 */
.obj_issue_toc .heading .description {
    margin-bottom:0 !important;
}
.obj_issue_toc .heading .pub_id,
.obj_issue_toc .heading .published {
    margin-top: 0.5rem;
}
.obj_issue_toc .heading {
    margin-bottom: 0.4rem !important;
}
.obj_issue_toc .heading {
    padding-bottom: 0 !important;
}


/* ========== 移动 pkp_structure_main::before 中间灰色竖线 ========== */
@media (min-width:1201px) {
    .pkp_structure_content.has_sidebar .pkp_structure_main {
        /* 设置竖线最短对应的父盒子高度；短页面至少850px高；长页面会自动跟随内容变长 */
        min-height: 850px !important;
    }
@media (min-width:1201px) {
    .pkp_structure_content.has_sidebar .pkp_structure_main::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 1px !important;
        background-color: #dddddd !important;
        left: 0px !important; /* 同时控制两条竖线位置，数值越大越靠右 */
    }
}
@media (min-width:1201px) {
    .pkp_structure_content.has_sidebar .pkp_structure_main::after {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 1px !important;
        background-color: #dddddd !important;
        left: 862px !important; /* 同时控制两条竖线位置，数值越大越靠右 */
    }
}


@media (min-width:1201px) {
    /* 整个侧边栏整体向右移100px */
    .pkp_structure_sidebar {
        transform: translateX(100px) !important;
    }
    /* 编委块反向向左移‑100px，抵消，留在最左侧原地 */
    #customblock-editorial-board {
        transform: translateX(-950px) !important;
    }
}
@media (min-width:1201px) {
    .pkp_structure_content.has_sidebar .pkp_structure_main .page {
        transform: translateX(100px) !important;
    }
}
@media (min-width: 1201px) {
    .pkp_structure_content.has_sidebar .pkp_structure_main {
        transform: translateX(100px) !important;
    }
}
@media (min-width: 1201px) {
    .pkp_structure_content.has_sidebar .pkp_structure_main .page {
        margin-left: -120px !important;
    }
}
@media (min-width:1201px) {
    /* 只限制内部.page，父级pkp_structure_main不动，竖线保留 */
    .pkp_structure_content.has_sidebar .pkp_structure_main .page {
        max-width: calc(100% - 24px) !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        /* 新增：整体向左移动100px */
        transform: translateX(-20px) !important;
    }
    /* 里面所有段落、板块、图片自动换行，防止溢出 */
    .pkp_structure_content.has_sidebar .pkp_structure_main .page p,
    .pkp_structure_content.has_sidebar .pkp_structure_main .page .section,
    .pkp_structure_content.has_sidebar .pkp_structure_main .page h1,
    .pkp_structure_content.has_sidebar .pkp_structure_main .page h2,
    .pkp_structure_content.has_sidebar .pkp_structure_main .page h3 {
        max-width:100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

.pkp_navigation_primary_row {
    text-align: center !important;
    /* ========== 微调项 ========== */
    margin-top: -4px !important;    /* 上下移动：负值向上，正值向下 */
    padding-left: 1px !important;  /* 整体左右偏移，正数向右，负数向左 */
    padding-right: 10px !important;
}
.pkp_navigation_primary_row > * {
    display: inline-block !important;
    vertical-align: middle !important; /* 消除inline-block上下错位，垂直居中对齐 */
    margin: 0 8px !important; /* 👉 控制菜单项之间的左右间距，数字越大间隔越宽 */
}

@media (min-width:768px) {
    article.obj_article_details > div.row {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap:5px;
    }
    article.obj_article_details > div.row > div.entry_details {
        float: none !important;
        order: 2 !important;
    }
    article.obj_article_details > div.row > div.main_entry {
        order: 1 !important;
    }
}
/* 保留entry_details左边框，移除main_entry右边的那根多余竖线 */
@media (min-width:768px) {
    article.obj_article_details > div.row > div.main_entry {
        border-right: none !important;
    }
}
