:root {
    --main-color: #CDF;
    --primary-color: pink;
    --main-bg: rgb(255, 255, 255);
    /*--border-color: #CDF 0%, #ffdcdc 50%, #CDF 100%;*/
    --border-color: #a4fdff 0%, pink 50%, #a4fdff 100%;
    /*为100%动画效果1,为-100%动画效果2*/
    --border-toward: 100%;
}

* {
    padding: 0;
    margin: 0;
}

body::-webkit-scrollbar {
    width: 6px
}

body::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px #CDF8
}

body::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 3px
}

/* 滑块颜色 */
#mainImages {
    margin: 16px 10px;
}

.el-image-viewer__mask {
    background-color: gray;
    opacity: 1;
}

.el-image-viewer__btn {
    display: none;
}

.hidden {
    opacity: 0 !important;
}

#mainImages .el-col {
    transition: all 0.5s ease;
}

.imgBox {
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
    position: relative;
}

.imgBox .el-image {
    width: 100%;
}

.imgBox .el-image img {
    object-position: 40% 20%;
    object-fit: cover;
}

/*加载中图标*/
.imgBox .img-loading {
    font-size: 128px;
    color: var(--primary-color);
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -64px; /* 高度的一半 */
    margin-left: -64px; /* 宽度的一半 */
}

/*边框共同属性*/
.imgBox > span {
    position: absolute;
    content: "";
    z-index: 9;
}

/*上边框*/
.imgBox span.border-top {
    top: 0;
    left: var(--border-toward);
}

/*下边框*/
.imgBox span.border-bottom {
    bottom: 0;
    left: calc(-1 * var(--border-toward));
}

/*上下边框共同属性*/
.imgBox > span.border-top, .imgBox > span.border-bottom {
    width: 100%;
    height: 4px;
    background-image: linear-gradient(to right, var(--border-color));
    /*鼠标移出动画*/
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/*鼠标移入 上下边框共同属性*/
.imgBox:hover span.border-top, .imgBox:hover span.border-bottom {
    left: 0;
    /*鼠标移入动画*/
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1)
}

/*左边框*/
.imgBox span.border-left {
    left: 0;
    top: -100%;
}

/*右边框*/
.imgBox span.border-right {
    right: 0;
    top: 100%;
}

/*左右边框共同属性*/
.imgBox > span.border-left, .imgBox > span.border-right {
    width: 4px;
    background-image: linear-gradient(to bottom, var(--border-color));
    /*鼠标移出动画*/
    transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/*鼠标移入 左右边框共同属性*/
.imgBox:hover span.border-left, .imgBox:hover span.border-right {
    top: 0;
    /*鼠标移入动画*/
    transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1)
}

.imgBox .img-info {
    position: absolute;
    width: 100%;
    height: 40px !important;
    line-height: 40px;
    color: #DDD;
}

.imgBox .img-info-bar {
    bottom: -40px;
    background-color: rgba(0, 0, 0, 0.24);
    transition: bottom 0.5s ease-in;
}

.imgBox .img-info-title {
    bottom: 0;
    text-align: center;
    opacity: 0;
    transform: translateX(-30px);
    transition: transform, opacity, 0.3s ease-in;
}

.imgBox:hover .img-info-bar {
    bottom: 0;
    transition: bottom 0.5s ease-out;
}

.imgBox:hover .img-info-title {
    opacity: 1;
    transform: translateX(0);
    transition: transform, opacity, 0.3s ease-out;
}

.pre_btn, .next_btn {
    z-index: 100;
    position: fixed;
    top: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    color: #fff;
    background-color: #606266;
    border-color: #fff;
    transform: translateY(-50%);
    border-radius: 50%;
    opacity: .2;
    cursor: pointer;

    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
}

.pre_btn {
    left: 0;
}

.next_btn {
    right: 0;
}

/*高度响应式布局 这里与不同尺寸的每行盒子个数以及盒子间隔绑定了,目前屏幕尺寸从小到大盒子数为:2/2/3/4/6*/
@media only screen and (max-width: 767px) {
    .height-equal-width > * {
        /*如果每行1个盒子*/
        /*height: calc(100vw - 36px);*/
        height: calc(50vw - 23px);
    }
}

@media only screen and (min-width: 768px) {
    .height-equal-width > * {
        height: calc(50vw - 23px);
    }
}

@media only screen and (min-width: 992px) {
    .height-equal-width > * {
        height: calc(33.33333vw - 18.68px);
    }
}

@media only screen and (min-width: 1200px) {
    .height-equal-width > * {
        height: calc(25vw - 16.5px);
    }
}

@media only screen and (min-width: 1920px) {
    .height-equal-width > * {
        height: calc(16.66667vw - 14.34px);
    }
}

/*.carousel__button {*/
/*    display: none !important;*/
/*}*/

.carousel__button.is-prev, .carousel__button.is-next {
    display: none !important;
}

.fancybox__slide {
    padding: 0 !important;
}

.fancybox__counter {
    opacity: 0.5;
}