.tabs {
    padding: 35px 17px;
    height: auto;
    position: relative;
    display: flex;
}

.tabs ul {
    width: auto;
    white-space: nowrap;
}

.tabs ul li {
    width: auto;
    line-height: 25px;
    padding: 0 17px;
    margin-bottom: 2px;
    display: inline;
    float: left;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.tabs ul li a {
    width: auto;
    font-size: 15px;
    display: inline-block;
    text-decoration: none;
    color: #4D4D4D;
    letter-spacing: 1px;
    text-align: center;
}

.tabs ul li.active a {
    color: #E6844A;
}

.tabs hr {
    position: absolute;
    bottom: 35px;
    left: 0;
    width: 28px;
    height: 2px;
    border: none;
    margin-left: 20px;
    background: #F2C1A4;
    transition: .3s ease-in-out;
}

.nav-menu ul li:hover~hr {
    background: #E6844A;
}


/* 瀑布流 */
.masonry {
    width: 100%;
    min-width: var(--ew);
    min-height: calc(100vh - 506px);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
}

.masonry.mobile {
    position: fixed;
    top: 0;
    left: -10000vw;
    z-index: -1;
}

.stone {
    width: calc((100% - 60px) / 4);
    max-width: 460px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
}

.masonry .stone:nth-child(2) {
    margin: 0 15px;
}

.masonry .stone:nth-child(3) {
    margin-right: 15px;
}

.masonry.mobile .stone:nth-child(3) {
    margin-right: 0;
}

.figure {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    margin-bottom: 15px;
    cursor: pointer;
    overflow: hidden;
}

.figure img {
    width: 100%;
    height: auto;
    user-select: none;
    transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
    -webkit-animation: skeleton-blink 3s ease-in-out infinite;
    animation: skeleton-blink 3s ease-in-out infinite;
}

@-webkit-keyframes skeleton-blink {
    50% {
        background-color: #f5f5f5;
    }
}

@keyframes skeleton-blink {
    50% {
        background-color: #f5f5f5;
    }
}

.figure:hover img {
    transform: scale(1.2, 1.2);
}

.project {
    width: calc(100% - 40px) !important;
    position: absolute;
    bottom: -92px;
    left: 20px;
    padding: 24px 20px;
    width: 100%;
    z-index: -1;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}

.figure:hover .project {
    bottom: 20px;
    opacity: 1;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.35);
}

.project {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.project-info {
    width: 80%;
}

.project-info .name {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
}

.project-info .name-en {
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
}

.project .arrow-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    user-select: none;
}

.project .arrow-box svg {
    width: 22px;
    height: 22px;
}

.arrow-two {
    margin-left: -8px;
}

/* 空状态 */
.empty {
    height: calc(100vh - 506px);
}

@media (max-width: 850px) {
    .tabs {
        width: 100%;
        padding: 15px 3px;
        overflow-x: auto;
    }

    .tabs hr {
        display: none;
    }

    .tabs ::-webkit-scrollbar {
        display: none;
    }

    .tabs ul {
        width: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .tabs ul li {
        padding: 0 12px;
    }

    .tabs ul li:hover::after,
    .tabs ul li.active::after {
        content: "";
        position: absolute;
        bottom: -1px;
        left: 13px;
        right: 15px;
        border-bottom: 1px solid #E6844A;
        transition: all 0.3s;
    }

    .masonry {
        min-height: calc(100vh - 280px);
        position: fixed;
        top: 0;
        left: -10000vw;
        z-index: -1;
    }

    .masonry.mobile {
        position: unset;
    }

    .figure {
        flex-direction: column;
    }

    .project {
        width: 100% !important;
        position: unset;
        opacity: 1;
        transform: translateY(0) rotate(0deg) !important;
        padding: 5px 10px !important;
        background-color: #f2f2f2 !important;
    }

    .project-info {
        width: 100% !important;
    }

    .project-info p {
        color: #808080 !important;
    }

    .project-info .name {
        font-size: 12px;
        line-height: 18px;
        max-height: 36px;
        text-overflow: -o-ellipsis-lastline;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .project-info .name-en,
    .project .arrow-box {
        display: none;
    }

    /* 空状态 */
    .empty {
        height: calc(100vh - 280px);
    }
}

@media (max-width:660px) {
    .masonry {
        min-height: calc(100vh - 376px);
    }

    .empty {
        height: calc(100vh - 376px);
    }
}