.banner {
    /*width: 100vw;*/
    min-width: 1280px;
    display: flex;
    height: 500px;
    overflow: hidden;

    .info {
        width: 30%;
        max-width: 520px;
        box-sizing: border-box;
        background-color: #4635de;
        position: relative;
        color: white;

        padding: 4vw;
        z-index: 2;

        .animationBox {
            display: flex;
            justify-content: center;
            flex-direction: column;
            gap: 30px;
            height: 100%;

            &.toUpShow {
                animation-name: toRightShow !important;
            }
        }

        @media screen and (max-width: 1280px) {
            padding: 48px;
        }

        .title {
            font-weight: bold;
        }

        .content {
            display: -webkit-box; /* 使用 flexbox 进行布局 */
            -webkit-box-orient: vertical; /* 垂直排列 */
            overflow: hidden; /* 隐藏超出部分 */
            -webkit-line-clamp: 6; /* 限制显示行数为 6 行 */
            color: #eee;
            font-size: 14px;
        }

        &:after {
            top: 0;
            width: 0;
            height: 0;
            border-top: 500px solid transparent; /* 上边 */
            border-left: 125px solid #4635de; /* 左边，颜色为蓝色 */
            content: "";
            position: absolute;
            left: 100%;
        }

        &:before {
            top: 0;
            width: 150px; /* 梯形的宽度 */
            height: 100%; /* 梯形的高度 */
            background-color: #4635de; /* 梯形的颜色 */
            clip-path: polygon(0 0, 20% 0, 100% 100%, 0% 100%);
            opacity: .5;
            content: "";
            position: absolute;
            left: 100%;
        }

        .options {
            display: flex;
            justify-content: space-between;
            align-items: center;

            .change {
                display: flex;
                align-items: center;
                gap: 30px;

                img {
                    height: 34px;
                    filter: invert(1);
                    opacity: .5;
                    cursor: pointer;

                    &:hover {
                        opacity: 1;
                    }
                }
            }

            .look {
                padding: 8px 12px;
                cursor: pointer;
                /*border: 1px solid white;*/
                font-size: 14px;
                color: white;

                &:hover {
                    background-color: white;
                    color: #4635de;
                }
            }
        }


    }

    > img {
        height: 100%;
        flex: 1;
        object-fit: cover;
        transition: 1s;
        cursor: pointer;
        background-color: #F2F3F9;

        &:hover {
            scale: 1.025;
        }
    }
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;

    .container {
        padding: 40px 12px;
    }

    .flex {
        gap: 40px;
    }

    .titleBar {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 30px;

        .title {
            font-size: 24px;
            /*font-weight: bold;*/
            color: #fff;
            height: 0;
            /*width: 220px;*/
            border-bottom: 44px solid #646CFF;
            border-right: 24px solid transparent;
            padding: 0 10px;
            line-height: 44px;
            position: relative;
            z-index: 1;

            &:before {
                top: 0;
                width: 44px; /* 梯形的宽度 */
                height: 44px; /* 梯形的高度 */
                background-color: #646CFF; /* 梯形的颜色 */
                clip-path: polygon(0 0, 44% 0, 100% 100%, 0% 100%);
                opacity: .25;
                content: "";
                position: absolute;
                left: 100%;
                z-index: 0;
            }

            &:after {
                top: 0;
                width: 24px; /* 梯形的宽度 */
                height: 44px; /* 梯形的高度 */
                background-color: #646CFF; /* 梯形的颜色 */

                clip-path: polygon(0 0, 0% 0, 100% 100%, 0% 100%);
                content: "";
                position: absolute;
                left: 100%;
                z-index: 0;
            }

            span {
                color: #fff;
                opacity: .5;
                margin-left: 10px;
                font-weight: 400;

                &:before {
                    content: '/';
                    padding-right: 10px;

                }
            }
        }

        .line {
            flex: 1;
            height: 2px;
            background-image: linear-gradient(90deg, #444fff 0%, #8521ff 100%);
        }

        a {
            font-weight: 400;
            font-size: 16px;
            color: #666;

            &:hover {
                color: #4635de;
            }
        }
    }


    .news {
        flex: 1;

        .list {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;

            .card {
                flex: 40%;
                cursor: pointer;
                display: flex;
                flex-direction: column;
                position: relative;
                overflow: hidden;
                align-items: center;

                .content {
                    padding: 20px 2px;
                    flex: 1;
                    background-color: #fff;
                    position: relative;

                    .title {
                        height: 48px;
                        width: 100%;
                        margin-bottom: 20px;
                    }

                    .description {
                        display: -webkit-box;
                        -webkit-box-orient: vertical;
                        overflow: hidden;
                        -webkit-line-clamp: 2;
                        color: #666;
                        font-size: 14px;
                    }
                }

                .date {
                    position: absolute;
                    top: calc(252px - 20px);
                    height: 26px;
                    text-align: center;
                    color: #fff;
                    font-size: 14px;
                    line-height: 26px;
                    width: 150px;
                    background-color: #646CFF;
                    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
                    z-index: 1;
                }

                .cover {
                    height: 252px;
                    overflow: hidden;
                    width: 100%;
                    border: 2px solid white;

                    img {
                        object-fit: cover;
                        height: 100%;
                        width: 100%;
                        transition: 1s;
                        background-color: #F2F3F9;

                    }
                }


                &:after, &:before {
                    content: " ";
                    width: 10px;
                    height: 10px;
                    position: absolute;
                    border: 0 solid #fff;
                    transition: all .5s;
                    z-index: 2;
                }

                &:after {
                    top: 0;
                    left: 0;
                    border-top: 2px solid #646CFF;
                    border-left: 2px solid #646CFF;
                }

                &:before {
                    bottom: 0;
                    right: 0;
                    border-bottom: 2px solid #646CFF;
                    border-right: 2px solid #646CFF;
                }

                &:hover {

                    img {
                        scale: 1.025;
                    }

                    .title {
                        padding: 0 12px;
                        color: #4635de;
                    }

                    .description {
                        padding: 0 12px;
                    }

                    &:before, &:after {
                        width: 100%;
                        height: 100%;
                    }
                }

            }
        }
    }

    .notice {
        width: 350px;
        display: flex;
        flex-direction: column;

        .list {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 30px;

            .item {
                /*height: 70px;*/
                display: flex;
                flex: 1;
                align-items: center;
                gap: 20px;
                cursor: pointer;
                position: relative;

                .date {
                    height: 100%;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    gap: 2px;
                    color: #4635de;
                    padding: 0 8px;
                    border-radius: 4px;
                    border: 1px solid #646CFF;
                    transition: .5s background-color;

                    .line {
                        width: 34px;
                        rotate: -10deg;
                        height: 1px;
                        background-color: #646CFF;
                    }

                    .day {
                        font-size: 20px;
                    }

                    .month {
                        font-size: 12px;
                        /*color: #999;*/
                    }
                }

                .title {
                    flex: 1;
                }

                &:hover {
                    .title {
                        color: #4635de;
                    }

                    .date {
                        background-color: #646CFF;

                        color: white;

                        .line {
                            background-color: #fff;
                        }
                    }
                }

                &:after {
                    position: absolute;
                    content: "";
                    height: 1px;
                    /*width: 80%;*/
                    /*left: 50%;*/
                    /*transform: translateX(-50%);*/
                    width: 100%;
                    bottom: -15px;
                    background-color: #eee;
                    pointer-events: none;
                }

                &:last-child:after {
                    display: none;
                }
            }
        }
    }


    .background {
        background-color: #F2F3F9;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        position: relative;
    }

    .secondHalf {


        .studentWork, .party {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;


            > .title {
                width: 100%;
                font-size: 32px;
                /*font-weight: bold;*/
                color: #646CFF;
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 30px;

                &:before, &:after {
                    content: "";
                    width: 75px;
                    height: 2px;
                    background-image: linear-gradient(-90deg, #444fff 0%, #8521ff 100%);
                }

                &:after {
                    background-image: linear-gradient(90deg, #444fff 0%, #8521ff 100%);

                }

                .more {
                    position: absolute;
                    right: 0;
                    font-weight: 400;
                    font-size: 16px;
                    color: #666;

                    &:hover {
                        color: #4635de;
                    }
                }


            }

        }

        .studentWork {
            .list {
                display: flex;
                gap: 30px;

                .item {
                    flex: 1;
                    position: relative;
                    cursor: pointer;
                    overflow: hidden;

                    img {
                        width: 100%;
                        object-fit: cover;
                        height: 176px;
                        position: relative;
                        z-index: 1;
                        transition: 1s;
                        background-color: #efefef;

                    }


                    &:after {
                        height: 100%;
                        position: absolute;
                        content: "";
                        width: 1px;
                        /*background-color: #ddd;*/
                        pointer-events: none;
                        top: 0;
                        right: -20px;
                    }

                    &:last-child:after {
                        display: none;
                    }


                    .content {
                        padding: 20px 12px;
                        position: relative;
                        background-color: #fff;

                        .date {
                            color: #4635de;
                            position: relative;
                            font-size: 14px;
                            margin-top: 20px;
                        }

                        .title {
                            margin-bottom: 20px;
                            max-height: 48px;
                            transition: none;
                            position: relative;

                        }

                        .description {
                            font-size: 14px;
                            color: #666;
                            min-height: 84px;
                            position: relative;
                        }

                        &:before {
                            transform: translateY(-100%);
                            height: 100%;
                            position: absolute;
                            content: "";
                            background: #646CFF;
                            width: 100%;
                            left: 0;
                            top: 0;
                            transition: .2s;
                            /*z-index: -1;*/
                        }

                    }

                    &:hover {

                        img {
                            scale: 1.025;
                        }

                        .content {
                            color: white;


                            .date {
                                color: white;
                            }

                            .description {
                                color: #eeeeee;
                            }

                            &:before {
                                transform: translateY(0);
                            }
                        }


                    }
                }
            }
        }

        .party {
            .flex {
                gap: 30px;
                width: 100%;
            }

            .cover {
                height: 354px;
                flex: 1 1 50%;
                display: flex;
                flex-direction: column;
                position: relative;
                cursor: pointer;
                overflow: hidden;

                img {
                    width: 100%;
                    height: 354px;
                    flex: 1;
                    object-fit: cover;
                    transition: 1s;
                    background-color: #F2F3F9;

                }

                .content {
                    position: absolute;
                    background-color: #646CFF80;
                    border-top: 0;
                    bottom: 0;
                    color: white;
                    padding: 12px;
                    width: 100%;

                    .date {
                        font-size: 14px;
                    }

                    &:after {
                        content: "";
                        position: absolute;
                        width: 100%;
                        height: 100%;
                        transform: translateX(-100%);
                        background-color: #646CFF;
                        transition: .2s;
                        top: 0;
                        left: 0;
                    }
                }

                &:hover {
                    img {
                        scale: 1.025;
                    }

                    .content {
                        background: #646CFF;

                    }

                    /*.content:after {*/
                    /*    transform: translateX(0);*/

                    /*}*/
                }
            }

            .list {
                display: flex;
                gap: 30px;
                flex: 1 1 50%;
                flex-direction: column;

                .item {
                    display: flex;
                    gap: 20px;
                    /*background-color: #F2F3F9;*/
                    /*padding: 12px;*/
                    cursor: pointer;

                    .date {
                        border: 1px solid #646CFF;
                        border-radius: 4px;
                        color: #4635de;
                        display: flex;
                        align-items: center;
                        flex-direction: column;
                        justify-content: center;
                        width: 90px;
                        white-space: nowrap;
                        height: 66px;
                        transition: .5s background-color;
                        flex-shrink: 0;

                        .year {
                            font-size: 12px;
                        }

                        .month {
                            font-size: 20px;
                        }
                    }

                    .title {
                        display: flex;
                        align-items: center;
                    }

                    &:hover {
                        .title {
                            color: #4635de;
                        }

                        .date {
                            background: #646CFF;
                            color: white;
                        }
                    }
                }
            }
        }

        .cards {
            height: 450px;
            display: flex;
            gap: 10px;

            .card {
                background-color: #F2F3F9;
                /*flex: 1;*/
                width: calc(50% - 5px);
                height: calc(50% - 5px);
                position: relative;
                cursor: pointer;
                overflow: hidden;

                &:before {
                    left: 0;
                    top: 0;
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    content: "";
                    background-color: #523fff;
                    opacity: .2;
                    z-index: 1;
                }

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    background-color: #fff;
                    transition: 1s;
                }

                .title {
                    position: absolute;
                    top: 20px;
                    left: 20px;
                    background-color: #4635de;
                    color: white;
                    padding: 4px 8px;
                    z-index: 1;
                }

                &:hover {
                    img {
                        scale: 1.025;
                    }
                }
            }

            > .card {
                height: 100%;
                width: 40%;
                position: relative;
                display: flex;
                /*align-items: center;*/
                justify-content: center;
                flex-direction: column;

                .title, .subtitle {
                    position: unset;
                    z-index: 1;
                    background-color: transparent;
                }

                .title {
                    font-size: 22px;
                    padding-left: 20px;
                }

                .subtitle {
                    color: #fff;
                    padding-left: 20px;

                }

                img {
                    position: absolute;
                }

            }

            .right {
                flex: 1;
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
            }
        }
    }
}

@keyframes toRight {
    0% {
        transform: translateX(0);
    }
    0% {
        transform: translateX(100vw);
    }
}

.carousel {
    min-width: 1280px;
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: #4635de; /* 梯形的颜色 */
    user-select: none;

    &:hover {
        .button {
            opacity: .8;
        }
    }

    .indicator {
        position: absolute;
        bottom: 20px;
        background-color: #fff;
        border-radius: 8px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        z-index: 4;
        /*gap: 2px;*/
        overflow: hidden;

        .dot {
            width: 48px;
            height: 16px;
            background-color: rgba(0, 0, 0, 0.1); /* 梯形元素的颜色 */
            cursor: pointer;
            border-radius: 8px;
            border: 4px solid white;
            &:hover{
                background-color: #4635de90; /* 梯形的颜色 */

            }
            &.active {
                background-color: #4635de; /* 梯形的颜色 */
            }

        }
    }

    .button {
        position: absolute;
        z-index: 3;
        height: 100%;
        display: flex;
        flex-direction: column;
        top: 50%;
        transform: translateY(-50%);
        justify-content: center;
        cursor: pointer;
        width: 150px;
        align-items: center;
        background-image: linear-gradient(to right, #00000040, transparent);
        /*background-color: #4635de; !* 梯形的颜色 *!*/
        opacity: 0;

        svg {
            width: 44px;
            height: 44px;
            fill: white;
            transform: scaleY(1.5);
        }

        &.rightButton {
            right: 0;
            background-image: linear-gradient(to left, #00000040, transparent);

        }

        &:hover {
            opacity: 1;
        }
    }


    a {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: .5s;

        img {
            object-fit: cover;
            width: 100%;
            height: 100%;
        }

        &.active {
            z-index: 2;
            opacity: 1;
        }
    }
}