/* NJ-Popup v2.0 样式 - pp-* 前缀，避免被浏览器拦截 */

/* 隐藏 CSS 加载检测元素 */
html #ppcss-layer { display: none; position: absolute; width: 1989px; }

/* ===== 遮罩层 ===== */
.pp-shade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 19000;
}

/* ===== 弹窗主体 ===== */
.pp-layer {
    position: fixed;
    top: 150px;
    left: 0;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    background-clip: content-box;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 19001;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #333;
}

/* ===== 关闭按钮 ===== */
.pp-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    z-index: 10;
    text-decoration: none;
    color: #999;
    font-size: 0;
}
.pp-close::before,
.pp-close::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 18px;
    height: 1px;
    background-color: #888;
}
.pp-close::before { transform: rotate(45deg); }
.pp-close::after { transform: rotate(-45deg); }
.pp-close:hover { color: #fff; }
.pp-close:hover::before,
.pp-close:hover::after { background-color: #fff; }

.pp-close-2 {
    top: -12px;
    right: -12px;
    width: 30px;
    height: 30px;
    background-color: #333;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* ===== 标题栏 ===== */
.pp-title {
    padding: 0 80px 0 15px;
    height: 42px;
    line-height: 42px;
    font-size: 14px;
    color: #fff;
    border-bottom: 1px solid #333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background-color: #1a1a1a;
    border-radius: 4px 4px 0 0;
}
.pp-title span { display: block; }

/* ===== 内容区域 ===== */
.pp-content {
    position: relative;
    padding: 20px;
    line-height: 22px;
    font-size: 14px;
    color: #ddd;
    word-wrap: break-word;
    overflow: auto;
}

/* ===== 按钮栏 ===== */
.pp-btn {
    padding: 0 15px;
    height: 42px;
    line-height: 42px;
    text-align: right;
    border-top: 1px solid #333;
    background-color: #222;
    border-radius: 0 0 4px 4px;
}
.pp-btn a {
    display: inline-block;
    vertical-align: top;
    height: 28px;
    line-height: 28px;
    margin-left: 10px;
    padding: 0 15px;
    font-size: 12px;
    color: #ddd;
    border: 1px solid #444;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    background-color: #2a2a2a;
    transition: all 0.2s;
}
.pp-btn a:hover { opacity: 0.9; background-color: #333; }
.pp-btn a.pp-btn-0 {
    color: #fff;
    background-color: #1e9fff;
    border-color: #1e9fff;
}
.pp-btn a.pp-btn-1 {
    color: #ddd;
    background-color: #2a2a2a;
}

/* ===== 消息提示 (msg) ===== */
.pp-msg {
    max-width: 300px;
    min-width: 80px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 3px;
    top: 50% !important;
    transform: translateY(-50%);
}
.pp-msg .pp-content {
    padding: 10px 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pp-msg .pp-content.pp-msg-content {
    padding: 10px 15px;
}
.pp-msg-text { display: inline-block; }
.pp-msg .pp-btn { display: none; }
.pp-msg .pp-close { display: none; }

/* ===== 图标 ===== */
.pp-ico {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 50%;
    font-style: normal;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    color: #fff;
    flex-shrink: 0;
}
.pp-ico-0 { background: #1e9fff; }
.pp-ico-1 { background: #16b777; }
.pp-ico-2 { background: #ff5722; }
.pp-ico-3 { background: #ffb800; }
.pp-ico-4 { background: #999; }
.pp-ico-5 { background: #ff5722; }
.pp-ico-6 { background: #16b777; }
.pp-ico-0::before { content: 'i'; }
.pp-ico-1::before { content: '✓'; }
.pp-ico-2::before { content: '✕'; }
.pp-ico-3::before { content: '?'; }
.pp-ico-4::before { content: '⊘'; }
.pp-ico-5::before { content: '☹'; }
.pp-ico-6::before { content: '✓'; }

/* ===== 加载层 (loading) ===== */
.pp-loading {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.pp-loading .pp-content {
    padding: 10px;
    background: transparent;
}
.pp-load {
    display: block;
    width: 38px;
    height: 38px;
    background: url(loading-1.gif) center center no-repeat;
    margin: 0 auto;
}
.pp-load-0 { background-image: url(loading-0.gif); }
.pp-load-1 { background-image: url(loading-1.gif); }
.pp-load-2 { background-image: url(loading-2.gif); }
.pp-loading .pp-btn { display: none; }
.pp-loading .pp-close { display: none; }
.pp-loading .pp-title { display: none; }

/* ===== 气泡提示 (tips) ===== */
.pp-tips {
    max-width: 260px;
    padding: 8px 12px;
    background-color: #000;
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-radius: 3px;
    font-size: 12px;
}
.pp-tips .pp-content {
    padding: 0;
    color: #fff;
    font-size: 12px;
}
.pp-tips .pp-btn { display: none; }
.pp-tips .pp-close { display: none; }
.pp-tips .pp-title { display: none; }

.pp-tips-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}
.pp-tips-bottom {
    bottom: -8px;
    left: 50%;
    margin-left: -6px;
    border-width: 8px 6px 0 6px;
    border-color: #000 transparent transparent transparent;
}
.pp-tips-top {
    top: -8px;
    left: 50%;
    margin-left: -6px;
    border-width: 0 6px 8px 6px;
    border-color: transparent transparent #000 transparent;
}
.pp-tips-left {
    left: -8px;
    top: 50%;
    margin-top: -6px;
    border-width: 6px 8px 6px 0;
    border-color: transparent #000 transparent transparent;
}
.pp-tips-right {
    right: -8px;
    top: 50%;
    margin-top: -6px;
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #000;
}

/* ===== 页面类型 (page) ===== */
.pp-page .pp-content {
    padding: 0;
}

/* ===== iframe 类型 ===== */
.pp-iframe .pp-content {
    padding: 0;
}
.pp-iframe-content {
    width: 100%;
    height: 100%;
    min-height: 200px;
}
.pp-iframe-el {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== 对话框类型 (dialog) ===== */
.pp-dialog {
    min-width: 260px;
}

/* ===== 输入框 (prompt) ===== */
.pp-layer-input {
    display: block;
    width: 100%;
    height: 32px;
    padding: 4px 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #ddd;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 2px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.pp-layer-input:focus {
    border-color: #1e9fff;
    box-shadow: 0 0 0 2px rgba(30,155,255,0.2);
}
.pp-prompt-textarea {
    height: 80px;
    resize: vertical;
    font-family: inherit;
}

/* ===== 动画 ===== */
.layer-anim {
    animation-fill-mode: both;
    animation-duration: 0.3s;
}
@keyframes pp-bounceIn {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}
.layer-anim-00 { animation-name: pp-bounceIn; }

@keyframes pp-zoomInDown {
    0% { opacity: 0; transform: scale(0.1) translateY(-2000px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.layer-anim-06 { animation-name: pp-zoomInDown; }

@keyframes pp-fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.layer-anim-07 { animation-name: pp-fadeIn; }

/* ===== 移动遮罩 ===== */
.pp-layer-move {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: move;
    opacity: 0;
    background-color: #fff;
    z-index: 2147483647;
}

/* ===== 调整手柄 ===== */
.pp-resize {
    position: absolute;
    width: 15px;
    height: 15px;
    right: 0;
    bottom: 0;
    cursor: se-resize;
}

/* ===== 向后兼容 layui-layer 类名 ===== */
.layui-layer-page .pp-content,
.layui-layer-page .pp-page-content { clear: both; }
.layui-layer-load,
.pp-layer-load {
    background: url(loading-1.gif) center center no-repeat #eee;
}
