/* =====================================================================
   站点通用弹窗样式（PC + 手机端共用）
   - 遮罩层铺满视口
   - 弹窗内容区居中
   - 关闭按钮在右上角
   - 点击遮罩可关闭
   ===================================================================== */

.site-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 9999;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    -webkit-transition: opacity 0.25s ease;
    transition: opacity 0.25s ease;
}

.site-popup-overlay.show {
    opacity: 1;
}

.site-popup-box {
    position: relative;
    background: #fff;
    border-radius: 10px;
    -webkit-box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    -webkit-transform: scale(0.92);
    -ms-transform: scale(0.92);
    transform: scale(0.92);
    -webkit-transition: -webkit-transform 0.25s ease;
    transition: transform 0.25s ease;
}

.site-popup-overlay.show .site-popup-box {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.site-popup-close {
    position: absolute;
    top: 6px;
    right: 12px;
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    font-size: 26px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.site-popup-close:hover {
    color: #c8000a;
}

.site-popup-title {
    padding: 16px 46px 12px 20px;
    font-size: 17px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
}

.site-popup-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

.site-popup-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 手机端适配 */
@media screen and (max-width: 768px) {
    .site-popup-overlay {
        padding: 12px;
    }

    .site-popup-box {
        width: 90% !important;
        max-width: 360px !important;
        height: auto !important;
        max-height: 80vh !important;
    }

    .site-popup-title {
        font-size: 15px;
        padding: 12px 40px 10px 14px;
    }

    .site-popup-content {
        padding: 14px;
        font-size: 13px;
    }
}
