/* styles/notifications.css */
.notification {
    /* 基础样式 */
    position: fixed;
    right: 20px;
    width: 300px;
    padding: 15px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    
    /* 初始状态 */
    transform: translateX(120%);
    opacity: 1;
    
    /* 动画参数 */
    transition: 
        transform var(--enter-duration, 300ms) cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity var(--exit-duration, 200ms) ease-in;
}

/* 激活状态 */
.notification.active {
    transform: translateX(0);
}

/* 退出状态 */
.notification.exiting {
    opacity: 0;
    transform: translateX(120%) !important;
}

/* 类型颜色 */
.notification.success { background: #04C600; }
.notification.warn { background: #FFC107; }
.notification.error { background: #FF0000; }
.notification.info { background: #20D8FF; }

/* 内容样式 */
.notification .title {
    font-weight: 700;
    margin-bottom: 8px;
}