/* 无侵入：所有样式都用 .dialog-box- 前缀 */
.dialog-box-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.dialog-box-wrapper {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  width: 420px;
  overflow: hidden;
}

.dialog-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 10px;
  font-size: 18px;
  font-weight: 500;
}

.dialog-box-close {
  cursor: pointer;
  color: #909399;
  font-size: 20px;
  line-height: 1;
}

.dialog-box-close:hover {
  color: #606266;
}

.dialog-box-body {
  padding: 10px 20px 20px;
  font-size: 14px;
  color: #606266;
}

.dialog-box-input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 15px;
  padding: 0 15px;
  height: 40px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}

.dialog-box-input:focus {
  border-color: #409eff;
}

.dialog-box-footer {
  display: flex;
  justify-content: flex-end;
  padding: 10px 20px 20px;
  gap: 10px;
}

.dialog-box-btn {
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.dialog-box-btn-cancel {
  background: #fff;
  border: 1px solid #dcdfe6;
  color: #606266;
}

.dialog-box-btn-confirm {
  background: #409eff;
  color: #fff;
}

/* 顶部 Message 消息提示 */
.dialog-message-wrapper {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dialog-message-item {
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  animation: dialog-message-fade-in 0.3s ease;
}

.dialog-message-success {
  background: #f0f9eb;
  color: #67c23a;
}

.dialog-message-warning {
  background: #fdf6ec;
  color: #e6a23c;
}

.dialog-message-info {
  background: #f4f4f5;
  color: #909399;
}

.dialog-message-error {
  background: #fef0f0;
  color: #f56c6c;
}

@keyframes dialog-message-fade-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dialog-message-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}