.image-row2 {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    position: relative; /* 添加相对定位 */
}

.image-row2 > div {
    flex: 0 1 auto;
    position: relative;
    max-width: 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.image-with-label img{
    margin: 0;
}
.image-with-label {
    position: relative;
    display: inline-block;
}

/* 统一控制A和B标签的垂直位置 */
.image-label {
    position: absolute;
    top: 0; /* 统一设置为0，相对于image-row容器 */
    background-color: rgba(255, 255, 255, 0.7);
    color: black;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 1;
}

/* A标签 */
.image-row2 > div:first-child .image-label {
    left: 10px;
}

/* B标签 */
.image-row2 > div:last-child .image-label {
    left: 10px;
}