/* 悬停显示的二维码浮层 */
.hover-popup {
    position: absolute;
    z-index: 999;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    background-color: #fff;
    padding: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease-in-out;
}

.hoverPopup.visible {
    opacity: 1;
}

/* 添加小箭头 */
.hover-popup::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

/* 上方浮层时的箭头样式 */
.hover-popup.top::before {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0 10px;
    border-color: #fff transparent transparent transparent;
}

/* 下方浮层时的箭头样式 */
.hover-popup.bottom::before {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #fff transparent;
}

.hover-popup img {
    width: 160px;
    height: 160px;
}

/* 点击后的蒙版样式 */
.overlay {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal {
    background-color: #fff;
    padding: 6px;
    position: relative;
    text-align: center;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}

.modal img {
    width: 240px;
    height: 240px;
}

/* 关闭按钮 */
.close {
    position: absolute;
    top: 0px;
    right: 3px;
    font-size: 24px;
    cursor: pointer;
}
