.card-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 100vh;
    position: relative;
}

.card {
    width: 25%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    text-decoration: none; /* 去掉链接的下划线 */
    color: white; /* 链接文字颜色 */
}

.card:nth-child(1) {
    background-image: url('../image/01.jpg');
    z-index: 4;
}
.card:nth-child(2) {
    background-image: url('../image/02.jpg');
    z-index: 3;
}
.card:nth-child(3) {
    background-image: url('../image/03.jpg');
    z-index: 2;
}
.card:nth-child(4) {
    background-image: url('../image/04.jpg');
    z-index: 1;
}

.card:hover, .card:active {
    transform: scale(1.1);
}

.card-content {
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.card:hover .card-content, .card:active .card-content {
    transform: scale(1.08);
}

.icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card:hover .icon, .card:active .icon {
    transform: scale(1.08);
}

h2 {
    font-size: 24px;
    margin: 10px 0;
    transition: transform 0.3s ease;
}

.card:hover h2, .card:active h2 {
    transform: scale(1.08);
}

p{
    font-size: 14px;
    padding: 0 20px;
    transition: transform 0.3s ease;
}

.card:hover p, .card:active p {
    transform: scale(1.08);
}