/* index6 — 学校人物：参考北工大校园人物结构（左文右图 + 底栏缩略图联动），无区块背景图 */

.SchoolFigures-bjut {
    --sf-blue: #004b8d;
    --sf-blue-light: #3a9fd9;
    --sf-blue-frame: #7eb8e0;
    --sf-text: #333;
    --sf-muted: #666;
    --sf-thumb-w: 148px;
    --sf-thumb-gap: 10px;
    --sf-thumb-h: calc(var(--sf-thumb-w) * 0.65);
    /* 正好 4 张：4*宽 + 3*间距 */
    --sf-thumb-track: calc(4 * var(--sf-thumb-w) + 3 * var(--sf-thumb-gap));
    /* 缩略图起始；时间轴落在第一张左侧约 1/5 处 */
    --sf-bot-pad: 0px;
    --sf-rail-x: calc(var(--sf-bot-pad) + var(--sf-thumb-w) / 5);
    width: 1232px;
    margin: 15px auto 0;
    background: #fff;
    border-radius: 7px;
    padding: 9px 20px 24px 20px;
    border: 2px solid #ccc;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
}

.SchoolFigures-bjut .sf-bjut-body {
    position: relative;
    padding-top: 8px;
    overflow: visible;
}

.SchoolFigures-bjut .sf-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: row-reverse;
    justify-content: space-between;
}

.SchoolFigures-bjut .sf-top-l {
    width: 54.75%;
    position: relative;
}

.SchoolFigures-bjut .sf-top-r {
    width: 37.8125%;
    margin-top: 18px;
    /* 圆点（10px）中心对齐时间轴轴线中心 */
    padding-left: calc(var(--sf-rail-x) - 5px);
}

/* 主图 */
.SchoolFigures-bjut .sf-main-swiper {
    overflow: hidden;
}

.SchoolFigures-bjut .sf-main-swiper a {
    display: block;
}

.SchoolFigures-bjut .sf-main-pic {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
    background: #eef3f8;
}

.SchoolFigures-bjut .sf-main-pic span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    transition: transform 0.5s ease;
}

.SchoolFigures-bjut .sf-main-swiper a:hover .sf-main-pic span {
    transform: scale(1.04);
}

/* 文案区 */
.SchoolFigures-bjut .sf-txt-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.SchoolFigures-bjut .sf-txt-list > li {
    display: none;
}

.SchoolFigures-bjut .sf-txt-list > li.active {
    display: block;
}

.SchoolFigures-bjut .sf-txt-list li > a:first-child {
    display: block;
    position: relative;
    padding-left: 28px;
    padding-top: 2px;
}

/* 时间轴线：--sf-rail-x 为轴线中心，与圆点居中对齐 */
.SchoolFigures-bjut .sf-timeline {
    position: absolute;
    left: var(--sf-rail-x);
    top: 34px;
    bottom: var(--sf-thumb-h);
    width: 2px;
    margin-left: -1px; /* 2px 线宽，左移 1px 使中心落在 rail-x */
    background: linear-gradient(180deg, var(--sf-blue) 0%, var(--sf-blue-light) 100%);
    pointer-events: none;
    z-index: 5;
}

.SchoolFigures-bjut .sf-timeline::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid var(--sf-blue);
    box-sizing: border-box;
    /* 底尖正好挨着缩略图上边框；水平相对轴线居中 */
    transform: translate(-50%, 0) rotate(45deg);
    z-index: 5;
}

/* 时间轴圆点：10px，中心与轴线重合 */
.SchoolFigures-bjut .sf-txt-list li > a:first-child::before {
    position: absolute;
    content: "";
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sf-blue);
    box-shadow: 0 0 0 3px rgba(0, 75, 141, 0.2);
    z-index: 2;
}

.SchoolFigures-bjut .sf-txt-list time {
    display: block;
    font-size: 22px;
    line-height: 1.3;
    color: var(--sf-blue);
    font-weight: 700;
    opacity: 0;
}

.SchoolFigures-bjut .sf-txt-list h3 {
    margin: 14px 0 0;
    font-size: 20px;
    line-height: 1.4;
    color: var(--sf-text);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
}

.SchoolFigures-bjut .sf-txt-list p {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--sf-muted);
    height: 5.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    opacity: 0;
}

.SchoolFigures-bjut .sf-more {
    display: block;
    width: fit-content;
    margin: 28px 0 0 auto;
    min-width: 128px;
    padding: 0 18px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    color: #fff !important;
    font-size: 14px;
    background: linear-gradient(90deg, var(--sf-blue) 0%, var(--sf-blue-light) 100%);
    border-radius: 2px;
    opacity: 0;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s, filter 0.3s;
}

.SchoolFigures-bjut .sf-more:hover {
    filter: brightness(1.08);
}

.SchoolFigures-bjut .sf-txt-list li.active time,
.SchoolFigures-bjut .sf-txt-list li.active h3,
.SchoolFigures-bjut .sf-txt-list li.active p,
.SchoolFigures-bjut .sf-txt-list li.active .sf-more {
    animation: sf-bjut-fade-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.SchoolFigures-bjut .sf-txt-list li.active h3 {
    animation-delay: 0.15s;
}

.SchoolFigures-bjut .sf-txt-list li.active p {
    animation-delay: 0.25s;
}

.SchoolFigures-bjut .sf-txt-list li.active .sf-more {
    animation-delay: 0.35s;
}

@keyframes sf-bjut-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 底栏缩略图：左缘与时间轴对齐
   注意：全局 .swiper-container 有 margin:auto 居中，必须清掉 */
.SchoolFigures-bjut .sf-bot {
    width: 100%;
    position: relative;
    margin-top: 14px;
    padding-left: var(--sf-bot-pad);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}

.SchoolFigures-bjut .sf-main-swiper.swiper-container,
.SchoolFigures-bjut .sf-thumb-swiper.swiper-container {
    margin-left: 0;
    margin-right: 0;
}

.SchoolFigures-bjut .sf-thumb-swiper {
    flex: 0 0 auto;
    width: var(--sf-thumb-track);
    max-width: calc(100% - 98px);
    overflow: hidden;
}

.SchoolFigures-bjut .sf-thumb-swiper .swiper-slide {
    width: var(--sf-thumb-w);
}

.SchoolFigures-bjut .sf-thumb-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.SchoolFigures-bjut .sf-thumb-pic {
    padding-top: 65%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.SchoolFigures-bjut .sf-thumb-item::before {
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border: 4px solid #004b8d;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: 0.35s;
    pointer-events: none;
}

.SchoolFigures-bjut .sf-thumb-item::after {
    display: none;
}

.SchoolFigures-bjut .swiper-slide-thumb-active .sf-thumb-item::before,
.SchoolFigures-bjut .is-active .sf-thumb-item::before {
    opacity: 1;
    visibility: visible;
}

/* 左右箭头：靠模块右侧，与缩略图拉开距离 */
.SchoolFigures-bjut .sf-btn-box {
    flex: 0 0 auto;
    width: 96px;
    margin-left: auto;
    margin-right: 12px;
    display: flex;
    justify-content: space-between;
    z-index: 4;
}

.SchoolFigures-bjut .sf-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--sf-blue);
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: background 0.25s, border-color 0.25s;
}

.SchoolFigures-bjut .sf-btn::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--sf-blue);
    border-right: 2px solid var(--sf-blue);
    box-sizing: border-box;
}

.SchoolFigures-bjut .sf-btn-prev::before {
    transform: translate(-40%, -50%) rotate(-135deg);
}

.SchoolFigures-bjut .sf-btn-next::before {
    transform: translate(-60%, -50%) rotate(45deg);
}

.SchoolFigures-bjut .sf-btn:hover {
    background: var(--sf-blue);
}

.SchoolFigures-bjut .sf-btn:hover::before {
    border-color: #fff;
}

@media (max-width: 1268px) {
    .SchoolFigures-bjut {
        --sf-thumb-w: 120px;
        --sf-bot-pad: 0px;
        width: auto;
        margin-left: 15px;
        margin-right: 15px;
    }

    .SchoolFigures-bjut .sf-top-l,
    .SchoolFigures-bjut .sf-top-r,
    .SchoolFigures-bjut .sf-bot {
        width: 100%;
    }

    .SchoolFigures-bjut .sf-top-r {
        margin-top: 16px;
        padding-left: calc(var(--sf-rail-x) - 5px);
        order: -1;
    }

    .SchoolFigures-bjut .sf-timeline {
        top: 32px;
    }

    .SchoolFigures-bjut .sf-bot {
        margin-top: 12px;
    }

    .SchoolFigures-bjut .sf-thumb-swiper {
        width: auto;
        flex: 1 1 auto;
    }

    .SchoolFigures-bjut .sf-btn-box {
        width: 96px;
        margin-right: 8px;
    }

    .SchoolFigures-bjut .sf-txt-list time {
        font-size: 18px;
    }

    .SchoolFigures-bjut .sf-txt-list h3 {
        font-size: 18px;
    }
}
