* {
    margin: 0;
    padding: 0;
}

body {
    /*水平居中对齐*/
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0d0d0d;
}

.wrapper {
    width: 1040px;
    height: 340px;
}

.season {
    /*浮动*/
    float: left;
    /*父相子绝*/
    position: relative;
    width: 220px;
    height: 340px;
    margin: 0 20px;
    border-radius: 8px;
}

/*背景图片*/
.chun {
    background-image: url("../image/春.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

.xia {
    background-image: url("../image/夏.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

.qiu {
    background-image: url("../image/秋.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

.don {
    background-image: url("../image/冬.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}


.container {
    /*定位标题*/
    position: absolute;
    bottom: 10px;
    left: 50%;
    /*内容溢出隐藏*/
    overflow: hidden;
    width: 200px;
    height: 40px;
    border-radius: 8px;
    /*让盒子水平居中 相对自身的宽度移动*/
    transform: translateX(-50%);
    /*过渡*/
    transition: all .3s ease;
}

.container h3 {
    background-color: #ffffff;
    text-align: center;
    line-height: 40px;
}

.container p {
    display: none;
    padding: 0 10px;
    word-break: break-word;
    word-wrap: break-word;
    text-indent: 2em;
}


.container:hover {
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
    background-color: #ffffff;
}

.container:hover p {
    display: block;
}