.np-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--np-overlay);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(var(--np-blur));
    -webkit-backdrop-filter: blur(var(--np-blur));
}

.np-modal {
    width: 92%;
    max-width: 440px;
    max-height: 85vh;
    background: var(--np-bg);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
}

/* 动画 */
.np-anim-fadeIn .np-modal { animation: npFadeIn 0.3s ease; }
.np-anim-slideUp .np-modal { animation: npSlideUp 0.4s ease; }
.np-anim-scale .np-modal { animation: npScale 0.3s ease; }
.np-anim-bounce .np-modal { animation: npBounce 0.5s ease; }

@keyframes npFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes npSlideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes npScale { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
@keyframes npBounce { 0% { opacity: 0; transform: scale(0.5); } 50% { transform: scale(1.03); } 100% { opacity: 1; transform: scale(1); } }

/* 关闭按钮 */
.np-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    transition: all 0.2s;
    z-index: 10;
    border: none;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.np-close:hover {
    background: #ff4757;
    transform: rotate(90deg);
    box-shadow: 0 2px 15px rgba(255, 71, 87, 0.3);
}

/* 现代风格 */
.np-modern .np-header {
    padding: 24px 24px 0;
    background: var(--np-header-bg);
    border-radius: 16px 16px 0 0;
}
.np-modern .np-header[data-gradient="1"] {
    padding: 24px;
    margin: -1px -1px 0;
}
.np-modern .np-header[data-gradient="1"] .np-title,
.np-modern .np-header[data-gradient="1"] .np-icon i { color: #fff; }
.np-modern .np-header[data-gradient="1"] .np-icon { background: rgba(255,255,255,0.2); box-shadow: none; }
.np-modern .np-icon {
    width: 52px;
    height: 52px;
    background: var(--np-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.np-modern .np-icon i {
    font-size: 24px;
    color: #fff;
}
.np-modern .np-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--np-title);
    margin: 0;
}

/* 优雅风格 */
.np-elegant .np-header {
    padding: 32px 24px 0;
    text-align: center;
    background: var(--np-header-bg);
    border-radius: 16px 16px 0 0;
}
.np-elegant .np-header[data-gradient="1"] {
    padding: 32px 24px;
    margin: -1px -1px 0;
}
.np-elegant .np-header[data-gradient="1"] .np-title { color: #fff; }
.np-elegant .np-header[data-gradient="1"] .np-icon { background: rgba(255,255,255,0.2); }
.np-elegant .np-header[data-gradient="1"] .np-icon i { color: #fff; }
.np-elegant .np-icon {
    width: 64px;
    height: 64px;
    background: rgba(0,0,0,0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.np-elegant .np-icon i {
    font-size: 28px;
    color: var(--np-primary);
}
.np-elegant .np-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--np-title);
    margin: 0;
}
.np-elegant .np-body {
    text-align: center;
}

/* 极简风格 */
.np-minimal .np-header {
    padding: 20px 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--np-header-bg);
    border-radius: 16px 16px 0 0;
}
.np-minimal .np-header[data-gradient="1"] {
    padding: 16px 20px;
    margin: -1px -1px 0;
}
.np-minimal .np-header[data-gradient="1"] .np-title { color: #fff; }
.np-minimal .np-header[data-gradient="1"] .np-icon { background: rgba(255,255,255,0.2); }
.np-minimal .np-header[data-gradient="1"] .np-close { box-shadow: 0 2px 15px rgba(255, 71, 87, 0.3); color: #fff; }
.np-minimal .np-icon {
    width: 36px;
    height: 36px;
    background: var(--np-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.np-minimal .np-icon i {
    font-size: 18px;
    color: #fff;
}
.np-minimal .np-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--np-title);
    margin: 0;
    flex: 1;
}
.np-minimal .np-close {
    position: static;
    flex-shrink: 0;
}

/* 毛玻璃风格 */
.np-glass .np-modal {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 25px 80px rgba(0,0,0,0.15), inset 0 0 0 1px rgba(255,255,255,0.2);
}
.np-glass .np-header {
    padding: 24px 24px 0;
    position: relative;
    overflow: hidden;
    background: var(--np-header-bg);
    border-radius: 16px 16px 0 0;
}
.np-glass .np-header[data-gradient="1"] {
    padding: 24px;
    margin: -1px -1px 0;
}
.np-glass .np-header[data-gradient="1"] .np-title { color: #fff; }
.np-glass .np-header[data-gradient="1"] .np-icon { background: rgba(255,255,255,0.2); box-shadow: none; }
.np-glass .np-header[data-gradient="1"] .np-decor,
.np-glass .np-header[data-gradient="1"] .np-decor2 { display: none; }
.np-glass .np-decor {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: var(--np-primary);
    opacity: 0.2;
    border-radius: 50%;
    filter: blur(30px);
}
.np-glass .np-decor2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: var(--np-primary);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(25px);
}
.np-glass .np-icon {
    width: 48px;
    height: 48px;
    background: var(--np-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.np-glass .np-icon i {
    font-size: 22px;
    color: #fff;
}
.np-glass .np-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--np-title);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* 内容区 */
.np-body {
    padding: 20px 24px;
    max-height: 45vh;
    overflow-y: auto;
    line-height: 1.8;
    color: var(--np-text);
    font-size: 15px;
}
.np-body img { max-width: 100%; border-radius: 8px; }
.np-body a { color: var(--np-primary); text-decoration: none; }
.np-body a:hover { text-decoration: underline; }

.np-body::-webkit-scrollbar { width: 5px; }
.np-body::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 3px; }
.np-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }

/* 底部 */
.np-footer {
    padding: 16px 24px 24px;
}
.np-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #999;
    cursor: pointer;
    margin-bottom: 12px;
}
.np-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--np-primary);
}
.np-footer-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.np-footer-left { display: flex; gap: 8px; }
.np-footer-center { flex: 1; display: flex; gap: 8px; justify-content: center; }
.np-footer-right { display: flex; gap: 8px; margin-left: auto; }

/* 按钮 */
.np-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
    border: none;
    outline: none;
    white-space: nowrap;
}
.np-btn-primary {
    background: var(--np-btn-bg);
    color: var(--np-btn-text) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.np-btn-primary:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.np-btn-default {
    background: rgba(0,0,0,0.06);
    color: var(--np-title) !important;
}
.np-btn-default:hover {
    background: rgba(0,0,0,0.1);
}
.np-btn-text {
    background: transparent;
    color: var(--np-primary) !important;
    padding: 10px 14px;
}
.np-btn-text:hover {
    background: rgba(0,0,0,0.04);
}

/* 深色模式 */
html[data-theme="dark"] .np-overlay { background: rgba(0,0,0,0.7); }
html[data-theme="dark"] .np-modal { background: #1e1e1e; border-color: #333; }
html[data-theme="dark"] .np-glass .np-modal { 
    background: rgba(30,30,30,0.85); 
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 25px 80px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
}
html[data-theme="dark"] .np-glass .np-decor,
html[data-theme="dark"] .np-glass .np-decor2 { opacity: 0.15; }
html[data-theme="dark"] .np-title { color: #e5e5e5 !important; }
html[data-theme="dark"] .np-body { color: #b0b0b0 !important; }
html[data-theme="dark"] .np-close { background: rgba(255,255,255,0.1); color: #888; }
html[data-theme="dark"] .np-close:hover { background: rgba(255,255,255,0.15); color: #ccc; }
html[data-theme="dark"] .np-checkbox { color: #777; }
html[data-theme="dark"] .np-btn-default { background: rgba(255,255,255,0.1); color: #ddd !important; }
html[data-theme="dark"] .np-btn-default:hover { background: rgba(255,255,255,0.15); }
html[data-theme="dark"] .np-elegant .np-icon { background: rgba(255,255,255,0.1); }
html[data-theme="dark"] .np-body::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
html[data-theme="dark"] .np-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }

@media (max-width: 480px) {
    .np-modal { width: 95%; border-radius: 14px; }
    .np-btn { padding: 9px 18px; font-size: 13px; }
}
