main {
    width: var(--all-width);
    margin: 0 auto;
}

main .list {
    margin-bottom: 15px;
}

main h3 {
    font-size: 26px;
    margin-bottom: 14px;
}

main .big-box {
    display: flex;
}

main .big-box[data-type=hot] {
    column-gap: 4%;
}

.hot-box {
    width: 268px;
    height: 292px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.hot-box:hover {
    box-shadow: 0 3.5px 5.1px rgba(0, 0, 0, 0.057), 0 4px 4.4px rgba(0, 0, 0, 0.106), 0 7px 17px rgba(0, 0, 0, 0.2);
}

.hot-box:last-child {
    flex: 1;
}

.hot-box:hover .hot-bg-box {
    transform: scale(1.2);
}

.hot-bg-box {
    width: 100%;
    height: 100%;
    filter: blur(4px);
    transition: .7s;
}

.hot-text {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 20px;
}

.hot-text .img-box {
    max-width: 150px;
    width: 50%;
    border-radius: 50%;
    border: 3px solid #ccc;
    overflow: hidden;
}

.hot-text .img-box::before {
    padding-top: 100%;
}

.hot-text p {
    color: #fff;
    /* mix-blend-mode: difference; */
    font-size: 15px;
    text-shadow: 0 0 4px #000;
    font-weight: 700;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.big-box[data-type=new] {
    width: 100%;
    display: grid;
}

.new-box {
    display: flex;
    border: 1px solid #ccc;
    overflow: hidden;
    border-radius: 4px;
    transition: .4s;
    background-color: #fff;
    position: relative;
}

.new-box:hover {
    border-color: #E0E0E0;
    border-radius: 4px;
    transform: translate(0px, -2px);
    box-shadow: 4px 4px 5px #00000040;
}

.new-box .img-box {
    width: 35%;
}

.new-box .new-text {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: start;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    justify-content: space-between;
}

.new-box .new-text p {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    font-size: 13px;
    text-indent: 2em;
    font-weight: 500;
}

.new-box .new-text button {
    color: #dd301c;
    background-color: #fae9e7;
    padding: 6px 15px;
    border: 1px solid #dd301c;
    border-radius: 3px;
}

.big-box[data-type=all] {
    flex-wrap: wrap;
    row-gap: 15px;
}

.all-box {
    border: 1px solid #9999998a;
    border-radius: 4px;
    overflow: hidden;
    transition: .4s;
}

.all-box .img-box::before {
    padding-top: 60%;
}

.all-box .all-text {
    padding: 10px;
    font-size: 14px;
    color: #000;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    background-color: #fff;
}

.all-box:hover {
    box-shadow: 0 3.5px 5.1px rgba(0, 0, 0, 0.057), 0 4px 4.4px rgba(0, 0, 0, 0.106), 0 7px 17px rgba(0, 0, 0, 0.2);
}

.moreBtn {
    display: block;
    margin: 30px auto;
    padding: 10px 30px;
    border: 1.5px solid #000;
    font-size: 17px;
    font-weight: bold;
    transition: .3s;
}

.moreBtn:hover {
    background-color: #000;
    color: #fff;
}

.nav_active {
    color: #000;
    background-color: #fff;
}

@media screen and (min-width:770px) {
    .big-box[data-type=new] {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 170px);
        gap: 20px 30px;
    }

    .new-box:nth-child(1) {
        display: block;
        grid-row: span 2;
    }

    .new-box:nth-child(1) .img-box {
        width: 100%;
        height: 100%;
        position: relative;
        filter: blur(2px);
    }

    .new-box:nth-child(1) .new-text {
        position: absolute;
        width: 100%;
        height: 50%;
        z-index: 1;
        left: 0;
        bottom: 0;
        color: #fff;
        align-items: start;
        justify-content: center;
        row-gap: 20px;
        text-shadow: 0 0 5px #00000098;
        padding: 16px;
    }

    .new-box:nth-child(1) .new-text span {
        font-size: 17px;
    }

    .new-box:nth-child(1) .new-text p {
        width: 90%;
        -webkit-line-clamp: 3s;
        line-clamp: 3s;
        text-indent: 0;
    }

    .all-box {
        width: calc((100% - 40px) / 5);
        margin-right: 10px;
    }

    .all-box:nth-of-type(5n) {
        margin-right: 0;
    }
}

@media screen and (max-width:769px) {
    main .list {
        padding: 0 8px;
    }

    main .big-box[data-type=hot] {
        width: 100%;
        flex-direction: column;
        row-gap: 20px;
    }

    main h3 {
        font-size: 24px;
    }

    .hot-box {
        width: 100%;
    }

    .hot-box:last-child {
        flex: none;
    }

    .big-box[data-type=new] {
        gap: 10px;
    }

    .new-box {
        min-height: 112px;
    }

    .new-box .new-text button {
        padding: 4px 10px;
        font-size: 12px;
    }

    .new-box .new-text p {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .all-box {
        width: calc((100% - 10px) / 2);
        margin-right: 10px;
    }

    .all-box:nth-of-type(2n) {
        margin-right: 0;
    }
}