/* 现代通知系统样式 */
.xn-notification {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    max-width: 360px;
    min-width: 280px;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.xn-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.xn-notification .xn-notification-icon {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
}

.xn-notification .xn-notification-icon i {
    font-size: 24px;
}

.xn-notification .xn-notification-content {
    margin-left: 32px;
    padding-right: 20px;
}

.xn-notification .xn-notification-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.xn-notification .xn-notification-message {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.xn-notification .xn-notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    transition: width 0.1s linear;
}

.xn-notification-success .xn-notification-icon i {
    color: #52c41a;
}

.xn-notification-success .xn-notification-progress {
    background: #52c41a;
}

.xn-notification-error .xn-notification-icon i {
    color: #ff4d4f;
}

.xn-notification-error .xn-notification-progress {
    background: #ff4d4f;
}

.xn-notification-info .xn-notification-icon i {
    color: #1890ff;
}

.xn-notification-info .xn-notification-progress {
    background: #1890ff;
}

.xn-notification-warning .xn-notification-icon i {
    color: #faad14;
}

.xn-notification-warning .xn-notification-progress {
    background: #faad14;
}

/* 为不支持JS的环境提供后备方案 */
.xn-notification-static {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
    z-index: 9999;
    text-align: center;
}

.xn-notification-static .xn-notification-message {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    margin: 0 auto;
}

/* 自定义layui的toast通知样式 */
.layui-layer-custom-notice {
    background-color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
}

.layui-layer-custom-notice .layui-layer-content {
    padding: 16px 16px 16px 60px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

.layui-layer-custom-notice .layui-layer-ico {
    width: 30px !important;
    height: 30px !important;
    background-size: 30px !important;
    left: 20px !important;
    top: 15px !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .xn-notification {
        left: 16px;
        right: 16px;
        max-width: none;
    }
} 