.item {
    box-shadow: 2px 2px 5px #f5f5f5, -2px -2px 5px #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.5s;
    cursor: pointer;
}

.item:hover{
    box-shadow: 2px 2px 5px #dddddd, -2px -2px 5px #dddddd;
}

.item .text {
    padding: 10px;
}

.item .img {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
}

.item h4 {
    /* 两行省略 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
}

.item p {
    height: 40px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item span {
    color: #ccc;
    font-size: 13px;
}

.typebtnbox{
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.typebtn{
    background: #E6E6E6;
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 10px;
    margin-right: 15px;
    cursor: pointer;
}

.typebtn:last-child{
    margin-right: 0;
}

.disabled a{
    background: #eeeeee !important;
}

.typebtn.active{
    background: #50CB86;
    color: #fff;
}

@media screen and (max-width: 768px) {
    .typebtn{
        padding: 4px 10px;
        font-size: 14px;
    }
    .typebtnbox{
        margin-bottom: 10px;
    }
    #fh5co-portfolio{
        padding-top: 1.5em !important;
    }
}
