/* 前端弹窗样式 */
.popup-yyds-modal,
.popup-yyds-preview-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: transparent;
    align-items: center;
    justify-content: center;
}

.popup-yyds-modal-content,
.popup-yyds-preview-content {
    background-color: transparent;
    margin: 0 auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 800px;
    position: relative;
}

.popup-yyds-close,
.popup-yyds-preview-close {
    color: #fff;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    transition: all 0.3s ease;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.popup-yyds-close:hover,
.popup-yyds-preview-close:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.popup-yyds-body {
    margin-top: 15px;
    text-align: center;
}

/* 当弹窗打开时禁止背景滚动 */
body.popup-yyds-open {
    overflow: hidden;
}