
.container {
    position: relative;
    display: flex;
    /* flex容器（flex container） */
    justify-content: center;
    /* 定义项目在主轴上的对齐方式 */
    align-items: center;
    /* 定义项目在竖直方向上对齐方式 */
    max-width: 1200px;
    flex-wrap: wrap;
    /* 定义项目是否换行以及如何换行  */
    z-index: 1;

}

.container .card {

    width: 280px;
    height: 400px;
    margin: 30px;
    /* 设置阴影 */
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.5);

}

.container .card::after {
    border-radius: 15px;
    /* 创建伪类 */
    content: "";
    /* 内容为空 */
    display: block;
    /* 转为块元素 */
    width: inherit;
    height: inherit;
    backdrop-filter: blur(0.8px);
    background: rgba(1, 1, 1, 0.15);
    /* 前三个代表颜色，最后一个代表透明度 */

    position: absolute;
    /* 决对定位 */
    /* top: 500px;	定位的位置 */
    transition: 1s;
    /* 动画过度效果 */
}

.container .card:hover:after {
    /* top: 0; */
    background: rgba(1, 1, 1, 0.5);
    backdrop-filter: blur(4px)
    /* 当鼠标经过div的时候使after的top值为0 */
}



#card-1 {
    /* 设置card1的背景 */
    background-image: url(../../image/railgun.webp);
    background-size: cover;

}

#card-2 {
    /* 设置card2的背景 */
    background: url(../../image/railgun_s.webp);
    background-size: cover;
}

#card-3 {
    /* 设置card2的背景 */
    background: url(../../image/railgun_t.webp);
    background-size: cover;
}

.container .card .content {
    padding: 20px;
    text-align: center;
    transform: translateY(70px);
    opacity: 1;
    transition: 0.5s;
    z-index: 2;
}

.container .card:hover .content {
    transform: translateY(0px);
    opacity: 1;
}

.container .card .content h2 {
    position:relative;
    top: -30px;
    z-index: 1;
    font-size: 3em;
    color: rgb(255, 255, 255);
    pointer-events: none;
}

.container .card .content h3 {
    font-size: 1.8em;
    color: #fff;
    z-index: 1;
    position: relative;
    top: -30px;
}

.container .card .content p {
    font-size: 1em;
    color: #fff;
    font-weight: 300;
    position: relative;
    top: -30px;
}

.container .card .content a {
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    top: -30px;
    background: #fff;
    color: #000;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}