/* 容器样式 */
.end {
    position: relative;
    width: 100%;
    /* 自动根据内容调整高度 */
    height: auto;
    /* 隐藏溢出内容 */
    overflow: hidden;
}

/* 图片样式 */
.end-img {
    width: 100%;
    display: block;
    /* 初始缩放比例 */
    transform: scale(1.3);
    /* 添加过渡效果 */
    transition: transform 1s ease-out;
}
.mengban{
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
}

/* 文本初始样式 */
.end-text {
    position: absolute;
    left: 50%;
    top: 50%;
    /* 水平和垂直居中，并向上偏移 */
    transform: translate(-50%, -50%) translateY(-50px);
    color: white;
    text-align: center;
    /* 使用变量设置宽度 */
    width: 55vw;
    opacity: 0;
    /* 添加过渡效果 */
    transition: opacity 1s ease, transform 1s ease;
    z-index: 50;
}

/* 文本标题样式 */
.end-text-tag {
    /* 使用变量设置字体大小 */
    font-size: calc(var(--section-font-size) * 0.5);
    font-weight: bold;
}

/* 文本内容样式 */
.end-text-content {
    /* 使用变量设置字体大小 */
    font-size: calc(var(--section-font-size) * 0.22);
    font-weight: 400;
    /* 使用变量设置上边距 */
    margin-top: calc(var(--section-font-size) * 0.57);
    line-height: calc(var(--section-font-size) * 0.31);
}
.end-text3{
    font-size: calc(var(--section-font-size) * 0.18);
    font-weight: 400;
    /* 使用变量设置上边距 */
    margin-top: calc(var(--section-font-size) * 0.57);
    line-height: calc(var(--section-font-size) * 0.31);
}
.end-mb-text3{
    font-size: calc(var(--section-font-size) * 0.18);
    font-weight: 400;
    /* 使用变量设置上边距 */
    margin-top: calc(var(--section-font-size) * 0.57);
    line-height: calc(var(--section-font-size) * 0.31);
}

/* 文本激活（显示）样式 */
.end:hover .end-text {
    opacity: 1;
    /* 取消向上偏移 */
    transform: translate(-50%, -50%) translateY(0);
}

.end:hover .end-img {
    /* 放大图片 */
    transform: scale(1);
}
    