/* ----------CASE---------- */
.case-sort {
    max-width: var(--page-maxwidth);
    padding: var(--page-padding);
    margin: 120px var(--page-margin) 80px;

    div {
        display: flex;
        gap: 60px;
        justify-content: center;
    }

    a {
        box-sizing: border-box;
        height: 40px;
        line-height: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        align-content: center;
        font-size: 22px;
        transition: all .3s ease-in-out;
    }

    a:hover,
    a.active {
        color: #000;
        text-decoration: underline;
        text-underline-offset: 10px;
        text-decoration-thickness: 1px;
    }
}

/*SEARCH-BOX*/
#search-case {

}

/*案例项目列表*/
.case-list {
    max-width: var(--page-maxwidth);
    padding: var(--page-padding);
    margin: 80px var(--page-margin);

    ul {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(1, auto);
        flex-wrap: wrap;
        grid-gap: 80px;
        justify-content: flex-start;
        align-items: flex-start;
        align-content: flex-start;
    }

    li {
        display: flex;
        flex-direction: row;
        justify-content: space-between;

        .item {
            max-width: 55.6%;
            height: auto;
            overflow: hidden;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
            align-items: center;

            img {
                height: 100%;
                width: 100%;
                object-fit: cover;
                transition: all .3s ease-in-out;
            }
        }

        .item:hover img {
            transform: scale(1.1);
        }

        .topping {
            position: absolute;
            top: 0;
            right: 0;
            width: 30px;
            height: 30px;
            background: url(../imgs/ico_topping.svg) no-repeat center center / auto 100%;
        }

        .name {
            width: 100%;
            max-width: calc(44.4% - 160px);
            padding: 40px 80px;
            display: flex;
            gap: 30px;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            transition: all .3s ease-in-out;

            dt {
                line-height: 40px;
                font-size: 30px;
            }

            dd {
                line-height: 150%;
                font-size: 18px;
                font-weight: 300;
            }
        }
    }

    li:hover .name {
        background: #fff !important;
        color: #222 !important;
    }

    li:nth-child(even) {
        .item {
            order: 2;
        }

        .name {
            order: 1;
        }
    }

}

/*案例项目详情*/
.case-info {
    max-width: var(--page-maxwidth);
    padding: 0 var(--page-padding);
    margin: 120px var(--page-margin);
    display: flex;
    gap: 40px;

    /*主体内容*/
    .content {
        /* max-width: 67%; */
        display: flex;
        gap: 20px;
        flex-direction: column;
        align-items: flex-start;

        h1 {
            margin: 0;
            padding: 0;
            line-height: 40px;
            font-size: 36px;
            color: #222;
            font-weight: 400;
            text-align: left;
            height: auto;
            /* white-space: nowrap; */
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .tag {
            padding: 0px 0 80px;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;

            em {
                height: 40px;
                line-height: 40px;
                border: 1px solid #ddd;
                border-radius: 40px;
                display: inline-block;
                font-size: 18px;
                font-weight: 300;
                font-style: normal;
                color: #222;
                padding: 0 20px;
                align-content: center;
            }
        }

        .resume {
            color: #222;
            font-size: 20px;
            font-weight: 300;
        }
    
        .datetime {
            padding: 40px 0 0;
            color: #808080;
            font-size: 20px;
            font-weight: 200;
        }
    }
}


/* 推荐案例 */
.case-new {
    position: relative;
    max-width: var(--page-maxwidth);
    padding: 0 var(--page-padding);
    margin: 120px var(--page-margin);

    ul {
        display: flex;
        justify-content: center;
        gap: 40px;

        li {
            width: 50%;
            position: relative;
            overflow: hidden;
            transition: all .3s ease-in-out;


            .item {
                width: 100%;

                a {
                    width: 100%;
                }

                img {
                    width: 100%;
                    height: auto;
                }
            }

            .name {
                display: flex;
                gap: 10px;
                align-items: flex-start;
                justify-content: flex-end;
                flex-direction: column;
                position: absolute;
                width: 100%;
                height: 100%;
                bottom: -80px;
                line-height: 40px;
                color: #fff;
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                transition: all .3s ease-in-out;

                dt {
                    padding: 0 40px;
                    height: 30px;
                    line-height: 30px;
                    width: calc(100% - 80px);
                    font-size: 24px;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }

                dd {
                    opacity: 0.7;
                    font-size: 18px;
                    height: 20px;
                    line-height: 20px;
                    font-weight: 200;
                    padding: 0 40px 0;
                    width: calc(100% - 80px);
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
            }
        }

        li:hover {
            transform: scale(1.02);

            .name {
                opacity: 1;
                visibility: visible;
                bottom: 0;
                padding-bottom: 40px;
                background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .8));
            }
        }
    }
}


/*-----------------------------------1600-----------------------------------*/
@media screen and (max-width:1600px) {}



/*-----------------------------------1300-----------------------------------*/
@media screen and (max-width:1300px) {

    .case-sort div {
        gap: 40px;
    }

    .case-list {
        ul {
            grid-gap: 60px;
            grid-template-columns: repeat(1, auto);
        }

        li {
            .item {
                max-width: 50%;
            }

            .name {
                max-width: calc(50% - 80px);
                padding: 40px 40px;
                gap: 20px;
            }
        }
    }

    
}



/*-----------------------------------1000-----------------------------------*/
@media screen and (max-width:1000px) {
    .case-sort {

        a:hover,
        a.active {
            text-decoration: none;
        }
    }

    .case-sort div {
        gap: 20px;
    }

    .case-sort div a {
        width: auto;
        min-width: auto;
        padding: 0 20px;
    }

    #search-case {

    }

    .case-list {
        margin: 60px var(--page-margin);

        ul {
            grid-gap: 40px;
            grid-template-columns: repeat(1, auto);
        }

        li {
            flex-direction: column;

            .item {
                max-width: 100%;
            }

            .name {
                max-width: calc(100% - 80px);
                padding: 40px 40px;
                gap: 20px;
            }
        }

        li:nth-child(even) {
            .item {
                order: 1;
            }

            .name {
                order: 2;
            }
        }
    }

    .case-info {
        flex-direction: column;
        margin: 80px var(--page-margin);
        gap: 20px;

        .content,
        .cover {
            /* max-width: 100%; */
            height: auto;

            img {
                height: 100%;
                width: 100%;
                object-fit: cover;
            }
        }
    }

    /* 推荐案例 */
    .case-new {
        margin: 80px var(--page-margin);

        ul {
            gap: 20px;
        }
    }
}


/*-----------------------------------500------------------------------------*/
@media screen and (max-width:500px) {
    .case-list {
        ul {
            grid-gap: 20px;
            grid-template-columns: repeat(1, auto);
        }

        li {
            flex-direction: column;

            .item {
                max-width: 100%;
            }

            .name {
                max-width: calc(100% - 80px);
                padding: 40px 40px;
                gap: 20px;
            }
        }
    }

    /* 推荐案例 */
    .case-new {
        ul {
            display: flex;
            gap: 20px;
            flex-direction: column;
        }
    }
}