
/* =========================
   HISTORY 稳定无限轮播版
========================= */

#ysHistoryStable,
#ysHistoryStable *{
    box-sizing:border-box;
}

#ysHistoryStable{
    width:100%;
    background:#fff;
    padding:55px 0 60px;
    overflow:hidden;
    font-family:
        "Microsoft YaHei",
        "PingFang SC",
        Arial,
        sans-serif;
    color:#333;
}

/* 标题 */
.ys-his-head{
    text-align:center;
    margin-bottom:48px;
}

.ys-his-head h2{
    margin:0;
    font-size:46px;
    line-height:1.2;
    font-weight:700;
    color:#333;
}

.ys-his-head p{
    margin:16px 0 0;
    font-size:15px;
    color:#666;
}


/* =========================
   轮播区域
========================= */

.ys-his-carousel{
    width:100%;
    position:relative;
    padding:0 70px;
}

.ys-his-viewport{
    width:100%;
    overflow:hidden;
    position:relative;
}

.ys-his-track{
    display:flex;
    flex-wrap:nowrap !important;
    align-items:flex-start;
    width:100%;
    will-change:transform;
}


/* =========================
   单个年份
========================= */

.ys-his-item{
    flex:0 0 33.333333%;
    min-width:0;
    flex-shrink:0;
    text-align:center;
    padding:0 36px;
}


/* 圆形图片 */
.ys-his-img{
    width:205px;
    height:205px;
    margin:0 auto 18px;
    border-radius:50%;
    overflow:hidden;
    background:#eee;
    box-shadow:0 6px 20px rgba(0,0,0,.06);
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.ys-his-img img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .45s ease;
}

.ys-his-item:hover .ys-his-img{
    transform:translateY(-4px);
    box-shadow:0 12px 28px rgba(0,0,0,.10);
}

.ys-his-item:hover .ys-his-img img{
    transform:scale(1.04);
}


/* 年份 */
.ys-his-year{
    font-size:25px;
    line-height:1.3;
    color:#333;
    margin-bottom:34px;
}


/* =========================
   时间轴
========================= */

.ys-his-axis{
    height:1px;
    background:#d8d8d8;
    position:relative;
    margin-left:-36px;
    margin-right:-36px;
    margin-bottom:36px;
}

.ys-his-dot{
    position:absolute;
    width:12px;
    height:12px;
    border-radius:50%;
    background:#b5b5b5;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    transition:.25s;
}

.ys-his-item:hover .ys-his-dot{
    background:#347ebc;
    transform:translate(-50%,-50%) scale(1.15);
}


/* =========================
   下方文字
========================= */

.ys-his-name{
    margin:0 0 12px;
    font-size:20px;
    line-height:1.4;
    font-weight:400;
    color:#333;
}

.ys-his-desc{
    max-width:390px;
    margin:0 auto;
    font-size:14px;
    line-height:1.75;
    color:#555;
}


/* =========================
   左右箭头
========================= */

.ys-his-arrow{
    position:absolute;
    z-index:20;
    top:50%;
    transform:translateY(-50%);

    width:48px;
    height:48px;

    padding:0;
    border:0;
    border-radius:50%;

    background:#222;
    color:#fff;

    font-size:31px;
    line-height:1;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.ys-his-arrow:hover{
    background:#174f82;
    transform:translateY(-50%) scale(1.06);
}

.ys-his-prev{
    left:12px;
}

.ys-his-next{
    right:12px;
}


/* =========================
   平板
========================= */

@media(max-width:1000px){

    .ys-his-item{
        flex-basis:50%;
        padding:0 28px;
    }

    .ys-his-img{
        width:190px;
        height:190px;
    }

    .ys-his-axis{
        margin-left:-28px;
        margin-right:-28px;
    }
}


/* =========================
   手机
========================= */

@media(max-width:650px){

    #ysHistoryStable{
        padding:42px 0 48px;
    }

    .ys-his-head{
        margin-bottom:35px;
        padding:0 20px;
    }

    .ys-his-head h2{
        font-size:32px;
    }

    .ys-his-head p{
        font-size:14px;
    }

    .ys-his-carousel{
        padding:0 45px;
    }

    .ys-his-item{
        flex-basis:100%;
        padding:0 15px;
    }

    .ys-his-img{
        width:180px;
        height:180px;
    }

    .ys-his-axis{
        margin-left:-15px;
        margin-right:-15px;
    }

    .ys-his-arrow{
        width:40px;
        height:40px;
        font-size:27px;
    }

    .ys-his-prev{
        left:3px;
    }

    .ys-his-next{
        right:3px;
    }
}
