#notification-container {
    position: fixed;
    top: 10px;  /* 修改顶部距离 */
    left: 10px;  /* 微调左侧距离 */
    z-index: 1000;
    max-width: 90vw;
}

.notification {
    background-color: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 6px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.notification.active {
    opacity: 1;
    transform: translateX(0);
}

@media (min-width: 768px) {
    .notification {
        font-size: 16px;
    }
    
    #notification-container {
        left: 10px;  /* 大屏幕左侧距离稍大 */
    }
}

@media (max-width: 480px) {
    #notification-container {
        left: 5px;  /* 移动端左侧距离缩小 */
        top: 50px;   /* 移动端顶部距离减小 */
    }
}