.box2 li {
    position: relative;
    float: left;
    width: 336px;
    margin: 30px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #5d5d5d;
    background-color: #a3a1a1;
}


.box2 li .img {
    width: 100%;
}

.box2 li p {
    text-align: center;
    font-size: 20px;
    line-height: 35px;
    color: aliceblue;
}

.pic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    font-family: '楷体';
    font-size: 18px;
    background-color: rgb(3, 3, 3);
    opacity: 0;
}

.pic:hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    padding: 30px;
    background-color: rgb(3, 3, 3);
    opacity: 0.5;
    color: aliceblue;
    box-sizing: border-box;
}