/**
 * 全站统一提示 / 确认弹窗（替代浏览器原生 alert/confirm，不显示域名）
 * 兼容 IE11 / 360 兼容模式
 */

.app-ui-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100050;
    background: rgba(15, 23, 42, 0.48);
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.app-ui-overlay.app-ui-visible {
    display: -ms-flexbox;
    display: flex;
}

.app-ui-dialog {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22), 0 0 1px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.app-ui-dialog-head {
    padding: 16px 20px 10px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.app-ui-dialog-body {
    padding: 0 20px 18px;
    font-size: 14px;
    line-height: 1.65;
    color: #475569;
    word-break: break-word;
    max-height: 60vh;
    overflow-y: auto;
}

.app-ui-dialog-foot {
    padding: 12px 16px 16px;
    text-align: right;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.app-ui-btn {
    display: inline-block;
    min-width: 88px;
    padding: 8px 18px;
    margin-left: 8px;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-family: inherit;
}

.app-ui-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.app-ui-btn-primary {
    border-color: #3b82f6;
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
}

.app-ui-btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.app-ui-btn-secondary {
    border-color: #e2e8f0;
    background: #fff;
    color: #64748b;
}

body.app-ui-body-lock {
    overflow: hidden !important;
}
