﻿body {
    background-color: #000 !important;
}

.works-container {
    background-color: #000;
    text-align: center;
    color: #fff;
}

@media screen and (max-width: 767px) {
    .works-container {
        height: 28vh;
    }

    .works-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .works-label {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    .wotks-logo-img {
        width: 56px;
        height: 16px;
        margin: 0 5px;
    }

    .box {
      
        padding: 2.6rem 0;
    }

    .card {
        width: 44%;
        height: 32rem;
        margin: 0 2%;
    }

        .card:nth-child(1) {
            margin-left:-94%;
        }

        .card:nth-child(n+8) {
            opacity: 0;
        }

    .content .name {
        font-size: 1.8rem;
        line-height: 1.2;
        height: 2.6em;
    }

    .content .des {
        font-size: 0.9rem;
        line-height: 1.2
    }
    .s-button {
        width: 6.5rem;
        height: 32rem;
        line-height: 32rem;
    }
        .s-button:nth-child(1) {
            position: absolute;
            left: 1%;
        }

        .s-button:nth-child(2) {
            position: absolute;
            right: 1%;
        }
}
/*PC样式*/
@media screen and (min-width: 767px) {
    .works-container {
        height: 70vh;
    }

    .works-title {
        font-size: 4rem;
        margin-bottom: 2rem;
    }

    .works-label {
        font-size: 2.4rem;
        line-height: 1.1;
    }

    .wotks-logo-img {
        width: 90px;
        height: 26px;
        margin: 0 5px;
    }

    .box {
    
        padding: 5rem 0;
    }

    .card {
        width: 23%;
        height: 52.3rem;
        margin: 0 .8%;
    }

        .card:nth-child(1) {
            margin-left: -61.7%;
        }

        .card:nth-child(n+8) {
            opacity: 0;
        }

    .content .name {
        font-size: 3.5rem;
        line-height: 1.3;
        height: 2.6em;
    }

    .s-button {
        width: 10rem;
        height: 65rem;
        line-height: 40rem;
    }
        .s-button:nth-child(1) {
            position: absolute;
            left: 2%;
        }

        .s-button:nth-child(2) {
            position: absolute;
            right: 2%;
        }
}




/*滚动图片样式*/
.box {
    white-space: nowrap; /* 禁止超出自动换行 */
    width: 100%;
    overflow-y: hidden;
    transition: all 1s ease;
    background-color: #f7f8f9;
}
    /*隐藏下面的滚动条*/
    .box::-webkit-scrollbar {
        display: none;
    }

.card {
    display: inline-block; /*行内块元素*/
    text-align: center;
    background-color: #ffffff;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 3px 7px 4px 1px #c3e3f1;
    transition: all 2s ease;
}


    .card img {
        transition: all .3s ease;
        width: 100%;
        height: 100%;
    }




    .card .masking {
        width: 100%;
        height: 100%;
        position: absolute;
        bottom: 0;
        opacity: 0;
    }

    .card .content {
        width: 100%;
        padding: 1rem 2rem 2rem 2rem;
        /*color: #eee;*/
        text-align: left;
        white-space: normal;
        transition: .8s;
        /*opacity: 0;*/
    }

    .card:hover {
        /*   width: 25%;
        height: 32rem;*/
        cursor: pointer;
        /*transform:scale(1.2,1.2);*/
    }

        .card:hover .masking {
            background-color: #555;
            opacity: 0.4;
        }

        /* .card:hover .content {
            animation: fontanimation .8s ease-in 0.3s forwards;
        }

            .card:hover .content .name {
                animation: fontanimation .8s ease-in 0.3s forwards;
            }

            .card:hover.content .des {
                animation: fontanimation .8s ease-in 0.6s forwards;
                
            }*/

        .card:hover img {
            /*   width: 25%;
        height: 32rem;*/
            cursor: pointer;
            transform: scale(1.1);
            /*transition: all .3s;*/
        }

        .card:hover .content {
            opacity: 1;
        }



.content .name {
    white-space: pre-line;
    text-overflow: ellipsis;
    /* width: 100%; */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.content .des {
    word-break: break-all;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1; /* 超出几行省略 */
    overflow: hidden;
}

.s-button {
    text-align: center;
    color: #000;
    font-size: 5rem;
    transition: 1.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
}

   

    /* .s-button:nth-child(1):hover {
        cursor: pointer;
        background-image: linear-gradient(to right, #555, transparent);
    }

    .s-button:nth-child(2):hover {
        cursor: pointer;
        background-image: linear-gradient(to left,#555, transparent);
    }*/



    .s-button .text {
        border-radius: 50%;
        display: inline-grid;
        padding: 1.2rem;
        transition: all .3s ease;
        background-color: rgba(0,0,0,.3);
    }


@keyframes fontanimation {
    from {
        opacity: 0;
        transform: translateY(-10rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*滚动图片样式 End*/

