/* 砺阵通用弹窗组件（lizhen-dialog） */
.lz-dlg-mask {
  position: fixed; inset: 0; background: rgba(2, 6, 23, 0.78);
  display: none; align-items: center; justify-content: center; z-index: 100;
  backdrop-filter: blur(4px);
  animation: lz-dlg-in 0.18s ease-out;
}
.lz-dlg-mask.on { display: flex; }
@keyframes lz-dlg-in { from { opacity: 0; } to { opacity: 1; } }
.lz-dlg {
  width: min(520px, 94vw); max-height: min(92vh, 800px);
  background: linear-gradient(180deg, #0b1733 0%, #050d1f 100%);
  border: 1px solid var(--pt-line, #2a3a55);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(108,255,184,0.06);
  display: flex; flex-direction: column;
  animation: lz-dlg-up 0.22s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.lz-dlg.large { width: min(760px, 96vw); }
.lz-dlg.small { width: min(380px, 92vw); }
@keyframes lz-dlg-up { from { transform: translateY(20px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.lz-dlg-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--pt-line, #2a3a55);
  background: linear-gradient(180deg, rgba(108,255,184,0.04), transparent);
}
.lz-dlg-hd h3 { margin: 0; font-size: 1.05rem; color: #6cffb8; font-weight: 600; }
.lz-dlg-hd .close {
  background: transparent; border: 0; color: #8aa0b8; cursor: pointer;
  font-size: 1.3rem; line-height: 1; padding: 0.1rem 0.4rem; border-radius: 6px;
  transition: all 0.15s;
}
.lz-dlg-hd .close:hover { color: #ff6b81; background: rgba(255,107,129,0.1); }
.lz-dlg-bd { padding: 1rem 1.1rem; overflow: auto; flex: 1; color: #cbd5e1; font-size: 0.88rem; line-height: 1.6; }
.lz-dlg-bd p { margin: 0 0 0.5rem; }
.lz-dlg-ft {
  display: flex; gap: 0.5rem; justify-content: flex-end;
  padding: 0.85rem 1.1rem; border-top: 1px solid var(--pt-line, #2a3a55);
  background: rgba(0,0,0,0.2);
}
.lz-dlg-ft .pt-btn { min-width: 5rem; }
.lz-dlg-bd label { display: block; font-size: 0.78rem; color: #8aa0b8; margin: 0.5rem 0 0.25rem; }
.lz-dlg-bd label:first-child { margin-top: 0; }
.lz-dlg-bd input, .lz-dlg-bd select, .lz-dlg-bd textarea {
  width: 100%; box-sizing: border-box;
  background: #020617; color: #e6eef9; border: 1px solid var(--pt-line, #2a3a55);
  border-radius: 8px; padding: 0.5rem 0.7rem; font: inherit; font-size: 0.9rem;
  transition: border-color 0.15s;
}
.lz-dlg-bd input:focus, .lz-dlg-bd select:focus, .lz-dlg-bd textarea:focus {
  outline: none; border-color: #6cffb8; box-shadow: 0 0 0 3px rgba(108,255,184,0.15);
}
.lz-dlg-bd textarea { min-height: 5rem; resize: vertical; font-family: inherit; }
.lz-dlg-danger { color: #ff6b81 !important; }
.lz-dlg-warn  { color: #fbbf24 !important; }

/* 通用多选下拉 */
.lz-msel {
  position: relative; display: inline-block; min-width: 11rem;
}
.lz-msel-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 0.4rem;
  width: 100%; box-sizing: border-box; cursor: pointer;
  background: #020617; color: #e6eef9; border: 1px solid var(--pt-line, #2a3a55);
  border-radius: 8px; padding: 0.5rem 0.7rem; font: inherit; font-size: 0.9rem;
  transition: border-color 0.15s;
}
.lz-msel-trigger:hover { border-color: #6cffb8; }
.lz-msel-trigger::after { content: "▾"; color: #6cffb8; margin-left: 0.3rem; }
.lz-msel.open .lz-msel-trigger { border-color: #6cffb8; }
.lz-msel-panel {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #0b1733; border: 1px solid var(--pt-line, #2a3a55);
  border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 30; max-height: 18rem; overflow: auto;
  display: none; padding: 0.35rem;
}
.lz-msel.open .lz-msel-panel { display: block; }
.lz-msel-opt {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.55rem; cursor: pointer; border-radius: 6px; font-size: 0.86rem;
  transition: background 0.1s;
}
.lz-msel-opt:hover { background: rgba(108,255,184,0.1); }
.lz-msel-opt input { margin: 0; }
.lz-msel-opt .ct { flex: 1; }
.lz-msel-opt .ct .badge { color: #6cffb8; font-size: 0.7rem; margin-left: 0.4rem; }
.lz-msel-actions {
  display: flex; gap: 0.4rem; padding: 0.35rem; border-top: 1px solid var(--pt-line);
  font-size: 0.75rem; color: #8aa0b8;
}
.lz-msel-actions button { background: transparent; border: 0; color: #6cffb8; cursor: pointer; padding: 0.2rem 0.4rem; border-radius: 4px; }
.lz-msel-actions button:hover { background: rgba(108,255,184,0.1); }
.lz-msel-summary { color: #8aa0b8; font-size: 0.85rem; }

/* toast 通知 */
.lz-toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: rgba(8, 12, 22, 0.95); color: #e6eef9;
  border: 1px solid var(--pt-line, #2a3a55);
  border-radius: 10px; padding: 0.6rem 1.1rem; font-size: 0.88rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 200; opacity: 0; transition: all 0.25s; pointer-events: none;
}
.lz-toast.show { opacity: 1; transform: translateX(-50%) translateY(-8px); }
.lz-toast.ok { border-color: rgba(108,255,184,0.5); }
.lz-toast.err { border-color: rgba(255,107,129,0.5); color: #ffb4b4; }
.lz-toast.warn { border-color: rgba(251,191,36,0.5); color: #ffd76a; }
