/* 轻量通知 + 加载层，替代 element-plus 全量包（421 KB JS + 47 KB CSS）
   仅覆盖站点实际用到的两个 API：消息提示、全屏加载 */

.lizi-notify-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.lizi-notify {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 220px;
    max-width: 360px;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 4px solid #909399;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    color: #303133;
    font-size: 14px;
    line-height: 1.55;
    pointer-events: auto;
    cursor: pointer;
    animation: lizi-notify-in 0.24s ease-out;
}

.lizi-notify.is-leaving {
    animation: lizi-notify-out 0.18s ease-in forwards;
}

.lizi-notify__icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    background: #909399;
}

.lizi-notify__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lizi-notify__title {
    font-size: 14px;
    font-weight: 500;
    color: #303133;
    line-height: 1.4;
}

.lizi-notify__text {
    font-size: 13px;
    color: #606266;
    line-height: 1.55;
    word-break: break-word;
}

.lizi-notify__text.is-single {
    font-size: 14px;
    color: #303133;
}

.lizi-notify__close {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b4b2a9;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.lizi-notify__close:hover {
    color: #303133;
    background: #f2f3f5;
}

.lizi-notify.is-holding {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
}

.lizi-notify[data-type="success"] { border-left-color: #67c23a; }
.lizi-notify[data-type="success"] .lizi-notify__icon { background: #67c23a; }

.lizi-notify[data-type="warning"] { border-left-color: #e6a23c; }
.lizi-notify[data-type="warning"] .lizi-notify__icon { background: #e6a23c; }

.lizi-notify[data-type="error"] { border-left-color: #f56c6c; }
.lizi-notify[data-type="error"] .lizi-notify__icon { background: #f56c6c; }

.lizi-notify[data-type="info"] { border-left-color: #909399; }
.lizi-notify[data-type="info"] .lizi-notify__icon { background: #909399; }

@keyframes lizi-notify-in {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes lizi-notify-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(24px); }
}

.lizi-loading-mask {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    animation: lizi-fade-in 0.16s ease-out;
}

.lizi-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 14px;
}

.lizi-loading-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    animation: lizi-spin 0.8s linear infinite;
}

@keyframes lizi-spin {
    to { transform: rotate(360deg); }
}

@keyframes lizi-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 640px) {
    .lizi-notify-stack {
        top: 12px;
        right: 12px;
        left: 12px;
    }

    .lizi-notify { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lizi-notify,
    .lizi-loading-mask,
    .lizi-loading-spinner { animation: none; }
}
