/* 弹窗样式 */
.npn-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #ffffff;
    color: #000000;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 9999;
    max-width: 300px;
    font-family: sans-serif;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    transition: all 0.3s ease;
}

.npn-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.npn-notification.from-badge {
    transform: translate(320px, 20px) scale(0.5); /* 从徽标位置开始 */
}

.npn-notification.from-badge.show {
    transform: translate(0, 0) scale(1);
}

.npn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    margin-bottom: 10px;
}

.npn-close {
    cursor: pointer;
    font-size: 20px;
    line-height: 20px;
}

.npn-content ul {
    margin: 0;
    padding-left: 20px;
}

.npn-content li {
    margin-bottom: 5px;
}

.npn-content a {
    color:#000000;
    text-decoration: underline;
}

.npn-footer {
    margin-top: 10px;
    text-align: right;
}

.npn-btn {
    background: #fff;
    color: #2962ff;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.npn-btn:hover {
    background: #bbdefb;
}

/* 徽标样式 */
.npn-badge {
    position: fixed;
    bottom: 20px;
    left: 340px;
    background: linear-gradient(135deg, #2962ff, #448aff);
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 10000;
    font-size: 16px;
    animation: pulse 1.5s infinite;
}

.npn-badge::before {
    content: "📰";
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 18px;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(41,98,255, 0.7); }
    50% { transform: scale(1.1); box-shadow: 0 0 10px rgba(41,98,255, 0.9); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(41,98,255, 0.7); }
}
