﻿.popupp {
    border: none;
    -webkit-box-shadow: rgba(0, 0, 0, .1) 0 5px 10px;
    -moz-box-shadow: rgba(0, 0, 0, .1) 0 5px 10px;
    box-shadow: rgba(0, 0, 0, .1) 0 5px 10px;
}

/* 弹窗遮罩 */
.popup-overlay {
    display: none; /* 初始隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* 初始时透明 */
    z-index: 1000;
    cursor: pointer; /* 鼠标指针变成点击手势 */
    -webkit-tap-highlight-color: transparent;  /* 移除移动端点击时的高亮 */
    transition: background-color 0.25s; /* 添加平滑过渡 */
}

/* 弹窗内容 */
.popup-content {
    position: fixed;
    width: calc(100% - 40px);
    height: calc(100% - 200px);
    margin: 100px 20px 100px 20px;
    max-width: 700px;
    max-height: 600px;
    background-color: var(--popup-main); /* 默认背景色为白色 */
    /*border: none;*/
    border: 1px solid var(--black-a-15);
    border-radius: 15px;
    overflow: hidden;
    z-index: 1001;
    opacity: 0; /* 初始透明 */
    transform: scale(1.1); /* 初始缩放 */
    -webkit-box-shadow: rgba(0, 0, 0, 0.1) 0 0 50px;
    -moz-box-shadow: rgba(0, 0, 0, 0.1) 0 0 50px;
    box-shadow: rgba(0, 0, 0, 0.1) 0 0 50px;
    transition: opacity 0.25s, transform 0.25s ease-out;
}

/* 弹窗的iframe样式 */
.popup-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 显示弹窗时的动画 */
.popup-content.show {
    opacity: 1;
    transform: scale(1);
}

/* 隐藏弹窗时的动画（倒放） */
.popup-content.hide {
    opacity: 0;
    transform: scale(1.1);
}

@media (min-width: 740px) {
    .popup-content {
        margin-left: 0;
        margin-right: 0;
        left: calc(50% - 350px);
        width: 700px;
    }
}

@media (min-height: 800px) {
    .popup-content {
        margin-top: 0;
        margin-bottom: 0;
        top: calc(50% - 300px);
        height: 600px;
    }
}

@media (max-height: 500px) {
    .popup-content {
        margin-top: 0;
        margin-bottom: 0;
        top: 8%;
        height: 84%;
    }
}