.container {
    max-width: 100%;
    margin: 0 auto;
    /*background-color: #f8f7f7;*/
    background-color: #f8f7f7;
    padding-bottom: 50px;

}

.center-text {
    text-align: center;
    padding: 40px;

}

.center-text a {
    font-size: 26px;
    color: #9C1111;
    letter-spacing: 3px;
    text-decoration: none;
}

.horizontal-layout {
    display: flex;
    justify-content: center;
    align-items: center;
}

.horizontal-layout div {
    transition: transform 0.3s ease-in-out;
    margin: 0 10px;
    overflow: hidden;
    position: relative;
}

.horizontal-layout div:hover img {
    transform: scale(1.2);
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 400px;
    overflow: hidden;
    margin-top: 50px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.horizontal-layout div p {
    position: absolute;
    bottom: 0;
    right: 10%;
    width: 50%;
    color: #000000;
    text-align: right;
    padding: 0;
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    font-weight: bold;
}

.horizontal-layout div a {
    position: absolute;
    bottom: 15px;
    right: 6%; /* 增加右侧间距，根据需要自行调整数值 */
    width: 50%;
    color: #9C1111;
    font-size: 13px;
    text-align: right;
    padding: 0;
    white-space: nowrap;
    opacity: 0;
    text-decoration: none;
    transition: opacity 0.3s ease-in-out;
}


.horizontal-layout div:hover p {

    transform: translateY(-20px);
}

.horizontal-layout div:hover a {
    opacity: 1;

}

